PTX parser rewrite (#267)
Some checks failed
Rust / Build and publish (Linux) (push) Has been cancelled
Rust / Build and publish (Windows) (push) Has been cancelled

Replaces traditional LALRPOP-based parser with winnow-based parser to handle out-of-order instruction modifer. Generate instruction type and instruction visitor from a macro instead of writing by hand. Add separate compilation path using the new parser that only works in tests for now
This commit is contained in:
Andrzej Janik 2024-09-04 15:47:42 +02:00 committed by GitHub
commit 193eb29be8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
34 changed files with 14776 additions and 55 deletions

View file

@ -0,0 +1,17 @@
[package]
name = "ptx_parser_macros"
version = "0.0.0"
authors = ["Andrzej Janik <vosen@vosen.pl>"]
edition = "2021"
[lib]
proc-macro = true
[dependencies]
ptx_parser_macros_impl = { path = "../ptx_parser_macros_impl" }
convert_case = "0.6.0"
rustc-hash = "2.0.0"
syn = "2.0.67"
quote = "1.0"
proc-macro2 = "1.0.86"
either = "1.13.0"

1023
ptx_parser_macros/src/lib.rs Normal file

File diff suppressed because it is too large Load diff