-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
So I'm writing an Ada parser (I've tried a few different tools) and I came across this (thank you, This Week in Rust) and I found it fascinating (talk about an inventive way of writing a parser). The Ada grammar uses Unicode GCs for matching identifiers. (It also has custom separators, some of which aren't in parsel::ast::token, so I'm unsure how to match those).
I have a couple options for doing this:
- I have a custom lexer already. But I'm unsure how I'd incorporate this into parsel. I could just use that.
- I could use embedded Unicode tables. (This would be rather annoying, however, since I'd have to expand it, which could get costly, very quickly.)
Are there any other options or suggestions that I could try? Or, if not, how could I accomplish the incorporation of my Lexer? (It defines a custom Token struct, but I could probably transform it into something that Parsel would like.)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels