/external/antlr/tool/src/test/java/org/antlr/test/ |
D | TestInterpretedLexing.java | 30 import org.antlr.runtime.ANTLRStringStream; 86 Interpreter engine = new Interpreter(g, new ANTLRStringStream("a")); in testSimpleAltCharTest() 87 engine = new Interpreter(g, new ANTLRStringStream("b")); in testSimpleAltCharTest() 90 engine = new Interpreter(g, new ANTLRStringStream("c")); in testSimpleAltCharTest() 101 Interpreter engine = new Interpreter(g, new ANTLRStringStream("abc")); // should ignore the x in testSingleRuleRef() 112 Interpreter engine = new Interpreter(g, new ANTLRStringStream("12x")); // should ignore the x in testSimpleLoop() 115 engine = new Interpreter(g, new ANTLRStringStream("1234")); in testSimpleLoop() 125 Interpreter engine = new Interpreter(g, new ANTLRStringStream("a")); in testMultAltLoop() 127 engine = new Interpreter(g, new ANTLRStringStream("a")); in testMultAltLoop() 130 engine = new Interpreter(g, new ANTLRStringStream("1234")); in testMultAltLoop() [all …]
|
D | TestTokenRewriteStream.java | 30 import org.antlr.runtime.ANTLRStringStream; 51 CharStream input = new ANTLRStringStream("abc"); in testInsertBeforeIndex0() 66 CharStream input = new ANTLRStringStream("abc"); in testInsertAfterLastIndex() 81 CharStream input = new ANTLRStringStream("abc"); in test2InsertBeforeAfterMiddleIndex() 98 CharStream input = new ANTLRStringStream("abc"); in testReplaceIndex0() 114 CharStream input = new ANTLRStringStream("abc"); in testReplaceLastIndex() 130 CharStream input = new ANTLRStringStream("abc"); in testReplaceMiddleIndex() 151 CharStream input = new ANTLRStringStream("x = 3 * 0;"); in testToStringStartStop() 186 CharStream input = new ANTLRStringStream("x = 3 * 0 + 2 * 0;"); in testToStringStartStop2() 233 CharStream input = new ANTLRStringStream("abc"); in test2ReplaceMiddleIndex() [all …]
|
D | TestInterpretedParsing.java | 30 import org.antlr.runtime.ANTLRStringStream; 65 CharStream input = new ANTLRStringStream("while x { i=1; y=3.42; z=y; }"); in testSimpleParse() 100 CharStream input = new ANTLRStringStream("while x { i=1 y=3.42; z=y; }"); in testMismatchedTokenError() 135 CharStream input = new ANTLRStringStream("while x { i=; y=3.42; z=y; }"); in testMismatchedSetError() 170 CharStream input = new ANTLRStringStream("while x { i=; y=3.42; z=y; }"); in testNoViableAltError()
|
D | TestCommonTokenStream.java | 52 CharStream input = new ANTLRStringStream("x = 3 * 0 + 2 * 0;"); in testFirstToken() 73 CharStream input = new ANTLRStringStream("x = 3 * 0 + 2 * 0;"); in test2ndToken() 94 CharStream input = new ANTLRStringStream("x = 3 * 0 + 2 * 0;"); in testCompleteBuffer() 124 CharStream input = new ANTLRStringStream("x = 3 * 0 + 2 * 0;"); in testCompleteBufferAfterConsuming() 155 CharStream input = new ANTLRStringStream("x = 3 * 0 + 2 * 0;"); in testLookback()
|
D | TestDFAMatching.java | 32 import org.antlr.runtime.ANTLRStringStream; 100 ANTLRStringStream stream = new ANTLRStringStream(input); in checkPrediction()
|
/external/antlr/runtime/ObjC/Framework/test/runtime/stream/ |
D | ANTLRStringStreamTest.m | 11 #import "ANTLRStringStream.h" 18 NSString *input = @"This is a string used for ANTLRStringStream input ;)"; 19 ANTLRStringStream *stream = [ANTLRStringStream newANTLRStringStream:input]; 28 …ANTLRStringStream *stream = [ANTLRStringStream newANTLRStringStream:@"This is a string used for in… 38 …ANTLRStringStream *stream = [ANTLRStringStream newANTLRStringStream:@"This is a string\nused for i… 51 …ANTLRStringStream *stream = [ANTLRStringStream newANTLRStringStream:@"This is a string\nused for i… 67 …ANTLRStringStream *stream = [ANTLRStringStream newANTLRStringStream:@"This is a string\nused for i… 82 …ANTLRStringStream *stream =[ANTLRStringStream newANTLRStringStream:@"This is a string used for inp… 92 …ANTLRStringStream *stream =[ANTLRStringStream newANTLRStringStream:@"This is a string used for inp…
|
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime.Tests/ |
D | ANTLRxxxxStreamFixture.cs | 289 #region ANTLRStringStream Tests 294 ANTLRStringStream s1 = new ANTLRStringStream(""); in TestSizeOnEmptyANTLRStringStream() 302 ANTLRStringStream s1 = new ANTLRStringStream("lexer\r\n"); in TestSizeOnANTLRStringStream() 305 ANTLRStringStream s2 = new ANTLRStringStream(grammarStr); in TestSizeOnANTLRStringStream() 308 ANTLRStringStream s3 = new ANTLRStringStream("grammar P;"); in TestSizeOnANTLRStringStream() 315 ANTLRStringStream stream = new ANTLRStringStream("One\r\nTwo"); in TestConsumeOnANTLRStringStream() 374 ANTLRStringStream stream = new ANTLRStringStream("One\r\nTwo"); in TestResetOnANTLRStringStream() 408 ANTLRStringStream stream = new ANTLRStringStream("One\r\nTwo\r\nThree"); in TestSubstringOnANTLRStringStream()
|
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime/ |
D | ANTLRStringStream.cs | 47 public class ANTLRStringStream : ICharStream class 83 public ANTLRStringStream( string input ) in ANTLRStringStream() method in Antlr.Runtime.ANTLRStringStream 88 public ANTLRStringStream( string input, string sourceName ) in ANTLRStringStream() method in Antlr.Runtime.ANTLRStringStream 94 public ANTLRStringStream( char[] data, int numberOfActualCharsInArray ) in ANTLRStringStream() method in Antlr.Runtime.ANTLRStringStream 99 public ANTLRStringStream( char[] data, int numberOfActualCharsInArray, string sourceName ) in ANTLRStringStream() method in Antlr.Runtime.ANTLRStringStream 113 protected ANTLRStringStream() in ANTLRStringStream() method in Antlr.Runtime.ANTLRStringStream
|
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/ |
D | ANTLRStringStream.cs | 46 public class ANTLRStringStream : ICharStream { class 81 public ANTLRStringStream(string input) in ANTLRStringStream() method in Antlr.Runtime.ANTLRStringStream 85 public ANTLRStringStream(string input, string sourceName) in ANTLRStringStream() method in Antlr.Runtime.ANTLRStringStream 90 public ANTLRStringStream(char[] data, int numberOfActualCharsInArray) in ANTLRStringStream() method in Antlr.Runtime.ANTLRStringStream 94 public ANTLRStringStream(char[] data, int numberOfActualCharsInArray, string sourceName) { in ANTLRStringStream() method in Antlr.Runtime.ANTLRStringStream 107 protected ANTLRStringStream() { in ANTLRStringStream() method in Antlr.Runtime.ANTLRStringStream
|
/external/antlr/runtime/ObjC/Framework/test/runtime/tree/ |
D | CommonTreeTest.m | 11 #import <ANTLR/ANTLRStringStream.h> 39 …ANTLRStringStream *stream = [ANTLRStringStream newANTLRStringStream:@"this||is||a||double||piped||… 69 …ANTLRStringStream *stream = [ANTLRStringStream newANTLRStringStream:@"this||is||a||double||piped||… 89 …ANTLRStringStream *stream = [ANTLRStringStream newANTLRStringStream:@"this||is||a||double||piped||… 135 …ANTLRStringStream *stream = [ANTLRStringStream newANTLRStringStream:@"this||is||a||double||piped||… 149 …ANTLRStringStream *stream = [ANTLRStringStream newANTLRStringStream:@"this||is||a||double||piped||… 171 …ANTLRStringStream *stream = [ANTLRStringStream newANTLRStringStream:@"this||is||a||double||piped||… 201 …ANTLRStringStream *stream = [ANTLRStringStream newANTLRStringStream:@"this||is||a||double||piped||… 251 …ANTLRStringStream *stream = [ANTLRStringStream newANTLRStringStream:@"this||is||a||double||piped||… 277 …ANTLRStringStream *stream = [ANTLRStringStream newANTLRStringStream:@"this||is||a||double||piped||… [all …]
|
/external/antlr/runtime/ActionScript/project/test/org/antlr/runtime/test/ |
D | TestANTLRStringStream.as | 4 import org.antlr.runtime.ANTLRStringStream; 15 var stream:CharStream = new ANTLRStringStream("abc"); 43 var stream:CharStream = new ANTLRStringStream("abc"); 62 var stream:ANTLRStringStream = new ANTLRStringStream("abc"); 86 var stream:ANTLRStringStream = new ANTLRStringStream("a\nbc");
|
/external/antlr/runtime/Perl5/t/ |
D | lexer.t | 34 use ANTLR::Runtime::ANTLRStringStream; 37 my $input = ANTLR::Runtime::ANTLRStringStream->new({ input => '123' }); 59 use ANTLR::Runtime::ANTLRStringStream; 62 my $input = ANTLR::Runtime::ANTLRStringStream->new({ input => "Hello World!\n42\n" }); 107 use ANTLR::Runtime::ANTLRStringStream; 113 my $input = ANTLR::Runtime::ANTLRStringStream->new(<< 'XML');
|
/external/antlr/runtime/ObjC/Framework/test/runtime/token/ |
D | CommonTokenTest.m | 11 #import "ANTLRStringStream.h" 53 …ANTLRStringStream *stream = [[ANTLRStringStream newANTLRStringStream:@"this||is||a||double||piped|… 65 …ANTLRStringStream *stream = [[ANTLRStringStream newANTLRStringStream:@"this||is||a||double||piped|… 90 …ANTLRStringStream *stream = [[ANTLRStringStream newANTLRStringStream:@"this||is||a||double||piped|…
|
/external/antlr/runtime/JavaScript/src/org/antlr/runtime/ |
D | ANTLRStringStream.js | 8 org.antlr.runtime.ANTLRStringStream = function(data) { class in org.antlr.runtime 72 org.antlr.lang.extend(org.antlr.runtime.ANTLRStringStream, 318 org.antlr.runtime.ANTLRStringStream.prototype.LT = org.antlr.runtime.ANTLRStringStream.prototype.LA;
|
/external/antlr/runtime/Perl5/t/classes/Test/ANTLR/Runtime/ |
D | ANTLRStringStream.pm | 1 package Test::ANTLR::Runtime::ANTLRStringStream; 3 use ANTLR::Runtime::ANTLRStringStream; 27 is $s->LA(4), ANTLR::Runtime::ANTLRStringStream->EOF;
|
D | Lexer.pm | 5 use ANTLR::Runtime::ANTLRStringStream; 13 my $input = ANTLR::Runtime::ANTLRStringStream->new({ input => 'ABC' });
|
/external/antlr/runtime/Java/src/main/java/org/antlr/runtime/ |
D | ANTLRStringStream.java | 37 public class ANTLRStringStream implements CharStream { class 69 public ANTLRStringStream() { in ANTLRStringStream() method in ANTLRStringStream 73 public ANTLRStringStream(String input) { in ANTLRStringStream() method in ANTLRStringStream 80 public ANTLRStringStream(char[] data, int numberOfActualCharsInArray) { in ANTLRStringStream() method in ANTLRStringStream
|
/external/antlr/runtime/Perl5/examples/zero-one/ |
D | t.pl | 6 use ANTLR::Runtime::ANTLRStringStream; 12 my $input = ANTLR::Runtime::ANTLRStringStream->new({ input => '010' });
|
D | t-error.pl | 6 use ANTLR::Runtime::ANTLRStringStream; 12 my $input = ANTLR::Runtime::ANTLRStringStream->new({ '01X0' });
|
/external/antlr/runtime/Perl5/examples/mexpr/ |
D | mexpr.pl | 8 use ANTLR::Runtime::ANTLRStringStream; 14 my $input = ANTLR::Runtime::ANTLRStringStream->new({ input => $_ });
|
/external/antlr/runtime/Perl5/examples/expr/ |
D | expr.pl | 8 use ANTLR::Runtime::ANTLRStringStream; 19 my $input = ANTLR::Runtime::ANTLRStringStream->new({ input => $in });
|
/external/antlr/runtime/Perl5/examples/id/ |
D | id.pl | 6 use ANTLR::Runtime::ANTLRStringStream; 12 my $input = ANTLR::Runtime::ANTLRStringStream->new({ input => "Hello World!\n42\n" });
|
/external/antlr/runtime/ObjC/Framework/examples/lexertest-simple/ |
D | main.m | 10 ANTLRStringStream *stream = [ANTLRStringStream newANTLRStringStream:@"abB9Cdd44"];
|
/external/antlr/runtime/ObjC/Framework/examples/combined/ |
D | main.m | 11 ANTLRStringStream *stream = [ANTLRStringStream newANTLRStringStream:string];
|
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime.Test/ |
D | TestDotTreeGenerator.cs | 46 ANTLRStringStream input = new ANTLRStringStream( "3 * x" ); in TestCreateDot()
|