Home | History | Annotate | Download | only in antlr3

Lines Matching defs:replace

1029     You can insert stuff, replace, and delete chunks.  Note that the
1168 def replace(self, *args):
1200 "replace: range invalid: %d..%d (size=%d)"
1210 self.replace(*(list(args) + [None]))
1350 Delete special case of replace (text==null):
1365 R.x-y.u = replace x-y indexed tokens with u
1367 First we need to examine replaces. For any replace op:
1370 2. Drop any replace op before that is contained completely within
1372 3. Throw exception upon boundary overlap with any previous replace.
1377 2. for any prior replace with same left boundary, combine this
1378 insert with replace and delete this replace.
1379 3. throw exception if index in same range as previous replace
1385 inserted stuff would be before the replace range. But, if you
1403 # E.g., insert before 2, delete 2..2; update replace
1416 # delete replace as it's a no-op.
1426 # Delete special case of replace (text==null):
1438 "replace op boundaries of %s overlap with previous %s"