java-lang 0.1.0

用于rust的java语法解析器。根据Java 23 规范实现。
Documentation
  • Coverage
  • 62.61%
    144 out of 230 items documented4 out of 4 items with examples
  • Size
  • Source code size: 81.64 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 8.37 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • mzdk100/java-lang
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • mzdk100

java-lang

用于rust的java语法解析器。

根据Java 23 规范实现。 工作正在积极进行中,API还不稳定,欢迎大家参与贡献。

开始使用

cargo add java-lang

示例

examples文件夹中有相关示例。

cargo run --example hello

测试

cargo test --all-features

已经实现的功能

  • 从源代码生成Tokens;
  • 解析包声明(package xxx;);
  • 解析导入声明(import xxx;);
  • 解析文档注释(/** ... */);