rename
This commit is contained in:
@ -42,7 +42,7 @@ class SymbolTableTest {
|
|||||||
|
|
||||||
Lexer lex = this.initLexer("SingleSymbol.stups");
|
Lexer lex = this.initLexer("SingleSymbol.stups");
|
||||||
AST tree = stupsParser.parse(lex.getAllTokens(), lex.getVocabulary());
|
AST tree = stupsParser.parse(lex.getAllTokens(), lex.getVocabulary());
|
||||||
tree.preprocess(grammar);
|
tree.postprocess(grammar);
|
||||||
|
|
||||||
SymbolTable table = SymbolTable.fromAST(tree);
|
SymbolTable table = SymbolTable.fromAST(tree);
|
||||||
|
|
||||||
@ -58,7 +58,7 @@ class SymbolTableTest {
|
|||||||
|
|
||||||
Lexer lex = this.initLexer("MultipleSymbol.stups");
|
Lexer lex = this.initLexer("MultipleSymbol.stups");
|
||||||
AST tree = stupsParser.parse(lex.getAllTokens(), lex.getVocabulary());
|
AST tree = stupsParser.parse(lex.getAllTokens(), lex.getVocabulary());
|
||||||
tree.preprocess(grammar);
|
tree.postprocess(grammar);
|
||||||
|
|
||||||
SymbolTable table = SymbolTable.fromAST(tree);
|
SymbolTable table = SymbolTable.fromAST(tree);
|
||||||
|
|
||||||
@ -79,7 +79,7 @@ class SymbolTableTest {
|
|||||||
|
|
||||||
Lexer lex = this.initLexer("ExistingSymbol.stups");
|
Lexer lex = this.initLexer("ExistingSymbol.stups");
|
||||||
AST tree = stupsParser.parse(lex.getAllTokens(), lex.getVocabulary());
|
AST tree = stupsParser.parse(lex.getAllTokens(), lex.getVocabulary());
|
||||||
tree.preprocess(grammar);
|
tree.postprocess(grammar);
|
||||||
|
|
||||||
assertThatThrownBy(() -> SymbolTable.fromAST(tree)).isInstanceOf(SymbolAlreadyDefinedException.class);
|
assertThatThrownBy(() -> SymbolTable.fromAST(tree)).isInstanceOf(SymbolAlreadyDefinedException.class);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user