本文整理了Java中org.antlr.runtime.IntStream.mark()
方法的一些代码示例,展示了IntStream.mark()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。IntStream.mark()
方法的具体详情如下:
包路径:org.antlr.runtime.IntStream
类名称:IntStream
方法名:mark
[英]Tell the stream to start buffering if it hasn't already. Return current input position, index(), or some other marker so that when passed to rewind() you get back to the same spot. rewind(mark()) should not affect the input cursor. The Lexer track line/col info as well as input index so its markers are not pure input indexes. Same for tree node streams.
[中]如果流尚未开始缓冲,则告诉它开始缓冲。返回当前输入位置、index()或其他标记,以便在传递到rewind()时返回到同一位置。回放(标记())不应影响输入光标。Lexer跟踪行/列信息以及输入索引,因此其标记不是纯输入索引。树节点流也是如此。
代码示例来源:origin: io.virtdata/virtdata-lib-realer
System.err.println("Enter DFA.predict for decision "+decisionNumber);
int mark = input.mark(); // remember where decision started in input
int s = 0; // we always start at s0
try {
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.antlr-runtime
System.err.println("Enter DFA.predict for decision "+decisionNumber);
int mark = input.mark(); // remember where decision started in input
int s = 0; // we always start at s0
try {
代码示例来源:origin: antlr/antlr3
System.err.println("Enter DFA.predict for decision "+decisionNumber);
int mark = input.mark(); // remember where decision started in input
int s = 0; // we always start at s0
try {
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
System.err.println("Enter DFA.predict for decision "+decisionNumber);
int mark = input.mark(); // remember where decision started in input
int s = 0; // we always start at s0
try {
代码示例来源:origin: antlr/antlr3
System.err.println("Enter DFA.predict for decision "+decisionNumber);
int mark = input.mark(); // remember where decision started in input
int s = 0; // we always start at s0
try {
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-analytics
System.err.println("Enter DFA.predict for decision "+decisionNumber);
int mark = input.mark(); // remember where decision started in input
int s = 0; // we always start at s0
try {
代码示例来源:origin: antlr/antlr3
int m = input.mark();
int predictedAlt = predict(dfa);
if ( predictedAlt == NFA.INVALID_ALT_NUMBER ) {
代码示例来源:origin: antlr/antlr3
int m = input.mark();
int predictedAlt = predict(dfa);
if ( predictedAlt == NFA.INVALID_ALT_NUMBER ) {
代码示例来源:origin: org.xtext/antlr-generator
int m = input.mark();
int predictedAlt = predict(dfa);
if ( predictedAlt == NFA.INVALID_ALT_NUMBER ) {
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-analytics
int m = input.mark();
int predictedAlt = predict(dfa);
if ( predictedAlt == NFA.INVALID_ALT_NUMBER ) {
内容来源于网络,如有侵权,请联系作者删除!