Home
last modified time | relevance | path

Searched refs:ANTLRStringStream (Results 1 – 25 of 86) sorted by relevance

1234

/external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/
DTestInterpretedLexing.java30 import org.antlr.runtime.ANTLRStringStream;
84 Interpreter engine = new Interpreter(g, new ANTLRStringStream("a")); in testSimpleAltCharTest()
85 engine = new Interpreter(g, new ANTLRStringStream("b")); in testSimpleAltCharTest()
88 engine = new Interpreter(g, new ANTLRStringStream("c")); in testSimpleAltCharTest()
99 Interpreter engine = new Interpreter(g, new ANTLRStringStream("abc")); // should ignore the x in testSingleRuleRef()
110 Interpreter engine = new Interpreter(g, new ANTLRStringStream("12x")); // should ignore the x in testSimpleLoop()
113 engine = new Interpreter(g, new ANTLRStringStream("1234")); in testSimpleLoop()
123 Interpreter engine = new Interpreter(g, new ANTLRStringStream("a")); in testMultAltLoop()
125 engine = new Interpreter(g, new ANTLRStringStream("a")); in testMultAltLoop()
128 engine = new Interpreter(g, new ANTLRStringStream("1234")); in testMultAltLoop()
[all …]
DTestTokenRewriteStream.java30 import org.antlr.runtime.ANTLRStringStream;
49 CharStream input = new ANTLRStringStream("abc"); in testInsertBeforeIndex0()
64 CharStream input = new ANTLRStringStream("abc"); in testInsertAfterLastIndex()
79 CharStream input = new ANTLRStringStream("abc"); in test2InsertBeforeAfterMiddleIndex()
96 CharStream input = new ANTLRStringStream("abc"); in testReplaceIndex0()
112 CharStream input = new ANTLRStringStream("abc"); in testReplaceLastIndex()
128 CharStream input = new ANTLRStringStream("abc"); in testReplaceMiddleIndex()
149 CharStream input = new ANTLRStringStream("x = 3 * 0;"); in testToStringStartStop()
184 CharStream input = new ANTLRStringStream("x = 3 * 0 + 2 * 0;"); in testToStringStartStop2()
231 CharStream input = new ANTLRStringStream("abc"); in test2ReplaceMiddleIndex()
[all …]
DTestInterpretedParsing.java30 import org.antlr.runtime.ANTLRStringStream;
63 CharStream input = new ANTLRStringStream("while x { i=1; y=3.42; z=y; }"); in testSimpleParse()
98 CharStream input = new ANTLRStringStream("while x { i=1 y=3.42; z=y; }"); in testMismatchedTokenError()
133 CharStream input = new ANTLRStringStream("while x { i=; y=3.42; z=y; }"); in testMismatchedSetError()
168 CharStream input = new ANTLRStringStream("while x { i=; y=3.42; z=y; }"); in testNoViableAltError()
DTestCommonTokenStream.java50 CharStream input = new ANTLRStringStream("x = 3 * 0 + 2 * 0;"); in testFirstToken()
71 CharStream input = new ANTLRStringStream("x = 3 * 0 + 2 * 0;"); in test2ndToken()
92 CharStream input = new ANTLRStringStream("x = 3 * 0 + 2 * 0;"); in testCompleteBuffer()
122 CharStream input = new ANTLRStringStream("x = 3 * 0 + 2 * 0;"); in testCompleteBufferAfterConsuming()
153 CharStream input = new ANTLRStringStream("x = 3 * 0 + 2 * 0;"); in testLookback()
DTestDFAMatching.java32 import org.antlr.runtime.ANTLRStringStream;
98 ANTLRStringStream stream = new ANTLRStringStream(input); in checkPrediction()
/external/antlr/antlr-3.4/runtime/ObjC/Framework/test/runtime/stream/
DANTLRStringStreamTest.m11 #import "ANTLRStringStream.h"
18 NSString *input = @"This is a string used for ANTLRStringStream input ;)";
19 ANTLRStringStream *stream = [ANTLRStringStream newANTLRStringStream:input];
28ANTLRStringStream *stream = [ANTLRStringStream newANTLRStringStream:@"This is a string used for in…
38ANTLRStringStream *stream = [ANTLRStringStream newANTLRStringStream:@"This is a string\nused for i…
51ANTLRStringStream *stream = [ANTLRStringStream newANTLRStringStream:@"This is a string\nused for i…
67ANTLRStringStream *stream = [ANTLRStringStream newANTLRStringStream:@"This is a string\nused for i…
82ANTLRStringStream *stream =[ANTLRStringStream newANTLRStringStream:@"This is a string used for inp…
92ANTLRStringStream *stream =[ANTLRStringStream newANTLRStringStream:@"This is a string used for inp…
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime.Tests/
DANTLRxxxxStreamFixture.cs289 #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/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/
DANTLRStringStream.cs47 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/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/
DANTLRStringStream.cs46 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/antlr-3.4/runtime/ObjC/Framework/test/runtime/tree/
DANTLRCommonTreeTest.m11 #import "ANTLRStringStream.h"
39ANTLRStringStream *stream = [ANTLRStringStream newANTLRStringStream:@"this||is||a||double||piped||…
69ANTLRStringStream *stream = [ANTLRStringStream newANTLRStringStream:@"this||is||a||double||piped||…
89ANTLRStringStream *stream = [ANTLRStringStream newANTLRStringStream:@"this||is||a||double||piped||…
135ANTLRStringStream *stream = [ANTLRStringStream newANTLRStringStream:@"this||is||a||double||piped||…
149ANTLRStringStream *stream = [ANTLRStringStream newANTLRStringStream:@"this||is||a||double||piped||…
171ANTLRStringStream *stream = [ANTLRStringStream newANTLRStringStream:@"this||is||a||double||piped||…
201ANTLRStringStream *stream = [ANTLRStringStream newANTLRStringStream:@"this||is||a||double||piped||…
251ANTLRStringStream *stream = [ANTLRStringStream newANTLRStringStream:@"this||is||a||double||piped||…
277ANTLRStringStream *stream = [ANTLRStringStream newANTLRStringStream:@"this||is||a||double||piped||…
[all …]
/external/antlr/antlr-3.4/runtime/ActionScript/project/test/org/antlr/runtime/test/
DTestANTLRStringStream.as4 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/antlr-3.4/runtime/Perl5/t/
Dlexer.t34 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/antlr-3.4/runtime/ObjC/Framework/test/runtime/token/
DANTLRCommonTokenTest.m11 #import "ANTLRStringStream.h"
53ANTLRStringStream *stream = [[ANTLRStringStream newANTLRStringStream:@"this||is||a||double||piped|…
65ANTLRStringStream *stream = [[ANTLRStringStream newANTLRStringStream:@"this||is||a||double||piped|…
90ANTLRStringStream *stream = [[ANTLRStringStream newANTLRStringStream:@"this||is||a||double||piped|…
/external/antlr/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/
DANTLRStringStream.js8 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/antlr-3.4/runtime/Perl5/t/classes/Test/ANTLR/Runtime/
DANTLRStringStream.pm1 package Test::ANTLR::Runtime::ANTLRStringStream;
3 use ANTLR::Runtime::ANTLRStringStream;
27 is $s->LA(4), ANTLR::Runtime::ANTLRStringStream->EOF;
DLexer.pm5 use ANTLR::Runtime::ANTLRStringStream;
13 my $input = ANTLR::Runtime::ANTLRStringStream->new({ input => 'ABC' });
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/
DANTLRStringStream.java37 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/antlr-3.4/runtime/Perl5/examples/zero-one/
Dt.pl6 use ANTLR::Runtime::ANTLRStringStream;
12 my $input = ANTLR::Runtime::ANTLRStringStream->new({ input => '010' });
Dt-error.pl6 use ANTLR::Runtime::ANTLRStringStream;
12 my $input = ANTLR::Runtime::ANTLRStringStream->new({ '01X0' });
/external/antlr/antlr-3.4/runtime/Perl5/examples/mexpr/
Dmexpr.pl8 use ANTLR::Runtime::ANTLRStringStream;
14 my $input = ANTLR::Runtime::ANTLRStringStream->new({ input => $_ });
/external/antlr/antlr-3.4/runtime/Perl5/examples/expr/
Dexpr.pl8 use ANTLR::Runtime::ANTLRStringStream;
19 my $input = ANTLR::Runtime::ANTLRStringStream->new({ input => $in });
/external/antlr/antlr-3.4/runtime/Perl5/examples/id/
Did.pl6 use ANTLR::Runtime::ANTLRStringStream;
12 my $input = ANTLR::Runtime::ANTLRStringStream->new({ input => "Hello World!\n42\n" });
/external/antlr/antlr-3.4/runtime/ObjC/Framework/examples/lexertest-simple/
Dmain.m10 ANTLRStringStream *stream = [ANTLRStringStream newANTLRStringStream:@"abB9Cdd44"];
/external/antlr/antlr-3.4/runtime/ObjC/Framework/examples/combined/
Dmain.m11 ANTLRStringStream *stream = [ANTLRStringStream newANTLRStringStream:string];
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Test/
DTestDotTreeGenerator.cs46 ANTLRStringStream input = new ANTLRStringStream( "3 * x" ); in TestCreateDot()

1234