How ps22c/fx works
Fx is an embeddable scripting language and bytecode virtual machine. A user supplies a script path to the executable; the runtime loads the script, compiles it to bytecode, and runs it in the VM. The monolithic implementation also contains value/object and garbage-collection machinery and opens standard libraries. The README documents language features and library capabilities, but the excerpts do not show most internal call relationships; those links are omitted rather than inferred.
Main entry points: fx.c Script entry point
Components 13
Source Front End
- File loader
fx.c - Lexer and parser
fx.c - Type checks
fx.c - Bytecode compiler
fx.c
Execution Runtime
- Script entry point
fx.c - Bytecode VM
fx.c
Values and State
- Values and objects
fx.c - Garbage collection
fx.c
Standard Libraries
- Base functions
fx.c - Object library
fx.c - I/O and OS
fx.c - String and math
fx.c
Other components
- Script author
Connections 8
- Script author → Script entry point: runs script
fx.c - Script entry point → File loader: loads file
fx.c - File loader → Bytecode compiler: compiles source
README.md - Bytecode compiler → Bytecode VM: emits bytecode
README.md - Script entry point → Base functions: opens libraries
fx.c - Script entry point → Object library: opens libraries
README.md - Script entry point → I/O and OS: opens libraries
README.md - Script entry point → String and math: opens libraries
README.md