]> gitweb.ps.run Git - toc/blobdiff - src/repr.h
generic grammar
[toc] / src / repr.h
index cc287460627b9db1861f16868ac21ba53c1cddef..eb46e3a6a3f22e9536d06d8dc1290aa8a083230b 100644 (file)
@@ -17,11 +17,13 @@ struct Program;
 struct FuncExpr;\r
 struct LitExpr;\r
 struct IdentifierExpr;\r
+struct AccessExpr;\r
 struct BracketsExpr;\r
 struct UnaryOperatorExpr;\r
 struct BinaryOperatorExpr;\r
 struct TernaryOperatorExpr;\r
 struct DotExpr;\r
+struct ParenExpr;\r
 struct Expr;\r
 struct IfStmt;\r
 struct SwitchStmt;\r
@@ -38,6 +40,7 @@ enum class TypeModifierType {
 struct TypeModifier {\r
   TypeModifierType type;\r
 \r
+  bool _staticArray;\r
   int _arraySize;\r
 };\r
 \r
@@ -155,6 +158,8 @@ struct DotExpr {
 struct Expr {\r
   ExprType type;\r
 \r
+  bool parenthesized;\r
+\r
   FuncExpr            _func;\r
   LitExpr             _lit;\r
   IdentifierExpr      _identifier;\r