Mingun

Results 397 comments of Mingun

As I can understand, I rewrite you sophisticated grammar in more elegant and PEG way and also add basic AST representation of the result. For now it work as expected...

I did not rewrite regex, but was repelled from the requirements read by you in a question. In principle, the grammar is their literal transposition to the pegjs language. At...

Another way to bypass bug - make error by self with the `error` function: ```pegjs { // Just for example - in normal case `options.reserved` must be // filled by...

Common, it was just born, give time

The full list of changes is https://github.com/peggyjs/peggy/compare/Renaissance...main. The count of functional changes in grammar not so big and listed in https://github.com/peggyjs/peggy/blob/main/CHANGELOG.md, namely: - #73: Added global initializer blocks, which contain...

If you mean this artifact then it seems that `$` symbols confuse a highlighter: ![$ artifact](https://user-images.githubusercontent.com/450131/170748525-20af6401-ce06-4831-b408-d380bb451dc3.png) Before that point highlighting seems to work right

Consider use lookahead, something like: ``` h = (!t1 d '.')* t1; t1 = t '.'?; d= [dt]; t = [t]; ```

Why do the `result` function needed? In the example shown, simply dropping the action block will return the expected result, and if it needs transformation, it is better to give...

@YemSalat, `text()` function is equivalent of `$` operator, but it was introduced earlier. However, unlike the proposed `result()` function, it does not have a replacement when you want both structured...

> don't make a change to the way a very common facet of peg grammar is parsed which will alter other peoples' concrete ASTs in a serious way This is...