Skip to content

Commit

Permalink
fix defer generation
Browse files Browse the repository at this point in the history
  • Loading branch information
L140-beep committed Dec 18, 2024
1 parent 05e2e7f commit caf8202
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions compiler/fullgraphmlparser/graphml_to_cpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@

DEFER = string.Template("""
$offset if (!signalDefer) {
$offset defer[defer_i] = $trigger_name_SIG;\n')
$offset defer_i++;\n'
$offset}'
$offset defer[defer_i] = $trigger_name;\n
$offset defer_i++;\n
$offset}
""")


Expand Down Expand Up @@ -442,7 +442,7 @@ async def _insert_file_template(self, filename: str):
await self._insert_string(str(line))

def _generate_defer(self, trigger_name: str, offset='\t\t') -> str:
return DEFER.safe_substitute({'trigger_name': trigger_name, 'offset': offset})
return DEFER.safe_substitute({'trigger_name': trigger_name + '_SIG', 'offset': offset})

async def _write_states_definitions_recursively(self, state: ParserState, state_path: str):
state_path = state_path + '::' + state.name
Expand Down

0 comments on commit caf8202

Please sign in to comment.