diff options
author | flaviut <tamasflaviu@gmail.com> | 2014-06-04 15:40:31 -0400 |
---|---|---|
committer | flaviut <tamasflaviu@gmail.com> | 2014-06-04 15:40:31 -0400 |
commit | 6b9359d90161887b2dc4fa12d9861883d22530f6 (patch) | |
tree | f988c4cb9f4262f4ac5b5009dd2a2eefe16c3acd /doc/grammar.txt | |
parent | 90dc35c10998c279daf2b413aaf896cadaced699 (diff) | |
download | Nim-6b9359d90161887b2dc4fa12d9861883d22530f6.tar.gz |
updated grammer, fixed oversight
Diffstat (limited to 'doc/grammar.txt')
-rw-r--r-- | doc/grammar.txt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/grammar.txt b/doc/grammar.txt index 63e898e11..61557b68c 100644 --- a/doc/grammar.txt +++ b/doc/grammar.txt @@ -24,7 +24,7 @@ ampExpr = plusExpr (OP6 optInd plusExpr)* plusExpr = mulExpr (OP7 optInd mulExpr)* mulExpr = dollarExpr (OP8 optInd dollarExpr)* dollarExpr = primary (OP9 optInd primary)* -symbol = '`' (KEYW|IDENT|operator|'(' ')'|'[' ']'|'{' '}'|'='|literal)+ '`' +symbol = '`' (KEYW|IDENT|operator|'('|')'|'['|']'|'{'|'}'|'='|literal)+ '`' | IDENT indexExpr = expr indexExprList = indexExpr ^+ comma @@ -166,7 +166,6 @@ object = 'object' pragma? ('of' typeDesc)? COMMENT? objectPart typeClassParam = ('var')? symbol typeClass = typeClassParam ^* ',' (pragma)? ('of' typeDesc ^* ',')? &IND{>} stmt -distinct = 'distinct' optInd typeDesc typeDef = identWithPragma genericParamList? '=' optInd typeDefAux indAndComment? varTuple = '(' optInd identWithPragma ^+ comma optPar ')' '=' optInd expr |