Public Member Functions | |
def | __init__ |
def | execute |
Execute the rewrite operation by possibly adding to the buffer. | |
def | toString |
Public Attributes | |
lastIndex | |
Static Private Attributes | |
__str__ = toString | |
__repr__ = toString |
I'm going to try replacing range from x..y with (y-x)+1 ReplaceOp instructions.
Definition at line 1932 of file antlr3.py.
def antlr3.ReplaceOp.__init__ | ( | self, | ||
stream, | ||||
first, | ||||
last, | ||||
text | ||||
) |
def antlr3.ReplaceOp.execute | ( | self, | ||
buf | ||||
) |
Execute the rewrite operation by possibly adding to the buffer.
Return the index of the next token to operate on.
Reimplemented from antlr3.RewriteOperation.
def antlr3.ReplaceOp.toString | ( | self | ) |
antlr3.ReplaceOp.__str__ = toString [static, private] |
antlr3.ReplaceOp.__repr__ = toString [static, private] |