jszheng / py3antlr4book

Covert ANTLR4 book source code to Python3 version.
419 stars 93 forks source link

Attach values directly to tree nodes #13

Open cmangla opened 3 years ago

cmangla commented 3 years ago

As mentioned in the book, in dynamic languages such as Python, where object attributes can be added at runtime, a map to store the values is not needed.