slice support in system.nim; syntactic sugar for tables; cleanup of grammar/parser
This commit is contained in:
parent
05fee773ec
commit
4ba4999bb7
8 changed files with 234 additions and 97 deletions
|
|
@ -21,12 +21,11 @@ plusExpr ::= mulExpr (OP7 optInd mulExpr)*
|
|||
mulExpr ::= dollarExpr (OP8 optInd dollarExpr)*
|
||||
dollarExpr ::= primary (OP9 optInd primary)*
|
||||
|
||||
indexExpr ::= expr ['=' expr]
|
||||
indexExpr ::= expr
|
||||
|
||||
castExpr ::= 'cast' '[' optInd typeDesc optPar ']' '(' optInd expr optPar ')'
|
||||
addrExpr ::= 'addr' '(' optInd expr optPar ')'
|
||||
symbol ::= '`' (KEYWORD | IDENT | operator | '(' ')'
|
||||
| '[' (',' | ['$'] '..' ['$'])* ']'
|
||||
symbol ::= '`' (KEYWORD | IDENT | operator | '(' ')' | '[' ']'
|
||||
| '=' | literal)+ '`'
|
||||
| IDENT
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue