This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-08-27
Channels
- # admin-announcements (42)
- # aws (15)
- # beginners (8)
- # boot (102)
- # cider (7)
- # clojure (141)
- # clojure-italy (10)
- # clojure-japan (4)
- # clojure-russia (26)
- # clojure-seattle (1)
- # clojurescript (239)
- # core-matrix (13)
- # cursive (19)
- # datascript (54)
- # datomic (21)
- # editors (2)
- # events (1)
- # hoplon (125)
- # instaparse (10)
- # jobs (3)
- # ldnclj (13)
- # ldnproclodo (1)
- # om (1)
- # onyx (2)
- # rdf (206)
- # re-frame (30)
- # reagent (7)
- # yada (4)
@nodename: One Char is a character from the range given in the regexp. You allow many Chars with the +. Maybe you want Term = Char
So that the regexp eats the characters. Of course then "Char" is not a really good name anymore and might become sth like Symbol or Name
It actually does that, it's just not the first result. Your grammar is ambiguous. See the result of insta/parses
The reason is, that + in instaparse is not greedy but allows all possible paths whereas + in the regexp would be greedy
My approach would be to use the regexp mentioned above. To me that is kinda the tokenization step in instaparse. I don't know if other solutions exists from the top off my head
Looks like I tried that already and came to the conclusion that there is no other way: https://github.com/ska2342/sourcetalk14/blob/master/de.skamphausen.stt14/src/de/skamphausen/stt14.clj#L460