Commit abc61952 authored by Kristof Szabados's avatar Kristof Szabados
Browse files

looks more consistent like this.


Signed-off-by: Kristof Szabados's avatarKristof Szabados <Kristof.Szabados@ericsson.com>
parent 76c4dcf6
......@@ -35,19 +35,16 @@ import org.eclipse.titan.designer.parsers.ParserMarkerSupport;
public class VariantAttributeAnalyzer {
public void parse(final RawAST rawAST, final AttributeSpecification specification, final int lengthMultiplier, final AtomicBoolean raw_found) {
VariantAttributeLexer lexer;
final Location location = specification.getLocation();
final StringReader reader = new StringReader(specification.getSpecification());
final CharStream charStream = new UnbufferedCharStream(reader);
lexer = new VariantAttributeLexer(charStream);
VariantAttributeLexer lexer = new VariantAttributeLexer(charStream);
lexer.setTokenFactory(new CommonTokenFactory(true));
final TitanListener lexerListener = new TitanListener();
lexer.removeErrorListeners();
lexer.addErrorListener(lexerListener);
final CommonTokenStream tokenStream = new CommonTokenStream( lexer );
final VariantAttributeParser parser = new VariantAttributeParser( tokenStream );
parser.setBuildParseTree(false);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment