Skip to content

Repository files navigation

Context Free Grammar Gallery

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!

image

To use

  1. On terminal,
npm i
npm start

You may also want to host repo on free online IDE such as replit or glitch instead.

  1. Add more files to grammars folder, then update index.html with grammar name.

Credits

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.

About

A lil website that showcases context-free grammars by generating sentences from each grammar.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages