How mista7/joe_script works
JoeScript is a source-to-object compiler. Its principal workflow is a user supplying a .joe file, followed by tokenization, parsing into an AST, semantic validation, and LLVM IR/object generation. The sampled entry point explicitly runs semantic analysis and reports compilation failure; it also shows object-file output. The repository includes a separate frontend, but its sampled index gives no runtime wiring to the compiler, so it is represented as a distinct subsystem without inferred connections. Some entry-point stages are not visible in the excerpt; their links are omitted.
Main entry points: main.cc Compiler Driver · semantics.cc Semantic Checks · codegen.cc LLVM Codegen · lexer.cc Tokenizer
Components 12
Web Frontend
- Browser App
src/frontend/app.js - Web Server
src/frontend/server.mjs
Compiler Front End
- Compiler Driver
src/main.cc - Tokenizer
src/lexer.cc - Parser and AST
src/parser.cc
Semantic Analysis
- Semantic Checks
src/semantics.cc - Scoped Symbols
src/symbol-table.cc
Code Generation
- LLVM Codegen
src/codegen.cc - LLVM IR Module
src/codegen.h
Other components
- Compiler User
- JoeScript Source
- Object File
Connections 8
- Compiler User → JoeScript Source: provides
- Compiler Driver → Semantic Checks: scans AST
src/main.cc - Semantic Checks → Scoped Symbols: tracks names
src/semantics.cc - Compiler Driver → Tokenizer: invokes
- Compiler Driver → Parser and AST: invokes
- Compiler Driver → LLVM Codegen: generates IR
- LLVM Codegen → LLVM IR Module: builds module
src/codegen.cc - Compiler Driver → Object File: writes output
src/main.cc