micalevisk / LFA-2016-2

:mortar_board: :books: Linguagens Formais e Autômatos (ICC040) :house: :octocat: :white_check_mark:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Text2JGrammar

to download and change permission (bash):

wget "https://raw.githubusercontent.com/micalevisk/LFA-2016-2/master/Text2JGrammar.sh" &&
chmod +x "Text2JGrammar.sh"

Input Syntax:

  • As implicações (setas) são indicadas por >
  • As regras são separadas por ;
  • O pipe (barra vertical) é indicado por ,
  • O lambda é indicado por §
  • Caso algum símbolo seja igual a algum caractere especial, altere a keyword no arquivo.

To Use (on terminal)

./Text2JGrammar.sh "P > 0P,1P,1A; A > 0B; B > 1; B>0" mygrammar.jff

e.g.:

this input plain text: P > 0P,1P,1A; A > 0B; B > 1

means: http://image.prntscr.com/image/a261182c347a4c7daa7694029105d5af.png on JFLAP

Preview

asciicast


About

:mortar_board: :books: Linguagens Formais e Autômatos (ICC040) :house: :octocat: :white_check_mark:


Languages

Language:Shell 100.0%