-
Hello, I'm trying to parse a type (somewhat similar to C) where there are builtin types, tuple types, or array types. The complication is for the array type to be parsed Is there any way to do this? The best way I could think to do it would be to somehow consume the square bracketed part from the right, and parse the rest on the left (not including that) recursively, but I don't know how that could be done in lexy. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You want to treat an array as a postfix operator: https://lexy.foonathan.net/playground/?id=TdWqK7adK&mode=trace |
Beta Was this translation helpful? Give feedback.
You want to treat an array as a postfix operator: https://lexy.foonathan.net/playground/?id=TdWqK7adK&mode=trace