diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2024-10-08 16:57:55 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2024-10-08 16:57:55 -0400 |
commit | 16d26fc9a879f9d5044119d991433d798ed8f3ec (patch) | |
tree | 19e0dd4333fab3bd34b9b35f091e266646fe5d75 /tnslc | |
parent | e338aba249be2d23d66a1d7ff4bb067bcb3908f6 (diff) |
[tnslc] enum hotfix
Diffstat (limited to 'tnslc')
-rw-r--r-- | tnslc/parse/ast.tnsl | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/tnslc/parse/ast.tnsl b/tnslc/parse/ast.tnsl index 842a7fc..420f3d3 100644 --- a/tnslc/parse/ast.tnsl +++ b/tnslc/parse/ast.tnsl @@ -1943,31 +1943,18 @@ int errors_shown = 0 # Check for enum type /; if (first`.data` == '[') _ast_list_type(fin, ~sct, first) - - Token tmp = produce_next_token(fin, first`) - first`.end() - first` = tmp ;/ # Check for def list /; if (first`._type !== TTYPE_DELIM || first`.data` !== '{') - _ast_print_err(fin, first, "Expected new identifier for typedef after 'struct'\0") + _ast_print_err(fin, first, "Expected '{' after enum definition\0") mod`.add_child(~sct) - - Token tmp = produce_next_token(fin, first`) - first`.end() - first` = tmp - return ;/ # Parse deflist and push root node into module _ast_list_enum(fin, ~sct, first) mod`.add_child(~sct) - - Token tmp = produce_next_token(fin, first`) - first`.end() - first` = tmp ;/ /; _ast_decl (~utils.File fin, ~Node mod, ~Token first) |