The python programs use ‘ply’ library to tokenise and parse through a given input and check whether it is part of the grammar (in this case, the syntax of R programming language). The syntax for the following five constructs is checked:
- Variable Declaration
- Array Declaration
- If Construct
- While Loop
- Repeat (Do-While) Loop