Home
last modified time | relevance | path

Searched refs:TokenRewriteStream (Results 1 – 23 of 23) sorted by relevance

/external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/
DTestTokenRewriteStream.java32 import org.antlr.runtime.TokenRewriteStream;
51 TokenRewriteStream tokens = new TokenRewriteStream(lexEngine); in testInsertBeforeIndex0()
66 TokenRewriteStream tokens = new TokenRewriteStream(lexEngine); in testInsertAfterLastIndex()
81 TokenRewriteStream tokens = new TokenRewriteStream(lexEngine); in test2InsertBeforeAfterMiddleIndex()
98 TokenRewriteStream tokens = new TokenRewriteStream(lexEngine); in testReplaceIndex0()
114 TokenRewriteStream tokens = new TokenRewriteStream(lexEngine); in testReplaceLastIndex()
130 TokenRewriteStream tokens = new TokenRewriteStream(lexEngine); in testReplaceMiddleIndex()
151 TokenRewriteStream tokens = new TokenRewriteStream(lexEngine); in testToStringStartStop()
186 TokenRewriteStream tokens = new TokenRewriteStream(lexEngine); in testToStringStartStop2()
233 TokenRewriteStream tokens = new TokenRewriteStream(lexEngine); in test2ReplaceMiddleIndex()
[all …]
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/
DTokenRewriteStream.cs95 public class TokenRewriteStream : CommonTokenStream { class
109 protected TokenRewriteStream stream;
111 protected RewriteOperation(TokenRewriteStream stream, int index, object text) { in RewriteOperation()
133 public InsertBeforeOp(TokenRewriteStream stream, int index, object text) : in InsertBeforeOp()
152 public ReplaceOp(TokenRewriteStream stream, int from, int to, object text) in ReplaceOp()
168 public DeleteOp(TokenRewriteStream stream, int from, int to) : in DeleteOp()
187 public TokenRewriteStream() { in TokenRewriteStream() method in Antlr.Runtime.TokenRewriteStream
197 public TokenRewriteStream(ITokenSource tokenSource) in TokenRewriteStream() method in Antlr.Runtime.TokenRewriteStream
202 public TokenRewriteStream(ITokenSource tokenSource, int channel) in TokenRewriteStream() method in Antlr.Runtime.TokenRewriteStream
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/
DTokenRewriteStream.cs98 public class TokenRewriteStream : CommonTokenStream class
114 protected TokenRewriteStream stream;
116 protected RewriteOperation(TokenRewriteStream stream, int index) in RewriteOperation()
122 protected RewriteOperation( TokenRewriteStream stream, int index, object text ) in RewriteOperation()
150 public InsertBeforeOp( TokenRewriteStream stream, int index, object text ) : in InsertBeforeOp()
172 public ReplaceOp( TokenRewriteStream stream, int from, int to, object text ) in ReplaceOp()
209 public TokenRewriteStream() in TokenRewriteStream() method in Antlr.Runtime.TokenRewriteStream
221 public TokenRewriteStream( ITokenSource tokenSource ) in TokenRewriteStream() method in Antlr.Runtime.TokenRewriteStream
227 public TokenRewriteStream( ITokenSource tokenSource, int channel ) in TokenRewriteStream() method in Antlr.Runtime.TokenRewriteStream
/external/antlr/antlr-3.4/runtime/Perl5/examples/tweak/
Dtweak.pl7 use ANTLR::Runtime::TokenRewriteStream;
13 my $tokens = ANTLR::Runtime::TokenRewriteStream({ token_source => $lexer });
DT.g4 * with some text. Calling toString() on the TokenRewriteStream
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/
DStrip.java43 protected TokenRewriteStream tokens;
55 public TokenRewriteStream getTokenStream() { return tokens; } in getTokenStream()
64 tokens = new TokenRewriteStream(lex); in parseAndRewrite()
201 public static void ACTION(TokenRewriteStream tokens, CommonTree t) { in ACTION()
221 private static void killTrailingNewline(TokenRewriteStream tokens, int index) { in killTrailingNewline()
/external/antlr/antlr-3.4/runtime/Python/tests/
Dt055templates.py373 tStream = antlr3.TokenRewriteStream(lexer)
482 tStream = antlr3.TokenRewriteStream(lexer)
Dt046rewrite.py25 tStream = antlr3.TokenRewriteStream(lexer)
Dt048rewrite.py18 tStream = antlr3.TokenRewriteStream(lexer)
420 tStream = antlr3.TokenRewriteStream(lexer)
/external/antlr/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/
DTokenRewriteStream.js53 org.antlr.runtime.TokenRewriteStream = function() { class in org.antlr.runtime
54 var sup = org.antlr.runtime.TokenRewriteStream.superclass;
75 var trs = org.antlr.runtime.TokenRewriteStream;
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/
Dtemplate.rb69 when TokenSource then TokenRewriteStream.new( input, options )
72 TokenRewriteStream.new( lexer_class.new( input, options ), options )
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/
DTokenRewriteStream.java83 public class TokenRewriteStream extends CommonTokenStream { class
167 public TokenRewriteStream() { in TokenRewriteStream() method in TokenRewriteStream
177 public TokenRewriteStream(TokenSource tokenSource) { in TokenRewriteStream() method in TokenRewriteStream
182 public TokenRewriteStream(TokenSource tokenSource, int channel) { in TokenRewriteStream() method in TokenRewriteStream
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/CSharp3/
DST.stg80 ((TokenRewriteStream)input.TokenStream).Replace(
85 ((TokenRewriteStream)input).Replace(
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/Java/
DST.stg94 ((TokenRewriteStream)input.getTokenStream()).replace(
99 ((TokenRewriteStream)input).replace(
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/CSharp2/
DST.stg103 ((TokenRewriteStream)input.TokenStream).Replace(
108 ((TokenRewriteStream)input).Replace(
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/ObjC/
DST4ObjC.stg164 [([(TokenRewriteStream)input getTokenStream])
169 [((TokenRewriteStream)input)
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/
DTokenRewriteStream.as56 * var tokens:TokenRewriteStream = new TokenRewriteStream(lex);
67 * Actually, you have to cast the 'input' to a TokenRewriteStream. :(
83 public class TokenRewriteStream extends CommonTokenStream { class in org.antlr.runtime
96 …public function TokenRewriteStream(tokenSource:TokenSource = null, channel:int = TokenConstants.DE… method in org.antlr.runtime.TokenRewriteStream
/external/antlr/antlr-3.4/runtime/JavaScript/build/
Dantlr3.properties38 org/antlr/runtime/TokenRewriteStream.js,\
/external/antlr/antlr-3.4/runtime/Ruby/
DHistory.txt16 - fixed typo in TokenRewriteStream#cast_range
96 to cast a CommonTokenStream into a TokenRewriteStream and vice-versa
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/streams/
Drewrite.rb43 class TokenRewriteStream < CommonTokenStream class
/external/antlr/antlr-3.4/runtime/C/
DREADME505 Enhanced TokenRewriteStream so it accepts any object; converts
510 TokenRewriteStream input stream. In output=template and rewrite=true mode
513 ((TokenRewriteStream)input).replace(
525 TokenRewriteStream tokens = new TokenRewriteStream(lexer);
712 * TokenRewriteStream.replace was not passing programName to next method.
1462 * Bug in TokenRewriteStream; ops at indexes < start index blocked proper op.
1490 * TokenRewriteStream didn't do toString() right when no rewrites had been done.
/external/antlr/antlr-3.4/tool/
DCHANGES.txt152 * TokenRewriteStream had dead code; also updated insertBefore followed by
630 * Fixed another bug in TokenRewriteStream; didn't like inserts after end.
634 * Fixed bug in TokenRewriteStream.toString(start,stop); it ignored
685 * Throw illegal arg exception upon invalid TokenRewriteStream ops. Rewrote
2075 Enhanced TokenRewriteStream so it accepts any object; converts
2080 TokenRewriteStream input stream. In output=template and rewrite=true mode
2083 ((TokenRewriteStream)input).replace(
2095 TokenRewriteStream tokens = new TokenRewriteStream(lexer);
2282 * TokenRewriteStream.replace was not passing programName to next method.
3032 * Bug in TokenRewriteStream; ops at indexes < start index blocked proper op.
[all …]
/external/antlr/antlr-3.4/runtime/Python/antlr3/
Dstreams.py1023 class TokenRewriteStream(CommonTokenStream): class