Created
June 23, 2011 15:55
-
-
Save baccigalupi/1042838 to your computer and use it in GitHub Desktop.
Running Flex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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