build: Add BooleanExpressionsInterpreter csproj

For the DataStream port

* Add Lexer/Parser build targets
* Update externals w/ lexer/parser generator deps
This commit is contained in:
John Colvin committed 2023-09-01 01:28:40 -04:00
1 parent 23c83c0fb6
commit 9e221cabc3
24 files changed
+1990 -14

No files matched your search

@@ -0,0 +1,15 @@
%parser ArithmeticTokens.lexer
%namespace BCG.ArithmeticExpression
%left Plus Minus
%left Times Div
%before Minus
%nonassoc Equals
BindingExpression: BindingExpression Assignment | Assignment;
Assignment: Identifier Equals Expression;
Expression : Expression Plus Term | Expression Minus Term | Term;
Term : Term Times Factor | Term Div Factor | Factor;
Factor : Application | Identifier | IntegerConstant | RealConstant | Minus Factor | OpenP Expression CloseP;
Application : Identifier OpenP ExpressionList CloseP;
ExpressionList : | ExpressionList Comma Expression | Expression;