A simple Ruby lexer and parser implemented using PLY (Python Lex-Yacc) tools.
This project provides a basic lexer and parser for the Ruby programming language using PLY tools. PLY is a Python implementation of lex and yacc parsing tools, and it allows us to generate lexical analyzers and parsers for various programming languages.
- Lexer for tokenizing Ruby source code.
- Parser for parsing Ruby syntax.
-
Clone the repository:
git clone https://github.com/your-username/ruby-lexer-parser-ply.git
-
Navigate to the project directory:
cd ruby-lexer-parser-ply- Install the required dependencies:
pip install plyCheck out the examples directory for sample Ruby code and how to use the lexer and parser.