How namanrajput-git/reilang works
Project type and purpose
• ReiLang is a small, Python-inspired interpreted language written in Java. It follows the classical compiler/interpreter pipeline (lexing → parsing → AST construction → interpretation).
• Key use case: embed a simple scripting language into Java applications or experiment with language design.
File structure
• Top level:
• Main.java – entry point / CLI launcher
• Expr.java, Stmt.java – AST node definitions
• Token.java, TokenType.java – lexical token model
• ReiLexer.java – tokenizer
• ReiParser.java – parser producing List<Stmt>
• ReiInterpreter.java – AST walker / evaluator
• README.md, build metadata (.iml, .idea)
• No GUI or web frontend; this is a pure‐Java console application.
• The “out” directory is just compiled classes; ignore for architecture.
README for additional insights
• Describes the four stages: calling ReiLexer(source) → tokenize() → ReiParser(tokens) → parse() → List<Stmt> → ReiInterpreter.execute(stmt).
• Confirms Java 11+ requirement and planned future work (loops, functions).