Advertisement
Guest User

Untitled

a guest
Jul 24th, 2010
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.64 KB | None | 0 0
  1. diff --git a/src/cheats/hll-grammar.pir b/src/cheats/hll-grammar.pir
  2. index c616b03..759ee5d 100644
  3. --- a/src/cheats/hll-grammar.pir
  4. +++ b/src/cheats/hll-grammar.pir
  5. @@ -438,8 +438,16 @@ An operator precedence parser.
  6.  
  7.      .local pmc here, from, pos
  8.      (here, pos) = self.'!cursor_start'()
  9. +    .local pmc miscbad
  10.  
  11.    term_loop:
  12. +    miscbad = here.'infixish'() # OHA
  13. +    miscbad = miscbad.'MATCH'()
  14. +    unless miscbad goto term_no_infix
  15. +    if miscbad != ',' goto term_no_infix
  16. +    here.'panic'('expecting element, found infix')
  17. +  term_no_infix:
  18. +
  19.      here = here.termishrx()
  20.      unless here goto fail
  21.      .local pmc termish
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement