reverofevil

Results 69 comments of reverofevil

Yes, a win. As if you played a game for years and won a grand prize.

This ticket makes a lot of sense. Which else library would you expect to converts ASTs to source code given the grammar in PEG.js syntax? Yes, currently there is no...

I don't think StringTemplate reads grammars in PEG.js syntax.

@Coffee2CodeNL pegjs v1 is not out yet.

PEG.js doesn't produce AST. Actions do. Generating text back from AST produced by arbitrary code is impossible. Even if a set of actions is limited, there is a problem with...

PEG grammars are usually written without any lexer. In a case when lexeme couldn't be parsed, it's a global failure. PEG grammars would nevertheless try several other rules before failing...

We can interpret parameter `s` both as `s` variable and `parse$s` function internally. Thus it will work in this case ``` atom(p, s) = p / &{ error(s); } ```...

Several years ago I tried to add it to PEG.js, but it turned out way harder than I thought and I abandoned idea. Probably I should try it once more...

@futagoza Now I don't understand. Could you provide an example of proposed syntax?