summary refs log tree commit diff stats
path: root/doc/grammar.txt
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-03-15 00:28:28 +0100
committerAraq <rumpf_a@web.de>2012-03-15 00:28:28 +0100
commit4da067691eb61554515197fa79392b1509c2e566 (patch)
treecaf31d1fd35c061599e2170f913e3bca2e358dd6 /doc/grammar.txt
parentc25ffbf2622a197c15a4a3bd790b1bc788db2c7f (diff)
downloadNim-4da067691eb61554515197fa79392b1509c2e566.tar.gz
implemented 'static'; macros do not work anymore
Diffstat (limited to 'doc/grammar.txt')
-rwxr-xr-xdoc/grammar.txt6
1 files changed, 2 insertions, 4 deletions
diff --git a/doc/grammar.txt b/doc/grammar.txt
index 4fb18024d..8a39c5abc 100755
--- a/doc/grammar.txt
+++ b/doc/grammar.txt
@@ -4,7 +4,7 @@ comma ::= ',' [COMMENT] [IND]
 operator ::=  OP0 | OP1 | OP2 | OP3 | OP4 | OP5 | OP6 | OP7 | OP8 | OP9
            | 'or' | 'xor' | 'and'
            | 'is' | 'isnot' | 'in' | 'notin' | 'of'
-           | 'div' | 'mod' | 'shl' | 'shr' | 'not' | '..'
+           | 'div' | 'mod' | 'shl' | 'shr' | 'not' | 'addr' | 'static' | '..'
 
 prefixOperator ::= operator
 
@@ -25,8 +25,6 @@ dollarExpr ::= primary (OP9 optInd primary)*
 indexExpr ::= expr
 
 castExpr ::= 'cast' '[' optInd typeDesc optPar ']' '(' optInd expr optPar ')'
-addrExpr ::= 'addr' '(' optInd expr optPar ')'
-staticExpr ::= 'static' '(' optInd expr optPar ')'
 symbol ::= '`' (KEYWORD | IDENT | operator | '(' ')' | '[' ']' | '{' '}'
                | '=' | literal)+ '`'
          | IDENT
@@ -38,7 +36,7 @@ primarySuffix ::= '.' optInd symbol [generalizedLit]
                 | '{' optInd [indexExpr (comma indexExpr)* [comma]] optPar '}'
 
 primary ::= primaryPrefix* (symbol [generalizedLit] | 
-                            constructor | castExpr | addrExpr | staticExpr)
+                            constructor | castExpr)
             primarySuffix*
 
 generalizedLit ::= GENERALIZED_STR_LIT | GENERALIZED_TRIPLESTR_LIT