Skip to content

Instantly share code, notes, and snippets.

@baccigalupi
Created June 23, 2011 15:55
Show Gist options
  • Save baccigalupi/1042838 to your computer and use it in GitHub Desktop.
Save baccigalupi/1042838 to your computer and use it in GitHub Desktop.
Running Flex
flex -o 0_repeater.c 0_repeater.lex # makes an output file tokens.c from tokens.lex
# running the generated C source to make a binary
gcc 0_repeater.c -lfl -o 0_repeater
# or alternately with clang
clang 0_repeater.c -lfl -o 0_repeater
./repeater # runs the binary, will take input from the command line and run it against the code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment