-
I've written grammar
`grammar = r""" ?start: value
?value: dict
| if
| array
| STRING
…
-
```python
>>> from symyp.parsing.latex import parse_latex
>>> srepr(parse_latex('1 - 2*(x + 1))'))
"Add(Integer(1), Mul(Integer(-1), Integer(2), Add(Symbol('x'), Integer(1))))"
>>> srepr(parse_lat…
-
Is their a way to match nodes by labels. eg. MATCH (p:Person) RETURN p.name?
-
So I was thinking about `combine` a bit recently and it seems to me unlike its haskell older brother it has a problem parsing recursive grammars. Take this example of a parenthesis matching parser tha…
obrok updated
7 years ago
-
I am going to implement online syntax highlighting for a grammar. It is pretty easy to get access to parsed result if the string belongs to the language. E.g. if the language is a math expression, it …
-
Having latex2sympy integrated is fantastic. Though a developer reported a minor issue where closing brackets cause expressions to not be evaluated correctly.
For example (3-9) (5-15 evaluates to -6…
-
SymPy should have a new `parse` function, designed to be safe.
**NOTE:** This is separate from the issue (#10805) of trying to remove `eval` from `sympify`.
Eventually this could play a role in a …
-
By default the LALR grammar can have only a single lookahead, but it'd be really nice if it could have a custom lookahead on specific cases (I got used to JavaCC which implements this with something a…
-
**Reported by @AnsleyManke on 23 Jan 2004 22:00 UTC**
Report by Dan Hodson, 1/22/2004
Hi,
I've come across what appears to be a small bug in gksm2ps Mod 1.06
(I think this is the version distrib…
-
See PR https://github.com/pharmpy/pharmpy/pull/68 with examples.
We need to decide if we have a separate model class for each NONMEM version (polymorphism) or if we use if/else in the same class. I…