Skip to content

Commit 128739e

Browse files
author
mike dupont
committed
removing error, seems to be -
1 parent e9dcea1 commit 128739e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

common/grammar-parser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ namespace grammar_parser {
2727
static uint32_t get_symbol_id(parse_state & state, const char * src, size_t len) {
2828
uint32_t next_id = static_cast<uint32_t>(state.symbol_ids.size());
2929
auto result = state.symbol_ids.insert(std::make_pair(std::string(src, len), next_id));
30-
fprintf(stderr, "added id %s with id %d\n",src,next_id);
30+
fprintf(stderr, "added id:%d wit string:|%s|\n",next_id,std::string(src, len).c_str());
3131
return result.first->second;
3232
}
3333

grammars/ebnf.ebnf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ identifier ::= letter ( letter | digit | "_" )
1010
#| "\f" | "\b"
1111
S ::= ( " " | "\n" | "\t" | "\r" )
1212

13-
terminal ::= "'" character - "'" ( character - "'" ) "'"
14-
#| '"' character - '"' ( character - '"' ) '"'
13+
terminal ::= "'" character "'" ( character "'" ) "'"
1514

1615
terminator ::= (";" | ".")
1716

0 commit comments

Comments
 (0)