summary refs log tree commit diff stats
path: root/doc/grammar.txt
diff options
context:
space:
mode:
authorflaviut <tamasflaviu@gmail.com>2014-06-04 15:40:31 -0400
committerflaviut <tamasflaviu@gmail.com>2014-06-04 15:40:31 -0400
commit6b9359d90161887b2dc4fa12d9861883d22530f6 (patch)
treef988c4cb9f4262f4ac5b5009dd2a2eefe16c3acd /doc/grammar.txt
parent90dc35c10998c279daf2b413aaf896cadaced699 (diff)
downloadNim-6b9359d90161887b2dc4fa12d9861883d22530f6.tar.gz
updated grammer, fixed oversight
Diffstat (limited to 'doc/grammar.txt')
-rw-r--r--doc/grammar.txt3
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