Search in sources :

Example 11 with EOF

use of de.be4.eventbalg.core.parser.node.EOF in project prob2 by bendisposto.

the class DomBuilder method createSubstitutionAST.

private Start createSubstitutionAST(final PSubstitution pSub) {
    Start start = new Start();
    ASubstitutionParseUnit node2 = new ASubstitutionParseUnit();
    start.setPParseUnit(node2);
    start.setEOF(EOF);
    node2.setSubstitution((PSubstitution) pSub.clone());
    node2.getSubstitution().apply(new RenameIdentifiers());
    return start;
}
Also used : Start(de.be4.classicalb.core.parser.node.Start) ASubstitutionParseUnit(de.be4.classicalb.core.parser.node.ASubstitutionParseUnit)

Aggregations

Start (de.be4.classicalb.core.parser.node.Start)8 EOF (de.be4.classicalb.core.parser.node.EOF)6 PushbackReader (java.io.PushbackReader)5 StringReader (java.io.StringReader)5 Token (de.be4.classicalb.core.parser.node.Token)4 BLexer (de.be4.classicalb.core.parser.BLexer)3 BParser (de.be4.classicalb.core.parser.BParser)3 ASTPrinter (de.be4.classicalb.core.parser.visualisation.ASTPrinter)3 Test (org.junit.Test)3 TIdentifierLiteral (de.be4.classicalb.core.parser.node.TIdentifierLiteral)2 IOException (java.io.IOException)2 Reader (java.io.Reader)2 Helpers.getTreeAsString (util.Helpers.getTreeAsString)2 BLexerException (de.be4.classicalb.core.parser.exceptions.BLexerException)1 PreParseException (de.be4.classicalb.core.parser.exceptions.PreParseException)1 LexerException (de.be4.classicalb.core.parser.lexer.LexerException)1 AAbstractMachineParseUnit (de.be4.classicalb.core.parser.node.AAbstractMachineParseUnit)1 AConstantsMachineClause (de.be4.classicalb.core.parser.node.AConstantsMachineClause)1 AEmptySetExpression (de.be4.classicalb.core.parser.node.AEmptySetExpression)1 AExpressionParseUnit (de.be4.classicalb.core.parser.node.AExpressionParseUnit)1