PDL: Import pdl-parser sources
The PDL parser re-implementation currently parses input PDL source files, runs linter checks on the parsed AST, and serializes the AST to JSON. Test: m pdl + run against test/*.pdl Change-Id: If86e0265582e1ee21f14c1341c9069d43b17f97a
Showing
- tools/pdl/Android.bp 17 additions, 0 deletionstools/pdl/Android.bp
- tools/pdl/src/ast.rs 301 additions, 0 deletionstools/pdl/src/ast.rs
- tools/pdl/src/lint.rs 1265 additions, 0 deletionstools/pdl/src/lint.rs
- tools/pdl/src/main.rs 51 additions, 0 deletionstools/pdl/src/main.rs
- tools/pdl/src/parser.rs 530 additions, 0 deletionstools/pdl/src/parser.rs
- tools/pdl/src/pdl.pest 123 additions, 0 deletionstools/pdl/src/pdl.pest
- tools/pdl/test/array-field.pdl 39 additions, 0 deletionstools/pdl/test/array-field.pdl
- tools/pdl/test/checksum-field.pdl 22 additions, 0 deletionstools/pdl/test/checksum-field.pdl
- tools/pdl/test/count-field.pdl 25 additions, 0 deletionstools/pdl/test/count-field.pdl
- tools/pdl/test/decl-scope.pdl 26 additions, 0 deletionstools/pdl/test/decl-scope.pdl
- tools/pdl/test/example.pdl 78 additions, 0 deletionstools/pdl/test/example.pdl
- tools/pdl/test/fixed-field.pdl 22 additions, 0 deletionstools/pdl/test/fixed-field.pdl
- tools/pdl/test/group-constraint.pdl 39 additions, 0 deletionstools/pdl/test/group-constraint.pdl
- tools/pdl/test/packet.pdl 52 additions, 0 deletionstools/pdl/test/packet.pdl
- tools/pdl/test/recurse.pdl 38 additions, 0 deletionstools/pdl/test/recurse.pdl
- tools/pdl/test/size-field.pdl 58 additions, 0 deletionstools/pdl/test/size-field.pdl
- tools/pdl/test/struct.pdl 52 additions, 0 deletionstools/pdl/test/struct.pdl
- tools/pdl/test/typedef-field.pdl 36 additions, 0 deletionstools/pdl/test/typedef-field.pdl
Loading
Please register or sign in to comment