Experiment with new grammatical parsing rule for expression level (-strict-style) idea

This commit is contained in:
gingerBill
2021-03-30 11:48:32 +01:00
parent bc5e80d7d6
commit fbd01660ee
2 changed files with 35 additions and 6 deletions
+1
View File
@@ -95,6 +95,7 @@ struct AstFile {
// < 0: In Control Clause
// NOTE(bill): Used to prevent type literals in control clauses
isize expr_level;
bool allow_newline; // Only valid for expr_level == 0
bool allow_range; // NOTE(bill): Ranges are only allowed in certain cases
bool allow_in_expr; // NOTE(bill): in expression are only allowed in certain cases
bool in_foreign_block;