mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
* 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
|
||
|---|---|---|
| .. | ||
| .gitignore | ||
| EscriptLexer.cpp | ||
| EscriptLexer.g4 | ||
| EscriptLexer.h | ||
| EscriptParser.cpp | ||
| EscriptParser.g4 | ||
| EscriptParser.h | ||
| EscriptParserBaseListener.cpp | ||
| EscriptParserBaseListener.h | ||
| EscriptParserBaseVisitor.cpp | ||
| EscriptParserBaseVisitor.h | ||
| EscriptParserListener.cpp | ||
| EscriptParserListener.h | ||
| EscriptParserVisitor.cpp | ||
| EscriptParserVisitor.h | ||