k-john-gough / gppg

GPPG is a parser generator that produces parsers written in the C# V2 or higher. The input language is YACC-like, and the parsers are LALR(1), with the usual automatic disambiguations. Designed to work with GPLEX.
Other
37 stars 23 forks source link

Example of using yylloc #6

Open merlick123 opened 1 year ago

merlick123 commented 1 year ago

Can someone provide an example using yylloc?

I wonder if it's perhaps broken because every time I debug yylloc or CurrentLocationSpan I only ever get zeroes. When it performs a location merge, "this" is all zeroes, and "last" is all zeroes.