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 between positions 
and srclocs at some point? Seems awkward.

On June 8, 2020, at 6:49 PM, Jon Zeppieri <[email protected]> wrote:

On Mon, Jun 8, 2020 at 8:36 PM jon stenerson <[email protected]> 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 is a simple fix. Instead of using
`lexer-srcloc`, you can use `lexer-src-pos`. The former seems to be an
addition to the `br-` variant of parser-tools, but I don't see any
indication that the lexers it generates can be used with the yacc
tools. (I could be wrong about that.)

- Jon

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/1gkb5qug6ffe8copwx6u8cc1.1591676950009%40email.android.com.

Reply via email to