boolangery / py-lua-parser

A Lua parser and AST builder written in Python.
MIT License
124 stars 39 forks source link

Fix missing first_token and last_token #47

Closed Tomclancysi closed 1 month ago

Tomclancysi commented 1 year ago

I intend to comment out some specific IF statements in the release version before compiling, similar to a simple macro. However, I noticed that the first_token and last_token attributes are None for some AST nodes like If and ForNum. I have added the first and last token fields for these missing nodes.