Crate phoron_asm

source ·
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

  • The Phoron AST.
  • The interface to phoron_core. This module constructs the ClassFile object needed by phoron_core in order to generate the actual class file.
  • A Phoron abstraction of the JVM’s Constant Pool (arguably the most important aspect of the JVM bytecode format).
  • A simple diagnostic module for Phoron.
  • Takes a SourceFile representing the assembly source code, and produces a stream of tokens for consumption by the parser.
  • The Phoron Parser takes in a lexer and produces a token on demand (syntax-driven). It also uses the Span information collected during tokenisation to provide goood error recovery and error reporting.
  • Abstract representation of a physical source file in the file system. The SourceFile is used by the lexer for tokenisation, as well as to provide Spans over the actual source code for error reporting during parsing and type-checking.