fixed some newly introduced bugs
This commit is contained in:
parent
57f184cf48
commit
2359b8b107
9 changed files with 91 additions and 45 deletions
|
|
@ -96,7 +96,8 @@ simpleStmt ::= returnStmt
|
|||
complexStmt ::= ifStmt | whileStmt | caseStmt | tryStmt | forStmt
|
||||
| blockStmt | asmStmt
|
||||
| procDecl | iteratorDecl | macroDecl | templateDecl | methodDecl
|
||||
| constSection | typeSection | whenStmt | varSection
|
||||
| constSection | letSection | varSection
|
||||
| typeSection | whenStmt
|
||||
|
||||
indPush ::= IND # and push indentation onto the stack
|
||||
indPop ::= # pop indentation from the stack
|
||||
|
|
@ -157,6 +158,8 @@ colonAndEquals ::= [':' typeDesc] '=' expr
|
|||
constDecl ::= symbol ['*'] [pragma] colonAndEquals [COMMENT | IND COMMENT]
|
||||
| COMMENT
|
||||
constSection ::= 'const' indPush constDecl (SAD constDecl)* DED indPop
|
||||
letSection ::= 'let' indPush constDecl (SAD constDecl)* DED indPop
|
||||
|
||||
typeDef ::= typeDesc | objectDef | enumDef | 'distinct' typeDesc
|
||||
|
||||
objectField ::= symbol ['*'] [pragma]
|
||||
|
|
|
|||
|
|
@ -442,6 +442,11 @@ The rules for compile-time computability are:
|
|||
computable arguments.
|
||||
|
||||
|
||||
Constants cannot be of type ``var`` or ``object``, nor can
|
||||
they contain such a type. For the types ``ptr`` and ``ref`` only the
|
||||
constant literal ``nil`` is possible.
|
||||
|
||||
|
||||
Types
|
||||
-----
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue