Skip to content

Commit

Permalink
Fixes syntax inline optimization, and makes syntax 2 bytes smaller.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmsc committed Jul 25, 2024
1 parent 57031df commit 52f0f88
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/compiler/synt-sm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,6 @@ bool statemachine::tail_call(const statemachine &from)

bool statemachine::inline_call(std::string tab, const statemachine &from)
{
if(complete)
return p.error("table '" + _name + "' was already completed");
if(from.complete)
return p.error("table '" + from._name + "' was already completed");

Expand Down
2 changes: 1 addition & 1 deletion src/syntax/basic.syn
Original file line number Diff line number Diff line change
Expand Up @@ -542,9 +542,9 @@ LINE_ASSIGNMENT:
ARRAY_BYTE_ADDR emit TOK_SADDR EQUAL EXPR emit TOK_POKE
VAR_STR_LVALUE_SADDR EQUAL STR_EXPR emit TOK_COPY_STR
VAR_STR_LVALUE_SADDR EQUAL "+" STR_EXPR emit TOK_CAT_STR
pass

PARSE_START:
E_EOL
STATEMENT E_EOL
LINE_ASSIGNMENT E_EOL

Expand Down

0 comments on commit 52f0f88

Please sign in to comment.