diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-02-28 23:22:47 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-02-28 23:22:47 +0100 |
commit | 0baa1d995581ce9b6c00db1dc84a2d2383440c7f (patch) | |
tree | dd1f689c627ca3a81da8d6b43d849120ea4a1d5d /doc/grammar.txt | |
parent | 38dee2095c3b04e0f6eb8e5e9751ab7b4755d3e8 (diff) | |
download | Nim-0baa1d995581ce9b6c00db1dc84a2d2383440c7f.tar.gz |
first version of .partial objects
Diffstat (limited to 'doc/grammar.txt')
-rw-r--r-- | doc/grammar.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/grammar.txt b/doc/grammar.txt index d967bf938..47f739174 100644 --- a/doc/grammar.txt +++ b/doc/grammar.txt @@ -67,7 +67,9 @@ ifExpr = 'if' condExpr whenExpr = 'when' condExpr pragma = '{.' optInd (exprColonExpr comma?)* optPar ('.}' | '}') identVis = symbol opr? # postfix position +identVisDot = symbol '.' optInd symbol opr? identWithPragma = identVis pragma? +identWithPragmaDot = identVisDot pragma? declColonEquals = identWithPragma (comma identWithPragma)* comma? (':' optInd typeDesc)? ('=' optInd expr)? identColonEquals = ident (comma ident)* comma? @@ -171,7 +173,7 @@ object = 'object' pragma? ('of' typeDesc)? COMMENT? objectPart typeClassParam = ('var' | 'out')? symbol typeClass = typeClassParam ^* ',' (pragma)? ('of' typeDesc ^* ',')? &IND{>} stmt -typeDef = identWithPragma genericParamList? '=' optInd typeDefAux +typeDef = identWithPragmaDot genericParamList? '=' optInd typeDefAux indAndComment? varTuple = '(' optInd identWithPragma ^+ comma optPar ')' '=' optInd expr variable = (varTuple / identColonEquals) indAndComment |