Re: [racket-users] br-parser-tools question

2020-06-09 Thread jon stenerson
I don't think you should assume I have a *good* reason for using yacc over brag. I just thought that in my case it would be easier to put some code in the productions rather than build a full parse tree and then process that. I seem to have been wrong about that. I will take another look at bra

Re: [racket-users] br-parser-tools question

2020-06-08 Thread Matthew Butterick
`br-parser-tools` has some patches needed to make `brag` work, e.g., using the srcloc structure. I forked rather than patch the underlying `parser-tools` package because I didn't want to destroy the fragile ancient artifact. I fixed a few bugs; the others persist. I notice, for example, that you

Re: [racket-users] br-parser-tools question

2020-06-08 Thread Jon Stenerson
Thanks for confirming. I had actually started with the lexer-src-pos version but had other problems like exn:fail:read wanting a list of srclocs and the lexer only having positions. So I switched to lexer-srcpos which fixed the exception but broke the parse. Maybe I should do a conversion betwee

Re: [racket-users] br-parser-tools question

2020-06-08 Thread Jon Zeppieri
On Mon, Jun 8, 2020 at 8:36 PM jon stenerson wrote: > > Hi all, > > I don't understand the error message here. The parser seems to be > looking for a position-token but the lexer is sending srcloc-tokens? Is > there a simple fix? Using Racket 7.7 on WIn 10. Hi Jon, Yes, you're right, and there i

[racket-users] br-parser-tools question

2020-06-08 Thread jon stenerson
Hi all, I don't understand the error message here. The parser seems to be looking for a position-token but the lexer is sending srcloc-tokens? Is there a simple fix? Using Racket 7.7 on WIn 10. I am also confused about whether to use br-parser-tools or parser-tools package. br-* is the more