jennylihan / symsys-cfg

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

Home Page:https://symsys1.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

https://symsys1.herokuapp.com/

License:MIT License


Languages

Language:Python 41.2%Language:JavaScript 41.1%Language:HTML 11.0%Language:CSS 6.6%