https://github.com/assodepicche/parser

A grammar parser

https://github.com/assodepicche/parser

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (0.9%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

A grammar parser

Basic Info
  • Host: GitHub
  • Owner: AssoDePicche
  • Language: C
  • Default Branch: main
  • Homepage:
  • Size: 10.7 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created about 1 year ago · Last pushed about 1 year ago
Metadata Files
Readme

README.md

Parser

Reconhecedor de gramática escrito em C

Dependências

  • CMake
  • GCC

Como executar

Com o GCC e CMake instalados basta executar o arquivo build.sh na raiz do diretório. Após isso use o comando abaixo para testar em arquivos de gramática.

bash ./build/Parser gramatica.txt

Exemplo

Para um arquivo como abaixo:

txt S > aSa - S > bSb - S > c - S > $

A Saída é esta:

bash G = ({S}, {a,b,c}, P, S) P = {S -> aSa, S -> bSb, S -> c, S -> $} Correct

Para um arquivo como abaixo:

txt S > aSa - S > bSb - S > c - A > $

A saída é esta:

bash Error: Poorly formatted production rules Incorrect

Equipe

Samuel do Prado Rodrigues (GU3052788)

Owner

  • Name: Samuel do Prado Rodrigues
  • Login: AssoDePicche
  • Kind: user
  • Location: Santa Isabel, São Paulo, Brasil

Student of Control and Automation Engineering at IFSP and technician in computer science for the Internet by Etec.

GitHub Events

Total
  • Push event: 8
Last Year
  • Push event: 8