bootstrap.sh 335 B

12345678910111213141516
  1. #!/bin/sh
  2. # $Id$
  3. #
  4. # Script to rebuild LLgen's own parser with LLgen.
  5. set -e
  6. if ! (which LLgen > /dev/null); then
  7. echo "You can only bootstrap the LLgen parser if you've already got"
  8. echo "LLgen installed."
  9. fi
  10. (cd src && LLgen -vvv -x tokens.g LLgen.g)
  11. echo ""
  12. echo "You should now be able to rebuild LLgen with the new parser."