How x7ea/ruc works
Ruc BASIC is a statically typed language compiler. Its visible workflow reads source from stdin, parses it, compiles it to assembly text, and writes that text to stdout; the repository does not show an assembler or execution step. The parser also loads named .rc libraries from lib/. The README is minimal, so the library files are shown as available language libraries rather than assigned undocumented capabilities. Type inference is a distinct compiler layer, but the excerpts do not establish its call path from compilation.
Main entry points: parse.rs Source Parser · main.rs Compiler Entry · emit.rs Assembly Emitter · lexer.rs Token Lexer
Components 11
Compiler Driver
- Compiler Entry
src/main.rs
Source Frontend
- Source Parser
src/parse.rs - Token Lexer
src/lexer.rs
Type Semantics
- Type Inference
src/typ.rs
Assembly Backend
- Assembly Emitter
src/emit.rs
Language Libraries
- Standard Library
lib/std.rc - GTK Library
lib/gtk.rc - Web Library
lib/web.rc
Other components
- Source Provider
- Standard Input
- Standard Output
Connections 10
- Source Provider → Standard Input: provides source
- Standard Input → Compiler Entry: reads source
src/main.rs - Compiler Entry → Source Parser: parses source
src/main.rs - Source Parser → Token Lexer: tokenizes input
src/parse.rs - Source Parser → Standard Library: loads named library
src/parse.rs - Source Parser → GTK Library: loads named library
src/parse.rs - Source Parser → Web Library: loads named library
src/parse.rs - Compiler Entry → Assembly Emitter: compiles program
src/main.rs - Assembly Emitter → Type Inference: uses type analysis
- Compiler Entry → Standard Output: writes assembly
src/main.rs