Skip to content

rayniel95/Primer-Proyecto-de-Compilacion-GrammarAnalyzer-Rayniel-Ramos-Gonzalez-c412

Repository files navigation

About

This project is about a grammar analyzer. The idea is to show properties of input grammars. We analyze first and follows of the grammar, the productions, terminals and no terminals, analyzed if the grammar is regular or not, transform to Chomsky Normal Form, showed parsing table, delete inmediate left recursion, showed reduce-reduce or shift-reduce conflicts, showed derivation tree of words, and others. Many code from solved exercises in Compiler Theory course was used. The code for create LALR tables was created used PLY framework.

More

See in this repository:

  • orden.pdf

Requirements

  • Docker

How to execute

  1. Build image sudo docker build ./ -t rayniel95/grammaranalyzer:v1.0
  2. Execute container sudo docker run --network "host" rayniel95/grammaranalyzer:v1.0

How to use

  1. Conect to localhost:5000
  2. Introduce /usr/bin/dot as path at:

step 1

  1. Play with test cases in code/test_cases. You can find differents grammars and words.

step 2

step 3

Note: For update automaton visualization press Ctrl + R.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published