idank / bashlex

Python parser for bash
GNU General Public License v3.0
550 stars 94 forks source link

Add hash method to node class #75

Closed lacraig2 closed 2 years ago

lacraig2 commented 2 years ago

The class node is essentially a wrapper around a dict.

Adding a hash method makes it compatible with a lot of data structures (e.g. set).

idank commented 2 years ago

Thanks for the pull request. Can you please reword the commit message to

ast: add hash method to node

lacraig2 commented 2 years ago

Sure. Done.