Open mamidon opened 4 years ago
For #3, re-read http://craftinginterpreters.com/compiling-expressions.html#a-pratt-parser !
type ParseFunction = Box<dyn Fn(&mut Parser) -> CompletedMarker>;
enum PrecedenceRuleKind {
Prefix(ParseFunction),
Infix(ParseFunction)
}
struct PrecedenceRule {
precedence: usize,
token_kind: TokenKind,
parse_function: PrecedenceRuleKind
}
Before I advance on to making a super simple hello world app with web render we have some house cleaning to do first.