boolangery / py-lua-parser

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

Fix missing first_token and last_token #47

Open Tomclancysi opened 1 year 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.