From 6a9a35186920bdce11b511ee5842b23f3066475f Mon Sep 17 00:00:00 2001 From: achan1989 Date: Sat, 6 Apr 2019 15:49:23 +0100 Subject: [PATCH] #364 - ensure a ParsingEnvironment is provided to DisplayParser and SemanticParser. --- .../src/main/antlr/ghidra/sleigh/grammar/SleighParser.g | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Ghidra/Framework/SoftwareModeling/src/main/antlr/ghidra/sleigh/grammar/SleighParser.g b/Ghidra/Framework/SoftwareModeling/src/main/antlr/ghidra/sleigh/grammar/SleighParser.g index dc8a37ca95..74f75b56e0 100644 --- a/Ghidra/Framework/SoftwareModeling/src/main/antlr/ghidra/sleigh/grammar/SleighParser.g +++ b/Ghidra/Framework/SoftwareModeling/src/main/antlr/ghidra/sleigh/grammar/SleighParser.g @@ -16,6 +16,13 @@ import DisplayParser, SemanticParser; gDisplayParser.setLexer(lexer); gSemanticParser.setLexer(lexer); } + + @Override + public void setEnv(ParsingEnvironment env) { + super.setEnv(env); + gDisplayParser.setEnv(env); + gSemanticParser.setEnv(env); + } } /**