daeisbae / AParser

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

Change Program AST Statements vector to queue #33

Closed daeisbae closed 6 months ago

daeisbae commented 6 months ago

Changes

Why?

After the parsing stage, then goes the Interpretation stage. Comparing the vector and queue, queue will be more efficient than vector. Since queue just requires front() and pop() to get the value and delete the value, while vector requires initializing index to get the value of the array.