Parsing
- Input paths
- If there is a patch for that path the whole file is read and the patch is applied, else we open a reader.
- The reader gets converted into an int iterator. Every int is a character.
- Tokenizer: Returns an iterator of strings - the tokens.
- Take the token iterator and wrap it in a buffer structure. Right now we have a forward buffer of 2.
- Parser: take that buffered token stream and parse it. Outputs an IPdxScript object.
Tokenizer
Let’s just not talk about it :)
Parser
Recursive Descent type parser, but mostly in one method with 2x look-ahead.