change yaml spec to + move ast utilities + drop numpy dependency
yaml spec now supports attaching meta data to specs such as pri or stl
This commit is contained in:
parent
8d5a32701c
commit
a414e57162
4 changed files with 60 additions and 62 deletions
|
|
@ -14,7 +14,6 @@ import operator as op
|
|||
|
||||
from parsimonious import Grammar, NodeVisitor
|
||||
from funcy import flatten
|
||||
import numpy as np
|
||||
from lenses import lens
|
||||
|
||||
from sympy import Symbol, Number
|
||||
|
|
@ -51,7 +50,7 @@ prime = "'"
|
|||
pm = "+" / "-"
|
||||
dt = "dt"
|
||||
unbound = "?"
|
||||
id = ("x" / "u" / "w") ~r"[a-zA-z\d]*"
|
||||
id = ~r"[a-zA-z\d]*"
|
||||
const = ~r"[\+\-]?\d*(\.\d+)?"
|
||||
op = ">=" / "<=" / "<" / ">" / "="
|
||||
_ = ~r"\s"+
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue