Parsing a particular dialogue format #431
Unanswered
IngwiePhoenix
asked this question in
Q&A
Replies: 1 comment 1 reply
-
It's a bit hard to tell how this is structured, but here are a couple of observations:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello there!
I am working together with some friends to AI-translate the text contents of Persona 4 Golden's dialogues.
The format is rather easy, but I want to use an AST for several reasons (keeping the extra metadata, positions, etc.).
In fact, this is technically all that it should take:
However, I am considerably new to writing lexers and parsers... So, here is a snippet:
This should deserialize into:
How would I realize that? Do I need to write a custom Lexer as well or would the default one work?
Thank you very much and kind regards,
Ingwie
Beta Was this translation helpful? Give feedback.
All reactions