The tokens are already handled by the lexer. This revision exposes them
through the parser interface.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Please add tests, which should just be extending the following:
https://github.com/llvm/llvm-project/blob/d93287cac89fd50a105ac4a59c079884b8e53e49/mlir/test/mlir-tblgen/op-format-spec.td#L312
https://github.com/llvm/llvm-project/blob/d93287cac89fd50a105ac4a59c079884b8e53e49/mlir/test/lib/Dialect/Test/TestOps.td#L1377
https://github.com/llvm/llvm-project/blob/6022a8b7e8d1796284541bbf6bad40449c785fef/mlir/test/mlir-tblgen/op-format.mlir#L9
Can you update https://mlir.llvm.org/docs/OpDefinitions/#literals with the current set of punctuation? (It might be missing a few others as well)
Add the missing tokens to the documentation and add question mark parsing functions
When completing the token list in the docs I noticed there were missing functions and associated tests for question mark parsing. I added them to this patch so as to bundle everything together.