Comment out precedence
This commit is contained in:
parent
d609b69eb4
commit
572067071e
|
@ -51,12 +51,12 @@ namespace pds {
|
||||||
lexColon(lex, token, false);
|
lexColon(lex, token, false);
|
||||||
readingGrammar = true;
|
readingGrammar = true;
|
||||||
break;
|
break;
|
||||||
/**/
|
/*
|
||||||
case ParsodusLexer::PRECEDENCES:
|
case ParsodusLexer::PRECEDENCES:
|
||||||
lexColon(lex, token, false);
|
lexColon(lex, token, false);
|
||||||
readingPrecedences = true;
|
readingPrecedences = true;
|
||||||
break;
|
break;
|
||||||
/**/
|
*/
|
||||||
case ParsodusLexer::TERMINAL:
|
case ParsodusLexer::TERMINAL:
|
||||||
if(readingTerminals) {
|
if(readingTerminals) {
|
||||||
config.grammar.terminals.insert(token.content.substr(1, token.content.size - 1));
|
config.grammar.terminals.insert(token.content.substr(1, token.content.size - 1));
|
||||||
|
@ -107,7 +107,7 @@ namespace pds {
|
||||||
} else
|
} else
|
||||||
throw InputParserException("Found a variable outside a grammar section: " + token.content);
|
throw InputParserException("Found a variable outside a grammar section: " + token.content);
|
||||||
break;
|
break;
|
||||||
/**/
|
/*
|
||||||
case ParsodusLexer::PRECEDENCE:
|
case ParsodusLexer::PRECEDENCE:
|
||||||
if (readingPrecedences) {
|
if (readingPrecedences) {
|
||||||
|
|
||||||
|
@ -138,7 +138,7 @@ namespace pds {
|
||||||
|
|
||||||
} else
|
} else
|
||||||
throw InputParserException("Found a precedence rule outside a precedence section: " + token.content);
|
throw InputParserException("Found a precedence rule outside a precedence section: " + token.content);
|
||||||
/**/
|
*/
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue