forked from jasder/antlr
Update documentation
This commit is contained in:
parent
a37f8cf4f1
commit
29d71acef9
|
@ -56,7 +56,7 @@ public class DefaultErrorStrategy implements ANTLRErrorStrategy {
|
|||
/** The index into the input stream where the last error occurred.
|
||||
* This is used to prevent infinite loops where an error is found
|
||||
* but no token is consumed during recovery...another error is found,
|
||||
* ad naseum. This is a failsafe mechanism to guarantee that at least
|
||||
* ad nauseum. This is a failsafe mechanism to guarantee that at least
|
||||
* one token/tree node is consumed for two errors.
|
||||
*/
|
||||
protected int lastErrorIndex = -1;
|
||||
|
|
|
@ -73,12 +73,12 @@ public class UnbufferedCharStream implements CharStream {
|
|||
/** What is name or source of this char stream? */
|
||||
public String name;
|
||||
|
||||
/** Useful for sublasses that pull char from other than this.input. */
|
||||
/** Useful for subclasses that pull char from other than this.input. */
|
||||
public UnbufferedCharStream() {
|
||||
this(256);
|
||||
}
|
||||
|
||||
/** Useful for sublasses that pull char from other than this.input. */
|
||||
/** Useful for subclasses that pull char from other than this.input. */
|
||||
public UnbufferedCharStream(int bufferSize) {
|
||||
n = 0;
|
||||
data = new char[bufferSize];
|
||||
|
|
|
@ -31,7 +31,7 @@ package org.antlr.v4.codegen.model.decl;
|
|||
|
||||
import org.antlr.v4.codegen.OutputModelFactory;
|
||||
|
||||
/** public XContext X() { } */
|
||||
/** {@code public XContext X() { }} */
|
||||
public class ContextRuleGetterDecl extends ContextGetterDecl {
|
||||
public String ctxName;
|
||||
public ContextRuleGetterDecl(OutputModelFactory factory, String name, String ctxName) {
|
||||
|
|
|
@ -31,8 +31,8 @@ package org.antlr.v4.codegen.model.decl;
|
|||
|
||||
import org.antlr.v4.codegen.OutputModelFactory;
|
||||
|
||||
/** public List<XContext> X() { }
|
||||
* public XContext X(int i) { }
|
||||
/** {@code public List<XContext> X() { }
|
||||
* public XContext X(int i) { }}
|
||||
*/
|
||||
public class ContextRuleListGetterDecl extends ContextGetterDecl {
|
||||
public String ctxName;
|
||||
|
|
|
@ -31,7 +31,7 @@ package org.antlr.v4.codegen.model.decl;
|
|||
|
||||
import org.antlr.v4.codegen.OutputModelFactory;
|
||||
|
||||
/** public Token X() { } */
|
||||
/** {@code public Token X() { }} */
|
||||
public class ContextTokenGetterDecl extends ContextGetterDecl {
|
||||
public ContextTokenGetterDecl(OutputModelFactory factory, String name) {
|
||||
super(factory, name);
|
||||
|
|
|
@ -31,8 +31,8 @@ package org.antlr.v4.codegen.model.decl;
|
|||
|
||||
import org.antlr.v4.codegen.OutputModelFactory;
|
||||
|
||||
/** public List<Token> X() { }
|
||||
* public Token X(int i) { }
|
||||
/** {@code public List<Token> X() { }
|
||||
* public Token X(int i) { }}
|
||||
*/
|
||||
public class ContextTokenListGetterDecl extends ContextGetterDecl {
|
||||
public ContextTokenListGetterDecl(OutputModelFactory factory, String name) {
|
||||
|
|
Loading…
Reference in New Issue