polserver/lib/EscriptGrammar
Eric Swanson d456cc98eb
Update compiler grammar (#238)
* Update grammar
  - add '=' to grammar so that we can report appropriate errors
  - add elvis ?: operator
  - add foreachIterableExpression to match old compiler (which only allows certain expressions)
  - allow both byref and unused on the same function parameter
  - rename methodCall -> functionCall
  - rename memberCall -> methodCall
  - add named parser rule for functionReference
  - move everything that isn't expression(s) with operators into primary
    - expression is now just the left-recursive rules and prefix operators
  - add named parser rules for struct, dictionary, error, array initialization
  - remove special-case for named parameters with := from function call argument, because it is ambiguous with assignment
  - Moved array access, object member access, and object method calls to navigationSuffix

* Regen grammar
2020-08-21 01:53:42 -07:00
..
.gitignore bscript uses antlr library, and compiles the lexer and parser 2020-08-03 19:39:29 -07:00
EscriptLexer.cpp Update compiler grammar (#238) 2020-08-21 01:53:42 -07:00
EscriptLexer.g4 Update compiler grammar (#238) 2020-08-21 01:53:42 -07:00
EscriptLexer.h Update compiler grammar (#238) 2020-08-21 01:53:42 -07:00
EscriptParser.cpp Update compiler grammar (#238) 2020-08-21 01:53:42 -07:00
EscriptParser.g4 Update compiler grammar (#238) 2020-08-21 01:53:42 -07:00
EscriptParser.h Update compiler grammar (#238) 2020-08-21 01:53:42 -07:00
EscriptParserBaseListener.cpp generated lib/EscriptGrammar from grammar 2020-07-26 21:28:02 -07:00
EscriptParserBaseListener.h Update compiler grammar (#238) 2020-08-21 01:53:42 -07:00
EscriptParserBaseVisitor.cpp generated lib/EscriptGrammar from grammar 2020-07-26 21:28:02 -07:00
EscriptParserBaseVisitor.h Update compiler grammar (#238) 2020-08-21 01:53:42 -07:00
EscriptParserListener.cpp generated lib/EscriptGrammar from grammar 2020-07-26 21:28:02 -07:00
EscriptParserListener.h Update compiler grammar (#238) 2020-08-21 01:53:42 -07:00
EscriptParserVisitor.cpp generated lib/EscriptGrammar from grammar 2020-07-26 21:28:02 -07:00
EscriptParserVisitor.h Update compiler grammar (#238) 2020-08-21 01:53:42 -07:00