peggyjs / peggy

Peggy: Parser generator for JavaScript
https://peggyjs.org/
MIT License
914 stars 65 forks source link

doc example doesn't correspond to code example #405

Closed yukulele closed 1 year ago

yukulele commented 1 year ago

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

https://github.com/peggyjs/peggy/blob/dfca04cf000d9be3d8f4a99314ccbedef744db33/docs/documentation.html#L1072 https://github.com/peggyjs/peggy/blob/dfca04cf000d9be3d8f4a99314ccbedef744db33/docs/js/examples.peggy#L35

hildjj commented 1 year ago

Agree there's something going on there.

yukulele commented 1 year ago

Thanks!

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

The input have the wrong value:

https://github.com/peggyjs/peggy/blob/ef06447afae3d1ff37a043a95045b31b14c66465/docs/documentation.html#L1101 should be:

       <input type="text" value="aaa   bb" class="exampleInput" name="pluck_1">
hildjj commented 1 year ago

drat, thought I caught that.