From 53f5093019efdd8b4116fa133b7614711498395b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Av=C3=A9?= Date: Wed, 25 Jan 2017 13:59:33 +0100 Subject: [PATCH] Fix input parser --- src/inputparser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inputparser.cpp b/src/inputparser.cpp index 9f40ca9..dfbfc6d 100644 --- a/src/inputparser.cpp +++ b/src/inputparser.cpp @@ -75,7 +75,7 @@ namespace pds { if(config.grammar.variables.find(token.content) == config.grammar.variables.end()) 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 token = lex.nextToken(); if(token.type != ParsodusLexer::ARROW)