Fix input parser
This commit is contained in:
parent
03e9e41e9e
commit
53f5093019
|
@ -75,7 +75,7 @@ namespace pds {
|
||||||
if(config.grammar.variables.find(token.content) == config.grammar.variables.end())
|
if(config.grammar.variables.find(token.content) == config.grammar.variables.end())
|
||||||
config.grammar.variables.insert(token.content.substr(1, token.content.size() - 2));
|
config.grammar.variables.insert(token.content.substr(1, token.content.size() - 2));
|
||||||
|
|
||||||
std::string current_head = token.content;
|
std::string current_head = token.content.substr(1, token.content.size() - 2);
|
||||||
// Parsing rule
|
// Parsing rule
|
||||||
token = lex.nextToken();
|
token = lex.nextToken();
|
||||||
if(token.type != ParsodusLexer::ARROW)
|
if(token.type != ParsodusLexer::ARROW)
|
||||||
|
|
Loading…
Reference in New Issue