Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dpbm/afd

A software to generate and test deterministic finite automaton
https://github.com/dpbm/afd

automaton automatos c exercise faculdade homework university

Last synced: 11 days ago
JSON representation

A software to generate and test deterministic finite automaton

Awesome Lists containing this project

README

        

# AFD exercise
## A software written in C to generate and test `Deterministic finite automaton`.

This project is a homework for the `formal languages and automatons` subject, the idea here is to transcribe the general idea of
automatons into software.
There weren't any constraints for it, just use a lanaguage and implement a software that gets an automaton as input, and test sequences of
symbols, saying if does it'is accepted or not.

For this project, we used the c programming language. For the automatons we used some `strcuts` and `pointers` to map them. we've chosen
that approach because it's easier to test the sequences later.

## Running

To execute this project, first compile all the `c` source files. For that you'll need
a compiler, like `GCC` or `CLANG`. Here's an example:

```bash

gcc automaton.c afd.c utils.c

# or

gcc *.c
```

Then run the output binary, like:

```bash
./a.out

#or

./a.exe
```