//Ignore the line and column number here, all you will be using the line number and columnNumber in parser is for printing syntax error in Tran code lexed by you.
//Ignore the line and column number here, all you will be using the line number and columnNumber in parser is for printing syntax error in Tran code lexed by you.
LexerL= newLexer("interface someName\n" +
" square() : number s\n" +
"class TranExample implements someName\n" +
" number m\n" +
" accessor:"
);
varLT= L.Lex();
System.out.println(LT);
vartokens = newLinkedList<>(LT);//converting list to linked list so the token manager can handle this
varp = newParser(tran, LT);
p.Tran();
varclazz = tran.Classes.getFirst();
}
@Test
publicvoidtestmutator() throwsException {
vartran = newTranNode();
//Ignore the line and column number here, all you will be using the line number and columnNumber in parser is for printing syntax error in Tran code lexed by you.