LogicodeLang / Logicode

An esoteric language based on logic gates.
MIT License
12 stars 3 forks source link

Explanation of `get` function? #5

Closed hanyuone closed 8 years ago

hanyuone commented 8 years ago

I don't really understand what the get function does. @somebody1234, can you explain?

somebody1234 commented 8 years ago

It reads the grammar and returns (tokens, length of code) if they match, else (None, 0) if they don't.

somebody1234 commented 8 years ago

It should probably be renamed to getTokens