Skip to main content

Module program

Module program 

Source
Expand description

§Main Program Module

This module is the main entry point of the JVM assembler, responsible for coordinating various components (such as the lexer, parser, and writer) to complete the conversion from JASM assembly code to JVM bytecode.

§Main Features

  • Command Line Interface (CLI): Handles command-line arguments and configures program behavior.
  • File I/O: Reads JASM assembly files and writes generated .class files.
  • Flow Control: Orchestrates the entire flow of lexical analysis, parsing, and writing.
  • Error Reporting: Collects and reports errors and warnings that occur throughout the compilation process.

§Structure

  • run_app: The program’s main function, containing command-line parsing and main logic.
  • config: Program configuration, such as input/output file paths, compilation options, etc.

§Usage Example

Re-exports§

pub use JvmConstantPoolEntry as ConstantPoolEntry;

Modules§

opcodes
操作码常量模块

Structs§

JvmAccessFlags
JVM 访问标志
JvmClassCompat
向后兼容的 JvmClass 结构
JvmConstantPool
JVM 常量池(高层表示)
JvmExceptionHandler
JVM 异常处理表项(高层表示)
JvmField
JVM 字段信息(高层表示)
JvmFieldCompat
向后兼容的 JvmField 结构
JvmInnerClass
JVM 内部类信息
JvmInstructionCompat
向后兼容的 JvmInstruction 结构
JvmLocalVariable
JVM 局部变量信息
JvmMethod
JVM 方法信息(高层表示)
JvmMethodCompat
向后兼容的 JvmMethod 结构
JvmProgram
JVM 程序的高层次表示
JvmVersion
JVM 版本信息
RawExceptionHandler
JVM 异常处理表项(二进制表示)

Enums§

JvmAttribute
JVM 属性
JvmConstantPoolEntry
JVM 常量池条目(高层表示)
JvmInstruction
JVM 指令(高层表示)
JvmStackMapFrame
JVM StackMapTable 帧
JvmVerificationType
JVM 验证类型