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

scanner: yerror.l hush-3.1/grammar/filters


[.] - [up] [top] - index README text make grammar configure slides talks
  
  

yerror


  
  opkey ("OP"|"LOP"|"ROP"|"PRE"|"POS")
  op ([ \t]*{opkey}([0-9]*)" or")+
  specifier   ([ \t]*"SPEC"([0-9]*)" or")+
  declarative ([ \t]*"DECL"([0-9]*)" or")+
  qualifier   ([ \t]*"QUAL"([0-9]*)" or")+
  modality    ([ \t]*"MODE"([0-9]*)" or")+
  meta        ([ \t]*"META"([0-9]*)" or")+
  stop        ([ \t]*"STOP"([0-9]*)" or")+
  command     ([ \t]*"COMM"([0-9]*)" or")+
  atom        ([ \t]*"ATOM"([0-9]*)" or")+
  type        ([ \t]*"TYPE"([0-9]*)" or")+
  end         ([ \t]*"END"([0-9]*)" or")+
  number ("INT")
  string [A-Z]*"STRING"
  

slide: yerror


rules


  "error or"    { }
  {op}          { printf(" <operator> or"); }
  {declarative} { printf(" <declarative> or"); }
  {specifier} { printf(" <specifier> or"); }
  {qualifier} { printf(" <qualifier> or"); }
  {modality}  { printf(" <modality> or"); }
  {meta}      { printf(" <meta> or"); }
  {stop}      { printf(" <stop> or"); }
  {command}   { printf(" <command> or"); }
  {atom}      { printf(" <atom> or"); }
  {type}      { printf(" <type> or"); }
  {end}       { printf(" <end> or"); }
  {number}    { printf("<number>"); }
  {string}    { printf("<string>"); }
  

slide: rules

  

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