Skip to content

Instantly share code, notes, and snippets.

@gartnera
Created January 30, 2016 20:32
Show Gist options
  • Save gartnera/b361a7f23038f620e52d to your computer and use it in GitHub Desktop.
Save gartnera/b361a7f23038f620e52d to your computer and use it in GitHub Desktop.
lex tools
#!/bin/bash
lex "$1"
if [[ -n "$2" ]]; then
gcc lex.yy.c -ll -o "$2"
else
gcc lex.yy.c -ll
fi
rm lex.yy.c
#!/bin/bash
lexcc.sh "$@"
if [[ -n "$2" ]]; then
./$2
else
./a.out
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment