diff options
author | Christopher L. Conway <christopherleeconway@gmail.com> | 2010-02-16 18:07:41 +0000 |
---|---|---|
committer | Christopher L. Conway <christopherleeconway@gmail.com> | 2010-02-16 18:07:41 +0000 |
commit | 48142c912d7571ee204b373eadf835c5b676af2c (patch) | |
tree | 5caf584809cf5b28882edfbcbc73e86efe7a0ae9 /src/parser/antlr_parser.cpp | |
parent | 69248e7ee22494ccefe0ce21fe4b834eb60df2e1 (diff) |
Converting semantic predicates in parser to AlwaysAssertions
Diffstat (limited to 'src/parser/antlr_parser.cpp')
-rw-r--r-- | src/parser/antlr_parser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parser/antlr_parser.cpp b/src/parser/antlr_parser.cpp index bd263f72d..24d0ac3d7 100644 --- a/src/parser/antlr_parser.cpp +++ b/src/parser/antlr_parser.cpp @@ -288,9 +288,9 @@ bool AntlrParser::isDeclared(string name, SymbolType type) { } } -void AntlrParser::rethrow(antlr::SemanticException& e, string new_message) +void AntlrParser::parseError(string message) throw (antlr::SemanticException) { - throw antlr::SemanticException(new_message, getFilename(), + throw antlr::SemanticException(message, getFilename(), LT(1).get()->getLine(), LT(1).get()->getColumn()); } |