Skip to content

Commit

Permalink
fix template
Browse files Browse the repository at this point in the history
  • Loading branch information
amykyta3 committed Jan 2, 2022
1 parent c681668 commit 36d389e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion speedy_antlr_tool/__about__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.3.0"
__version__ = "1.3.1"
2 changes: 1 addition & 1 deletion speedy_antlr_tool/templates/sa_X_cpp_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include "sa_{{grammar_name|lower}}_translator.h"

{%- for rule_name in entry_rule_names %}
antlr4::tree::ParseTree* get_parse_tree_{{rule_name}}(SystemRDLParser *parser) {return parser->{{rule_name}}();}
antlr4::tree::ParseTree* get_parse_tree_{{rule_name}}({{grammar_name}}Parser *parser) {return parser->{{rule_name}}();}
{%- endfor %}

antlr4::tree::ParseTree* get_parse_tree({{grammar_name}}Parser *parser, const char *entry_rule_name) {
Expand Down

0 comments on commit 36d389e

Please sign in to comment.