Skip to content

Commit

Permalink
Add '-visitor' parameter to build script
Browse files Browse the repository at this point in the history
  • Loading branch information
surister committed Jun 11, 2024
1 parent fa39818 commit ec6d603
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion setup_grammar.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ def compile_grammar(target: Antlr4Target):
logger.info(f"Compiling grammar: {outfile}")
subprocess.check_call(
[
'antlr4', f'-Dlanguage={target.value}',
'antlr4',
f'-Dlanguage={target.value}',
'-visitor',
'-o',
str(PARSER_COMPILE_PATH / base_dir / sub_dir),
file['filename']
Expand Down

0 comments on commit ec6d603

Please sign in to comment.