Skip to content
This repository was archived by the owner on May 2, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions PS.g4
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ NUMBER:
| DIGIT* (',' DIGIT DIGIT DIGIT)* '.' DIGIT+;

EQUAL: '=';
NOTEQUAL: '\\neq';
LT: '<';
LTE: '\\leq';
GT: '>';
Expand Down
2 changes: 2 additions & 0 deletions process_latex.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ def convert_relation(rel):
return sympy.GreaterThan(lh, rh)
elif rel.EQUAL():
return sympy.Eq(lh, rh)
elif rel.NOTEQUAL():
return sympy.Ne(lh, rh)

def convert_expr(expr):
return convert_add(expr.additive())
Expand Down