-
Notifications
You must be signed in to change notification settings - Fork 12
cannot parse words "start", "error", "atok" #3
Comments
I see what you mean. This is a bug in the underlying #lang brag
foo : "star" "t" |
Actually, that won’t work. Here’s a better idea (this time I’m trying it before writing it). Instead of passing the raw string
This will parse the same way, and the underlying string will end up the parse tree: #lang br
(require "parse.rkt" brag/support)
(parse-to-datum (list (token 'START "start")))
|
Note to self: check if this is an insurmountable restriction of the underlying |
I was able to rehabilitate |
Thanks for looking into this. I git cloned the latest and tried cd brag ; raco pkg install but I got a lot of errors. If I cd brag and do raco test . i get some files running then How should I test this latest commit?
|
I’m not sure a direct |
(BTW I can’t reproduce these errors locally, nor do they show up on Travis, which heightens my suspicion that the |
I tried |
You can also do |
thanks a lot that worked, I see that I can use "start" now but not "%start". |
OK, fixed that |
.racket/6.12/pkgs/brag/brag/cfg-parser/cfg-parser.rkt:708:55: parser-non-terminals: start used as both token and non-terminal in: start
The text was updated successfully, but these errors were encountered: