douchuan / jvm

JVM in Rust, written as a learning project.
MIT License
519 stars 31 forks source link

Rewrite class file parser to nom #3

Closed CertainLach closed 4 years ago

CertainLach commented 4 years ago

nom is a parser combinator library with a focus on safe parsing, streaming patterns, and as much as possible zero copy.

A lot of work still needs to be done, this code currently won't compile After rewriting we can consider extracting parser to another repo

douchuan commented 4 years ago

excellent, just do it

CertainLach commented 4 years ago

Everything is done, class parser needs tests though

CertainLach commented 4 years ago

I think @JarvisCraft can help us with tests soon

douchuan commented 4 years ago

I think @JarvisCraft can help us with tests soon

ok, there is no a good class file parser in crates.io, Let's do our best to finish it.

douchuan commented 4 years ago

There are 2 small bugs, fixed.

  1. update index error when parsing constant pool

  2. missing full_frame