项目作者: gpcarlos

项目描述 :
Practice of the subject Automata Theory and Formal Language. University of Cádiz.
高级语言: Yacc
项目地址: git://github.com/gpcarlos/Electrical-Circuits-Language.git
创建时间: 2018-01-22T09:12:49Z
项目社区:https://github.com/gpcarlos/Electrical-Circuits-Language

开源协议:

下载


Electrical-Circuits-Language

Practice of the subject Automata Theory and Formal Language. University of Cádiz.

Prerequisites

  • Flex
  • Bison
  • GCC / G++
  • LaTeX builder

Compilation

For an easy compilation, you just need the provided Makefile, so:

  1. make all

If you want to compile every file step by step:

  1. make flex
  2. make bison
  3. make analyzer

But, if you prefer the “hard’’ way:

  1. flex lexicon.l
  2. bison -d syntactic.y
  3. g++ lex.yy.c syntactic.tab.c -o analyzer -lfl -lm

Execution

Finally, if you want to execute the analyzer, just type:

  1. make exe FILE="CircuitName.circuit"

The other option is:

  1. cat CircuitName.circuit | ./analyzer

Authors

  • Juan Francisco Cabrera Sánchez - Github profile - JF95
  • Carlos Gallardo Polanco - Github profile - gpcarlos