peggyjs / peggy

Peggy: Parser generator for JavaScript

Home Page:https://peggyjs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

doc example doesn't correspond to code example

yukulele opened this issue · comments

this error is very confusing when trying to read the documentation:

<div><em>Example:</em> <code>pluck_1 = @$"a"+ " "+ @$"b"+</code></div>

pluck_1 = match:(@$"a"+ " "+) rest:rest { return {match, rest}; }

Agree there's something going on there.

Thanks!

And sorry but I realize that there is still a small error,

The input have the wrong value:

<input type="text" value="aaa " class="exampleInput" name="pluck_1">

should be:

       <input type="text" value="aaa   bb" class="exampleInput" name="pluck_1">

drat, thought I caught that.