The DejaVU Framework -- hush 3.0
[.] Papers Tutorials Examples Manuals Interfaces Sources Packages Resources ?

source: main.c hush-3.0b4/api/grammar/examples/yaccs


[.] - [up] [top] - index C++ text make include source grammar scripts
  include <alex.h>
  include <ayacc.h>
  include <blex.h>
  include <byacc.h>
  
  int main() {
  
  alex k;
  ayacc x(&k);
  
  cout << "BEGIN [a]\n";
  
  x();
  
  cout << "END\n";
  
  alex l(istrstream("a b X Y c d Z e"));
  byacc y(&l);
  
  cout << "BEGIN [b]\n";
  
  y();
  
  cout << "END\n";
  
  blex m(istrstream("a b X Y c d Z e"));
  byacc z(&m);
  
  cout << "BEGIN [c]\n";
  
  z();
  
  cout << "END\n";
  
  return 0;
  }
  

[.] Papers Tutorials Examples Manuals Interfaces Sources Packages Resources ?
Hush Online Technology
hush@cs.vu.nl
09/09/98