#!/bin/bash


echo letters a b c > labs.sym

lexmakelab -L labs

lexcompre -l labs.lab -s "(a|b)*c" > test.fsm

fsmdraw -i labs.lab test.fsm | dot -Tgif > test.gif

display test.gif
