Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 8th, 2012  |  syntax: None  |  size: 0.37 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. what's the matter with this grammar
  2. s   : cmd
  3.     | cmd SOMETHING
  4.  
  5. cmd :WORD
  6.        
  7. Starting parse
  8.  
  9. Entering state 0
  10.  
  11. Reading a token: qwerty
  12.  
  13. Next token is token WORD
  14.  
  15. Shifting token WORD
  16.  
  17. Entering state 1
  18.  
  19. Reducing stack by rule 3 (line 20):
  20.  
  21.    $1 = token WORD ()
  22.  
  23. -> $$ = nterm cmd ()
  24.  
  25. Stack now 0
  26.  
  27. Entering state 3
  28.  
  29. Reading a token:
  30.  
  31. (asks for input a second time)