home *** CD-ROM | disk | FTP | other *** search
/ ftp.ee.pdx.edu / 2014.02.ftp.ee.pdx.edu.tar / ftp.ee.pdx.edu / pub / users / Harry / compilers / yapp / go next >
Text File  |  2003-05-23  |  644b  |  30 lines

  1. #!/bin/sh
  2. #
  3. # Run the YAPP program.  This script expects 2 files.  For example:
  4. #
  5. #    go grammar-file source-file
  6. #
  7. # The grammar-file contains the grammar and the source-file contains
  8. # the tokens to be parsed.  They are assumed to be in a "tst" directory.
  9. #
  10. echo "rm -f tempInput2"
  11. rm -f tempInput2
  12. #
  13. echo "rm -f tempInput1"
  14. rm -f tempInput1
  15. #
  16. echo "cat tst/$1 tst/$2 > tempInput1"
  17. cat tst/$1 tst/$2 > tempInput1
  18. #
  19. echo "pre < tempInput1 > tempInput2"
  20. pre < tempInput1 > tempInput2
  21. #
  22. echo "rm -f tempInput1"
  23. rm -f tempInput1
  24. #
  25. echo "yapp < tempInput2 | post | more"
  26. yapp < tempInput2 | post | more
  27. #
  28. echo "rm -f tempInput2"
  29. rm -f tempInput2
  30.