daeisbae / AParser

Yet another programming language for educational purpose and simplicity
https://daeisbae.github.io/AParser/
MIT License
1 stars 0 forks source link

Getter for the operator member inside the Token class #23

Closed daeisbae closed 6 months ago

daeisbae commented 6 months ago

Previously there was no way to get the Operator member inside the Token class If the TokenType is Operator, we need to have a way to view the OperatorType to figure what operation it needs to perform during parser (ast) stage