Skip to content

Instantly share code, notes, and snippets.

@andreabergia
Created November 24, 2014 21:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreabergia/d84bdcf56eac9c8cafee to your computer and use it in GitHub Desktop.
Save andreabergia/d84bdcf56eac9c8cafee to your computer and use it in GitHub Desktop.
digraph lexer {
rankdir=LR;
size="8,5";
start [shape = doublecircle];
number [shape = circle];
operator [shape = circle];
end [shape = doublecircle];
start -> number [label=digit];
number -> number [label=digit];
number -> start [label="!digit"];
start -> operator [label=otherwise];
operator -> start [];
start -> end [label=eof];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment