Open robrix opened 10 years ago
Should be able to pipeline lexing and parsing:
[parser parse:[lexer parse:input]]
From the side, that looks like:
[[input red_reduce:lexer usingBlock:^(id into, id each) { return produce([into derivative:each]); }] red_reduce:parser usingBlock:^(id into, id each) { return produce([into derivative:each]); }];
where produce() is some hand-waving which does the incremental magic.
produce()
Should be able to pipeline lexing and parsing:
From the side, that looks like:
where
produce()
is some hand-waving which does the incremental magic.