This is a website that takes context-free grammars that students have built using this Nearley Parser Playground and uses the nearley npm package to generate sentences from each grammar as well as Web Speech API for text-to-speech fun.
I built this as a gallery of student work for this assignment that I also wrote for symsys1!
See it in action at symsys1.herokuapp.com!
- On terminal,
npm i
npm start
You may also want to host repo on free online IDE such as replit or glitch instead.
- Add more files to
grammars
folder, then updateindex.html
with grammar name.
ty to Guillermo for the nearley parser playground, the creators of the nearley package, Linus for the blocks.css, and Patrick for the text to speech api tutorial.