Search in sources :

Example 1 with SemanticAstCreator

use of de.bmoth.parser.ast.SemanticAstCreator in project bmoth by hhu-stups.

the class Parser method getLTLFormulaAst.

private LTLFormula getLTLFormulaAst(LtlStartContext context) throws ScopeException {
    LTLFormulaAnalyser formulaAnalyser = new LTLFormulaAnalyser(context);
    SemanticAstCreator astCreator = new SemanticAstCreator(formulaAnalyser);
    return (LTLFormula) astCreator.getAstNode();
}
Also used : LTLFormula(de.bmoth.parser.ast.nodes.ltl.LTLFormula) SemanticAstCreator(de.bmoth.parser.ast.SemanticAstCreator)

Example 2 with SemanticAstCreator

use of de.bmoth.parser.ast.SemanticAstCreator in project bmoth by hhu-stups.

the class Parser method getFormulaAst.

private FormulaNode getFormulaAst(FormulaContext formula) throws ScopeException {
    FormulaAnalyser formulaAnalyser = new FormulaAnalyser(formula);
    SemanticAstCreator astCreator = new SemanticAstCreator(formulaAnalyser);
    return (FormulaNode) astCreator.getAstNode();
}
Also used : FormulaNode(de.bmoth.parser.ast.nodes.FormulaNode) SemanticAstCreator(de.bmoth.parser.ast.SemanticAstCreator)

Example 3 with SemanticAstCreator

use of de.bmoth.parser.ast.SemanticAstCreator in project bmoth by hhu-stups.

the class Parser method getMachineAst.

private MachineNode getMachineAst(StartContext start) throws ScopeException, ParseErrorException {
    MachineAnalyser machineAnalyser = new MachineAnalyser(start);
    SemanticAstCreator astCreator = new SemanticAstCreator(machineAnalyser);
    return (MachineNode) astCreator.getAstNode();
}
Also used : SemanticAstCreator(de.bmoth.parser.ast.SemanticAstCreator) MachineNode(de.bmoth.parser.ast.nodes.MachineNode)

Aggregations

SemanticAstCreator (de.bmoth.parser.ast.SemanticAstCreator)3 FormulaNode (de.bmoth.parser.ast.nodes.FormulaNode)1 MachineNode (de.bmoth.parser.ast.nodes.MachineNode)1 LTLFormula (de.bmoth.parser.ast.nodes.ltl.LTLFormula)1