yacc 280 B

12345678910111213141516
  1. #!/bin/rc
  2. flagfmt='d,l,t,v,b stem'
  3. args='grammar'
  4. if(! ifs=() eval `{aux/getflags $*} || ! ~ $#* 1){
  5. aux/usage
  6. exit usage
  7. }
  8. y=-S
  9. if (~ $#flagb 1) y=($y -s $flagb)
  10. if (~ $#flagd 1) y=($y -d)
  11. if (~ $#flagt 1) y=($y -D2)
  12. if (~ $#flagv 1) y=($y -v)
  13. exec /$cputype/bin/yacc $y $*