Change syntax analyzer to parse same level commands to the same level in AST #20
Labels
maybe
Something that is not surely needed to be done or is not required at all
refactor
Code refactoring
syntax_analyzer
Syntax analysis changes
Current syntax analyzer implementation will process the following program
as the following tree
Current implementation parses program in a kind of binary tree.
This should be changed to make syntax tree able to store multiple nodes in a particular level. So the mentioned program must be parsed into the following tree to reduce nesting of the whole tree. This implementation is more suitable unlike the second one
Also this can be parsed into the following tree. But such implementation will be hard to debug
The text was updated successfully, but these errors were encountered: