polserver/pol-core/bscript/compiler/ast
Kevin Eady 0ca7912fcd
Add support for conditional operator (#387)
* Grammar update

* AST generation

* Emit instructions

* Add initial tests

* Additional tests

* Rename to ConditionalOperator

* Add docs
2021-03-14 23:20:20 +01:00
..
Argument.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
Argument.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
ArrayInitializer.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
ArrayInitializer.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
BasicForLoop.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
BasicForLoop.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
BinaryOperator.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
BinaryOperator.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
Block.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
Block.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
BranchSelector.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
BranchSelector.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
CaseDispatchDefaultSelector.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
CaseDispatchDefaultSelector.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
CaseDispatchGroup.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
CaseDispatchGroup.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
CaseDispatchGroups.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
CaseDispatchGroups.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
CaseDispatchSelectors.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
CaseDispatchSelectors.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
CaseStatement.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
CaseStatement.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
ConditionalOperator.cpp Add support for conditional operator (#387) 2021-03-14 23:20:20 +01:00
ConditionalOperator.h Add support for conditional operator (#387) 2021-03-14 23:20:20 +01:00
ConstDeclaration.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
ConstDeclaration.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
CstyleForLoop.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
CstyleForLoop.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
DebugStatementMarker.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
DebugStatementMarker.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
DictionaryEntry.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
DictionaryEntry.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
DictionaryInitializer.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
DictionaryInitializer.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
DoWhileLoop.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
DoWhileLoop.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
ElementAccess.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
ElementAccess.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
ElementAssignment.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
ElementAssignment.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
ElementIndexes.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
ElementIndexes.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
ElvisOperator.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
ElvisOperator.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
EmptyStatement.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
EmptyStatement.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
EnumDeclaration.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
EnumDeclaration.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
ErrorInitializer.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
ErrorInitializer.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
ExitStatement.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
ExitStatement.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
Expression.cpp Add Expression, Statement, Value AST base classes, and TopLevelStatements (#229) 2020-08-17 22:53:03 -07:00
Expression.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
FloatValue.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
FloatValue.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
ForeachLoop.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
ForeachLoop.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
FormatExpression.cpp Add support for interpolated strings ("interstrings") (#369) 2021-03-11 22:48:16 +01:00
FormatExpression.h Add support for interpolated strings ("interstrings") (#369) 2021-03-11 22:48:16 +01:00
Function.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
Function.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
FunctionBody.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
FunctionBody.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
FunctionCall.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
FunctionCall.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
FunctionParameterDeclaration.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
FunctionParameterDeclaration.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
FunctionParameterList.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
FunctionParameterList.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
FunctionReference.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
FunctionReference.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
Identifier.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
Identifier.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
IfThenElseStatement.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
IfThenElseStatement.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
IntegerValue.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
IntegerValue.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
InterpolateString.cpp Add support for interpolated strings ("interstrings") (#369) 2021-03-11 22:48:16 +01:00
InterpolateString.h Add support for interpolated strings ("interstrings") (#369) 2021-03-11 22:48:16 +01:00
JumpStatement.cpp Add break and continue statements. (#270) 2020-09-04 18:21:08 -07:00
JumpStatement.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
LabelableStatement.cpp Add support for while loops (#268) 2020-09-03 19:46:27 -07:00
LabelableStatement.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
LoopStatement.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
LoopStatement.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
MemberAccess.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
MemberAccess.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
MemberAssignment.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
MemberAssignment.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
MemberAssignmentByOperator.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
MemberAssignmentByOperator.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
MethodCall.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
MethodCall.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
MethodCallArgumentList.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
MethodCallArgumentList.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
ModuleFunctionDeclaration.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
ModuleFunctionDeclaration.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
Node.cpp Add ast/Node (#227) 2020-08-17 08:03:33 +02:00
Node.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
NodeVisitor.cpp Add support for conditional operator (#387) 2021-03-14 23:20:20 +01:00
NodeVisitor.h Add support for conditional operator (#387) 2021-03-14 23:20:20 +01:00
Program.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
Program.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
ProgramParameterDeclaration.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
ProgramParameterDeclaration.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
ProgramParameterList.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
ProgramParameterList.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
RepeatUntilLoop.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
RepeatUntilLoop.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
ReturnStatement.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
ReturnStatement.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
Statement.cpp Add Expression, Statement, Value AST base classes, and TopLevelStatements (#229) 2020-08-17 22:53:03 -07:00
Statement.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
StringValue.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
StringValue.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
StructInitializer.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
StructInitializer.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
StructMemberInitializer.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
StructMemberInitializer.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
TopLevelStatements.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
TopLevelStatements.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
UnaryOperator.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
UnaryOperator.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
UninitializedValue.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
UninitializedValue.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
UserFunction.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
UserFunction.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
Value.cpp Add Expression, Statement, Value AST base classes, and TopLevelStatements (#229) 2020-08-17 22:53:03 -07:00
Value.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
ValueConsumer.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
ValueConsumer.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
VariableAssignmentStatement.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
VariableAssignmentStatement.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
VarStatement.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
VarStatement.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
WhileLoop.cpp Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
WhileLoop.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00