Skip to content

Port to ANTLR4#5

Open
wasserfeder wants to merge 12 commits intomasterfrom
feature/port_antlr4
Open

Port to ANTLR4#5
wasserfeder wants to merge 12 commits intomasterfrom
feature/port_antlr4

Conversation

@wasserfeder
Copy link
Copy Markdown
Owner

No description provided.

dfa = union(dfa_left, dfa_right)
elif formula_ast.op == TWTLOperation.AND:
dfa = intersection(dfa_left, dfa_right)
elif formula_ast.op == TWTLOperation.CONCAT):
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

elif formula_ast.op == TWTLOperation.CONCAT:

elif self.op == Operation.WITHIN:
child_bounds = self.child.bounds()
assert child_bound[0] <= self.high - self.low, \
'Child formula is unfeasible within time window'!
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'Child formula is unfeasible within time window!'

# CommonTree
t = phi.tree
# AST
ast = TWTLAbstractSyntaxTreeExtractor().visit(t)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Edit: ast = TWTLAbstractSyntaxTreeExtractor().visit(phi)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants