A basic syntax validation tool for Perl programming language.
Validation of basic programming constructs -
- Variable assignment (integer, float, string)
- Looping constructs (while, for)
- conditional statements (if, if-else)
Language: Python
Libraries: PLY (Python Lex-Yacc)
- validation_lex.py : defines all tokens
- validation_yacc.py : defines grammars for the aforementioned programming constructs
- Allows users to enter syntax
- Throws error if entered syntax is invalid