Home
last modified time | relevance | path

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

1234

/external/antlr/tool/src/test/java/org/antlr/test/
DTestInterpretedLexing.java30 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 …]
DTestTokenRewriteStream.java30 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 …]
DTestInterpretedParsing.java30 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()
DTestCommonTokenStream.java52 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()
DTestDFAMatching.java32 import org.antlr.runtime.ANTLRStringStream;
100 ANTLRStringStream stream = new ANTLRStringStream(input); in checkPrediction()
/external/antlr/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/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/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/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/runtime/ObjC/Framework/test/runtime/tree/
DCommonTreeTest.m11 #import <ANTLR/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/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/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/runtime/ObjC/Framework/test/runtime/token/
DCommonTokenTest.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/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/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/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/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/runtime/Perl5/examples/mexpr/
Dmexpr.pl8 use ANTLR::Runtime::ANTLRStringStream;
14 my $input = ANTLR::Runtime::ANTLRStringStream->new({ input => $_ });
/external/antlr/runtime/Perl5/examples/expr/
Dexpr.pl8 use ANTLR::Runtime::ANTLRStringStream;
19 my $input = ANTLR::Runtime::ANTLRStringStream->new({ input => $in });
/external/antlr/runtime/Perl5/examples/id/
Did.pl6 use ANTLR::Runtime::ANTLRStringStream;
12 my $input = ANTLR::Runtime::ANTLRStringStream->new({ input => "Hello World!\n42\n" });
/external/antlr/runtime/ObjC/Framework/examples/lexertest-simple/
Dmain.m10 ANTLRStringStream *stream = [ANTLRStringStream newANTLRStringStream:@"abB9Cdd44"];
/external/antlr/runtime/ObjC/Framework/examples/combined/
Dmain.m11 ANTLRStringStream *stream = [ANTLRStringStream newANTLRStringStream:string];
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime.Test/
DTestDotTreeGenerator.cs46 ANTLRStringStream input = new ANTLRStringStream( "3 * x" ); in TestCreateDot()

1234