Home
last modified time | relevance | path

Searched refs:CharStream (Results 1 – 25 of 74) sorted by relevance

123

/external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/
DTestTokenRewriteStream.java31 import org.antlr.runtime.CharStream;
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.java31 import org.antlr.runtime.CharStream;
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()
DTestInterpretedLexing.java31 import org.antlr.runtime.CharStream;
150 CharStream input = new ANTLRStringStream("1234.5"); in testSimpleLoops()
169 CharStream input = new ANTLRStringStream("123 139.52"); in testTokensRules()
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/
DInterpreter.java69 token = new CommonToken((CharStream)input,type,channel,0,0); in exitRule()
83 if ( input.LA(1)==CharStream.EOF ) { in nextToken()
84 …return new CommonToken((CharStream)input,Token.EOF,Token.DEFAULT_CHANNEL,input.index(),input.index… in nextToken()
87 int charPos = ((CharStream)input).getCharPositionInLine(); in nextToken()
90 while (input.LA(1)!=CharStream.EOF) { in nextToken()
105 return new CommonToken((CharStream)input,Token.EOF,Token.DEFAULT_CHANNEL,start,start); in nextToken()
107 token.setLine(((CharStream)input).getLine()); in nextToken()
132 CharStream in = (CharStream)this.input; in scan()
441 CharStream cs = (CharStream)input; in reportScanError()
/external/antlr/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/
DCharStream.js7 org.antlr.runtime.CharStream = function() {}; class in org.antlr.runtime
10 org.antlr.lang.extend(org.antlr.runtime.CharStream,
13 org.antlr.lang.augmentObject(org.antlr.runtime.CharStream,
DANTLRStringStream.js73 org.antlr.runtime.CharStream,
118 return org.antlr.runtime.CharStream.EOF;
DToken.js21 EOF: org.antlr.runtime.CharStream.EOF,
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/
DLexer.java37 protected CharStream input;
42 public Lexer(CharStream input) { in Lexer()
46 public Lexer(CharStream input, RecognizerSharedState state) { in Lexer()
80 if ( input.LA(1)==CharStream.EOF ) { in nextToken()
81 Token eof = new CommonToken((CharStream)input,Token.EOF, in nextToken()
127 public void setCharStream(CharStream input) { in setCharStream()
133 public CharStream getCharStream() { in getCharStream()
DToken.java40 public static final int EOF = CharStream.EOF;
90 public CharStream getInputStream(); in getInputStream()
91 public void setInputStream(CharStream input); in setInputStream()
DCommonToken.java37 protected transient CharStream input;
58 public CommonToken(CharStream input, int type, int channel, int start, int stop) { in CommonToken()
167 public CharStream getInputStream() { in getInputStream()
171 public void setInputStream(CharStream input) { in setInputStream()
DANTLRStringStream.java37 public class ANTLRStringStream implements CharStream {
121 return CharStream.EOF; // invalid; no char before first char in LA()
127 return CharStream.EOF; in LA()
DRecognitionException.java113 else if ( input instanceof CharStream ) { in RecognitionException()
115 this.line = ((CharStream)input).getLine(); in RecognitionException()
116 this.charPositionInLine = ((CharStream)input).getCharPositionInLine(); in RecognitionException()
DClassicToken.java118 public CharStream getInputStream() { in getInputStream()
122 public void setInputStream(CharStream input) { in setInputStream()
DCharStream.java31 public interface CharStream extends IntStream { interface
DNoViableAltException.java50 if ( input instanceof CharStream ) { in toString()
/external/smali/smali/src/main/java/org/jf/smali/
DLexerErrorInterface.java31 import org.antlr.runtime.CharStream;
44 public ANTLRLexerWithErrorInterface(CharStream input, RecognizerSharedState state) { in ANTLRLexerWithErrorInterface()
/external/antlr/antlr-3.4/runtime/Perl5/lib/ANTLR/Runtime/
DToken.pm7 use ANTLR::Runtime::CharStream;
37 sub EOF { ANTLR::Runtime::CharStream->EOF }
DCharStream.pm1 package ANTLR::Runtime::CharStream;
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/swingui/runner/
DgUnitAdapter.java34 import org.antlr.runtime.CharStream;
62 … final CharStream input = new ANTLRFileStream(testSuite.getTestSuiteFile().getCanonicalPath()); in run()
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/
DgUnitExecutor.java231 CharStream input; in runLexer()
241 Class[] lexArgTypes = new Class[]{CharStream.class}; // assign type to lexer's args in runLexer()
307 CharStream input; in runParser()
318 Class[] lexArgTypes = new Class[]{CharStream.class}; // assign type to lexer's args in runParser()
438 CharStream input; in runTreeParser()
459 Class[] lexArgTypes = new Class[]{CharStream.class}; // assign type to lexer's args in runTreeParser()
607 private CharStream getANTLRInputStream(gUnitTestInput testInput) throws IOException { in getANTLRInputStream()
608 CharStream input; in getANTLRInputStream()
DgUnitBaseTest.java65 CharStream input; in execLexer()
86 Class[] lexArgTypes = new Class[]{CharStream.class}; // assign type to lexer's args in execLexer()
156 CharStream input; in execParser()
180 Class[] lexArgTypes = new Class[]{CharStream.class}; // assign type to lexer's args in execParser()
303 CharStream input; in execTreeParser()
325 Class[] lexArgTypes = new Class[]{CharStream.class}; // assign type to lexer's args in execTreeParser()
DInterp.java44 CharStream input = null; in main()
99 public static GrammarInfo parse(CharStream input) throws RecognitionException { in parse()
/external/antlr/antlr-3.4/runtime/ActionScript/project/test/org/antlr/runtime/test/
DTestANTLRStringStream.as5 import org.antlr.runtime.CharStream;
15 var stream:CharStream = new ANTLRStringStream("abc");
43 var stream:CharStream = new ANTLRStringStream("abc");
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/
DCommonToken.as37 protected var _input:CharStream;
59 …public static function createFromStream(input:CharStream, type:int, channel:int, start:int, stop:i…
157 public function get inputStream():CharStream {
161 public function set inputStream(input:CharStream):void {

123