Expand description
Phoron is a Jasmin compatible assembler for the JVM.
phoron_asm provides the actual assembler for the assembly language whereas phoron_core
handles the low-level class file serialisation and deserialisation.
Modules§
- ast
- The Phoron AST.
- codegen
- The interface to
phoron_core. This module constructs theClassFileobject needed byphoron_corein order to generate the actualclassfile. - cp_
analyzer - A Phoron abstraction of the JVM’s Constant Pool (arguably the most important aspect of the JVM bytecode format).
- diagnostics
- A simple diagnostic module for Phoron.
- lexer
- Takes a
SourceFilerepresenting the assembly source code, and produces a stream of tokens for consumption by the parser. - parser
- The Phoron Parser takes in a lexer and produces a token on demand (syntax-driven).
It also uses the
Spaninformation collected during tokenisation to provide goood error recovery and error reporting. - sourcefile
- Abstract representation of a physical source file in the file system. The
SourceFileis used by the lexer for tokenisation, as well as to provideSpans over the actual source code for error reporting during parsing and type-checking.