monte-language / monte

A dynamic language inspired by Python and E.
Other
78 stars 11 forks source link

railroad diagrams for syntax documentation #48

Closed dckc closed 9 years ago

dckc commented 9 years ago

I'd like to give it a try.

I found this the other day: https://github.com/tabatkins/railroad-diagrams

dckc commented 9 years ago

got started: https://jsfiddle.net/98f1jcgd/

dckc commented 9 years ago

made more progress; source is in https://gist.github.com/dckc/63c85bc0554e1c7acd31

dckc commented 9 years ago

I got maybe 60 or 70% done.

And I attached the HTML: https://gist.github.com/dckc/63c85bc0554e1c7acd31

dckc commented 9 years ago

comprehension is wrong.

> [for x in ([1,2,3]) x * x]
dckc commented 9 years ago

The syntax diagrams by and large integrated: http://monte.readthedocs.org/en/latest/genindex.html

There are doubtless bugs in them, but the can be addressed like any other doc bug.