home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / OS2-YACC.ZIP / SIMPL.I < prev    next >
Text File  |  1989-10-02  |  1KB  |  114 lines

  1.  
  2. state 0
  3.     $accept : _exp $end 
  4.  
  5.     ID  shift 5
  6.     (  shift 4
  7.     .  error
  8.  
  9.     exp  goto 1
  10.     term  goto 2
  11.     fact  goto 3
  12.  
  13. state 1
  14.     $accept :  exp_$end 
  15.     exp :  exp_+ term 
  16.  
  17.     $end  accept
  18.     +  shift 6
  19.     .  error
  20.  
  21.  
  22. state 2
  23.     exp :  term_    (2)
  24.     term :  term_* fact 
  25.  
  26.     *  shift 7
  27.     .  reduce 2
  28.  
  29.  
  30. state 3
  31.     term :  fact_    (4)
  32.  
  33.     .  reduce 4
  34.  
  35.  
  36. state 4
  37.     fact :  (_exp ) 
  38.  
  39.     ID  shift 5
  40.     (  shift 4
  41.     .  error
  42.  
  43.     exp  goto 8
  44.     term  goto 2
  45.     fact  goto 3
  46.  
  47. state 5
  48.     fact :  ID_    (6)
  49.  
  50.     .  reduce 6
  51.  
  52.  
  53. state 6
  54.     exp :  exp +_term 
  55.  
  56.     ID  shift 5
  57.     (  shift 4
  58.     .  error
  59.  
  60.     term  goto 9
  61.     fact  goto 3
  62.  
  63. state 7
  64.     term :  term *_fact 
  65.  
  66.     ID  shift 5
  67.     (  shift 4
  68.     .  error
  69.  
  70.     fact  goto 10
  71.  
  72. state 8
  73.     exp :  exp_+ term 
  74.     fact :  ( exp_) 
  75.  
  76.     +  shift 6
  77.     )  shift 11
  78.     .  error
  79.  
  80.  
  81. state 9
  82.     exp :  exp + term_    (1)
  83.     term :  term_* fact 
  84.  
  85.     *  shift 7
  86.     .  reduce 1
  87.  
  88.  
  89. state 10
  90.     term :  term * fact_    (3)
  91.  
  92.     .  reduce 3
  93.  
  94.  
  95. state 11
  96.     fact :  ( exp )_    (5)
  97.  
  98.     .  reduce 5
  99.  
  100.  
  101. 8/127 terminals, 3/300 nonterminals
  102. 7/600 grammar rules, 12/750 states
  103. 0 shift/reduce, 0 reduce/reduce conflicts reported
  104. 7/350 working sets used
  105. memory: states,etc. 100/12000, parser 8/12000
  106. 8/600 distinct lookahead sets
  107. 4 extra closures
  108. 13 shift entries, 1 exceptions
  109. 6 goto entries
  110. 3 entries saved by goto default
  111. Optimizer space used: input 37/12000, output 218/12000
  112. 218 table entries, 206 zero
  113. maximum spread: 257, maximum offset: 43
  114.