Changeset 2904 for proto/parenmatch


Ignore:
Timestamp:
Feb 11, 2013, 12:19:36 PM (6 years ago)
Author:
cameron
Message:

Parenthesis matching without match-level callout streams

Location:
proto/parenmatch
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • proto/parenmatch/parenmatch.py

    r2454 r2904  
    5555                pscan[i] = pablo.ScanTo(pablo.Advance(unclosed & lex.LParen), unclosed)
    5656                qscan[i] = pablo.ScanTo(pablo.Advance(unclosed & lex.RParen), unclosed)
    57                 matches.closed[i] = pscan[i] & lex.RParen #| qscan[i] & lex.LParen
     57                matches.closed[i] = pscan[i] & lex.RParen
    5858                unclosed = pscan[i] & lex.LParen | qscan[i] & lex.RParen
    5959                all_closed |= matches.closed[i]
    60                 matches.error |= pscan[i] &~ pablo.EOF_mask #| ~pablo.atEOF(qscan[i])
     60                matches.error |= pscan[i] &~ pablo.EOF_mask
    6161        #
    6262        # Any closing paren that was not actually used to close
Note: See TracChangeset for help on using the changeset viewer.