org.unlaxer.parser.clang.IdentifierParser Maven / Gradle / Ivy
package org.unlaxer.parser.clang;
import java.util.List;
import org.unlaxer.Name;
import org.unlaxer.parser.Parser;
import org.unlaxer.parser.Parsers;
import org.unlaxer.parser.combinator.LazyChain;
import org.unlaxer.parser.combinator.ZeroOrMore;
import org.unlaxer.parser.posix.AlphabetNumericUnderScoreParser;
import org.unlaxer.parser.posix.AlphabetUnderScoreParser;
public class IdentifierParser extends LazyChain {
public IdentifierParser() {
super();
}
public IdentifierParser(Name name) {
super(name);
}
@Override
public List getLazyParsers() {
return
new Parsers(
Parser.get(AlphabetUnderScoreParser.class),
new ZeroOrMore(
Parser.get(AlphabetNumericUnderScoreParser.class)
)
);
}
} © 2015 - 2025 Weber Informatics LLC | Privacy Policy