本文整理汇总了Java中org.parboiled.annotations.MemoMismatches类的典型用法代码示例。如果您正苦于以下问题:Java MemoMismatches类的具体用法?Java MemoMismatches怎么用?Java MemoMismatches使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MemoMismatches类属于org.parboiled.annotations包,在下文中一共展示了MemoMismatches类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: Keyword
import org.parboiled.annotations.MemoMismatches; //导入依赖的package包/类
@MemoMismatches
@SuppressNode
Rule Keyword() {
return Sequence(
FirstOf(KEYWORD_IN, KEYWORD_FOR, KEYWORD_LET, KEYWORD_IF, KEYWORD_ELSE, KEYWORD_TEMPLATE, KEYWORD_PUBLIC),
TestNot(LetterOrDigit()));
}
示例2: Identifier
import org.parboiled.annotations.MemoMismatches; //导入依赖的package包/类
@SuppressSubnodes
@MemoMismatches
Rule Identifier() {
return Sequence(
TestNot(Keyword()),
Sequence(Sequence(IdentifierStartLetter(), ZeroOrMore(LetterOrDigit())), Identifier.of()),
Spacing());
}
示例3: TypeIdentifer
import org.parboiled.annotations.MemoMismatches; //导入依赖的package包/类
@SuppressSubnodes
@MemoMismatches
Rule TypeIdentifer() {
return Sequence(TestNot(Keyword()),
Sequence(Sequence(TypeStartLetter(), ZeroOrMore(LetterOrDigit())), TypeIdentifier.of()),
Spacing());
}
示例4: StringLiteral
import org.parboiled.annotations.MemoMismatches; //导入依赖的package包/类
@SuppressSubnodes
@MemoMismatches
Rule StringLiteral() {
return Sequence("'", ZeroOrMore(NoneOf("'")), StringLiteral.of(), "'", Spacing());
}
示例5: Letter
import org.parboiled.annotations.MemoMismatches; //导入依赖的package包/类
@MemoMismatches
Rule Letter() {
return FirstOf(CharRange('a', 'z'), CharRange('A', 'Z'), '_', '$');
}
示例6: LetterOrDigit
import org.parboiled.annotations.MemoMismatches; //导入依赖的package包/类
@MemoMismatches
Rule LetterOrDigit() {
return FirstOf(CharRange('a', 'z'), CharRange('A', 'Z'), CharRange('0', '9'), '_', '$');
}
示例7: SelectorPattern
import org.parboiled.annotations.MemoMismatches; //导入依赖的package包/类
@MemoMismatches
Rule SelectorPattern() {
return OneOrMore(new SelectorMatcher());
}
示例8: E
import org.parboiled.annotations.MemoMismatches; //导入依赖的package包/类
@MemoMismatches
Rule E() {
return EMPTY;
}
示例9: FirstChoice
import org.parboiled.annotations.MemoMismatches; //导入依赖的package包/类
@MemoMismatches
public Rule FirstChoice() {
return FirstOf("ABC", "CBA");
}
示例10: SevenOrNine
import org.parboiled.annotations.MemoMismatches; //导入依赖的package包/类
@Override
@MemoMismatches
Rule SevenOrNine() {
return super.SevenOrNine();
}
示例11: letterOrDigit
import org.parboiled.annotations.MemoMismatches; //导入依赖的package包/类
@MemoMismatches
Rule letterOrDigit() {
return FirstOf(letter(), digit());
}
示例12: hexNumeral
import org.parboiled.annotations.MemoMismatches; //导入依赖的package包/类
@SuppressSubnodes
@MemoMismatches
Rule hexNumeral() {
return Sequence('0', IgnoreCase('x'), OneOrMore(hexDigit()));
}
示例13: Inline
import org.parboiled.annotations.MemoMismatches; //导入依赖的package包/类
@MemoMismatches
public Rule Inline() {
return Sequence(checkForParsingTimeout(), NonLinkInline());
}
示例14: Endline
import org.parboiled.annotations.MemoMismatches; //导入依赖的package包/类
@MemoMismatches
public Rule Endline() {
return NodeSequence(FirstOf(LineBreak(), TerminalEndline(),
NormalEndline()));
}
示例15: NormalChar
import org.parboiled.annotations.MemoMismatches; //导入依赖的package包/类
@MemoMismatches
public Rule NormalChar() {
return Sequence(TestNot(Spacechar()), NotNewline(), ANY);
}