amykyta3 / speedy-antlr-tool

Generate an accelerator extension that makes your Antlr parser in Python super-fast!
BSD 3-Clause "New" or "Revised" License
29 stars 7 forks source link

Include option for `#undef` for Windows #16

Closed svengiegerich closed 1 year ago

svengiegerich commented 1 year ago

Within the package pytsql, we encountered an issue when using speedy-antlr-tool on Windows: 👉 conflicting (uppercase) verbs with Window specific macro's.

Luckily the fix was relatively easy, at least in our case: adding #undef(see #undef) to the auto-generated *Lexer.h.

amykyta3 commented 1 year ago

I'm not sure i understand what the specific request or issue is.

If there is an issue with the auto-generated *Lexer.h file, that is not created by this tool. Those files are generated by ANTLR, whose issue page can be found here: https://github.com/antlr/antlr4/issues

svengiegerich commented 1 year ago

Ah, I see; I could have guessed from the comment included in the file (but was not sure whether the tool may modify the file). Thanks for the reply, and sorry for bothering!