How rdstudios9145/foxlang works
Main Components
a) Frontend Pipeline:
• Lexical Analysis (Tokenizer)
• Syntax Analysis (Parser)
• Abstract Syntax Tree (AST)
b) Backend Pipeline:
• LLVM Integration (implied by README mention)
Component Organization
Source Code -> Lexer -> Parser -> AST -> LLVM Backend -> Machine Code
Detailed Component Breakdown
a) Lexer Component (src/lexer/):
• Connection to Tokens definition
• TokenStreamer as an intermediate component
b) Parser Component (src/ast/):
• Parser to AST Nodes
• AST generation flow
c) LLVM Integration:
• Interface between AST and LLVM IR
Important Details
• File extension ".fox" as input
• Emoji support (🦊) in the lexer component
• Premake build system integration
• A note about LLVM dependency
Relationships to Emphasize
• Token stream flow from Lexer to Parser
• AST construction in the Parser
• Data transformation between stages
Implementation Details
• tokenizer.hpp/cpp and tokens.hpp
• parser.hpp/cpp and nodes.hpp
• Main program flow starting from main.cpp