How bruju/rdfpls works
RDFPLS is a small RDF-based joke programming language. Its runtime reads an RDF program, finds its unique main function, and interprets instructions and expressions, including variables, operators, functions, branches, loops, printing, and JavaScript-backed functions. The implementation is concentrated in index.ts; the graph reflects those runtime responsibilities rather than build or test infrastructure.
Main entry points: index.ts Instruction interpreter
Components 13
Other components
- RDF program
- CLI runner
index.ts - RDF parser
index.ts - RDF dataset
index.ts - Main resolver
index.ts - Function executor
index.ts - Instruction interpreter
index.ts - Expression evaluator
index.ts - Variable memory
index.ts - Branch and loops
index.ts - Operators and comparisons
index.ts - Console output
index.ts - JavaScript runtime
Connections 17
- RDF program → CLI runner: supplies input
README.md - CLI runner → RDF parser: reads and parses
index.ts - CLI runner → RDF dataset: adds quads
index.ts - CLI runner → Main resolver: executes program
index.ts - Main resolver → RDF dataset: finds main
index.ts - Main resolver → Function executor: starts function
index.ts - Function executor → RDF dataset: reads function data
index.ts - Function executor → Instruction interpreter: runs instructions
index.ts - Instruction interpreter → Expression evaluator: evaluates expressions
index.ts - Expression evaluator → Instruction interpreter: dispatches calls
index.ts - Instruction interpreter → Variable memory: updates variables
index.ts - Expression evaluator → Variable memory: reads variables
index.ts - Instruction interpreter → Branch and loops: handles branches
index.ts - Branch and loops → Instruction interpreter: executes bodies
index.ts - Instruction interpreter → Operators and comparisons: applies operations
index.ts - Instruction interpreter → Console output: prints text
index.ts - Function executor → JavaScript runtime: evaluates code
index.ts