polserver/pol-core/bscript/compiler/model
Eric Swanson 6ce9c38de3
Add support for const declarations (#264)
Adds:
- analyzer/Constants: holds constant name -> value for lookup
- ast/ConstDeclaration: AST node for a const declaration
- optimizer/ConstValidator: validates that an optimized expression is valid to use as a constant.

the Optimizer converts Identifiers that refer to a constant to the optimized constant value.
2020-09-01 00:54:24 -07:00
..
CompilerWorkspace.cpp Add support for const declarations (#264) 2020-09-01 00:54:24 -07:00
CompilerWorkspace.h Add support for const declarations (#264) 2020-09-01 00:54:24 -07:00
FlowControlLabel.cpp Add support for if-then-else statements (#259) 2020-08-30 17:03:26 -07:00
FlowControlLabel.h Add support for if-then-else statements (#259) 2020-08-30 17:03:26 -07:00
FunctionLink.cpp Add limited support for user functions (#262) 2020-08-31 18:46:27 -07:00
FunctionLink.h Add limited support for user functions (#262) 2020-08-31 18:46:27 -07:00
Variable.cpp Compiler rewrite: add global variables (#241) 2020-08-25 00:57:03 -07:00
Variable.h Compiler rewrite: add global variables (#241) 2020-08-25 00:57:03 -07:00
VariableScope.h Compiler rewrite: add global variables (#241) 2020-08-25 00:57:03 -07:00
WarnOn.h Compiler rewrite: add global variables (#241) 2020-08-25 00:57:03 -07:00