本文整理汇总了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()));
}
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:8,代码来源:Parser.java
示例2: Identifier
import org.parboiled.annotations.MemoMismatches; //导入依赖的package包/类
@SuppressSubnodes
@MemoMismatches
Rule Identifier() {
return Sequence(
TestNot(Keyword()),
Sequence(Sequence(IdentifierStartLetter(), ZeroOrMore(LetterOrDigit())), Identifier.of()),
Spacing());
}
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:9,代码来源:Parser.java
示例3: TypeIdentifer
import org.parboiled.annotations.MemoMismatches; //导入依赖的package包/类
@SuppressSubnodes
@MemoMismatches
Rule TypeIdentifer() {
return Sequence(TestNot(Keyword()),
Sequence(Sequence(TypeStartLetter(), ZeroOrMore(LetterOrDigit())), TypeIdentifier.of()),
Spacing());
}
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:8,代码来源:Parser.java
示例4: StringLiteral
import org.parboiled.annotations.MemoMismatches; //导入依赖的package包/类
@SuppressSubnodes
@MemoMismatches
Rule StringLiteral() {
return Sequence("'", ZeroOrMore(NoneOf("'")), StringLiteral.of(), "'", Spacing());
}
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:6,代码来源:Parser.java
示例5: Letter
import org.parboiled.annotations.MemoMismatches; //导入依赖的package包/类
@MemoMismatches
Rule Letter() {
return FirstOf(CharRange('a', 'z'), CharRange('A', 'Z'), '_', '$');
}
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:5,代码来源:Parser.java
示例6: LetterOrDigit
import org.parboiled.annotations.MemoMismatches; //导入依赖的package包/类
@MemoMismatches
Rule LetterOrDigit() {
return FirstOf(CharRange('a', 'z'), CharRange('A', 'Z'), CharRange('0', '9'), '_', '$');
}
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:5,代码来源:Parser.java
示例7: SelectorPattern
import org.parboiled.annotations.MemoMismatches; //导入依赖的package包/类
@MemoMismatches
Rule SelectorPattern() {
return OneOrMore(new SelectorMatcher());
}
开发者ID:edmocosta,项目名称:queryfy,代码行数:5,代码来源:QueryParser.java
示例8: E
import org.parboiled.annotations.MemoMismatches; //导入依赖的package包/类
@MemoMismatches
Rule E() {
return EMPTY;
}
开发者ID:parboiled1,项目名称:parboiled,代码行数:5,代码来源:ParserHierarchyTest.java
示例9: FirstChoice
import org.parboiled.annotations.MemoMismatches; //导入依赖的package包/类
@MemoMismatches
public Rule FirstChoice() {
return FirstOf("ABC", "CBA");
}
开发者ID:parboiled1,项目名称:parboiled,代码行数:5,代码来源:MemoMismatchesMatcherTest.java
示例10: SevenOrNine
import org.parboiled.annotations.MemoMismatches; //导入依赖的package包/类
@Override
@MemoMismatches
Rule SevenOrNine() {
return super.SevenOrNine();
}
开发者ID:parboiled1,项目名称:parboiled,代码行数:6,代码来源:MemoMismatchesTest.java
示例11: letterOrDigit
import org.parboiled.annotations.MemoMismatches; //导入依赖的package包/类
@MemoMismatches
Rule letterOrDigit() {
return FirstOf(letter(), digit());
}
开发者ID:thomas-p-wilson,项目名称:php4j,代码行数:5,代码来源:BasicParser.java
示例12: hexNumeral
import org.parboiled.annotations.MemoMismatches; //导入依赖的package包/类
@SuppressSubnodes
@MemoMismatches
Rule hexNumeral() {
return Sequence('0', IgnoreCase('x'), OneOrMore(hexDigit()));
}
开发者ID:thomas-p-wilson,项目名称:php4j,代码行数:6,代码来源:BasicParser.java
示例13: Inline
import org.parboiled.annotations.MemoMismatches; //导入依赖的package包/类
@MemoMismatches
public Rule Inline() {
return Sequence(checkForParsingTimeout(), NonLinkInline());
}
开发者ID:asciidocj,项目名称:asciidocj,代码行数:5,代码来源:AsciiDocParser.java
示例14: Endline
import org.parboiled.annotations.MemoMismatches; //导入依赖的package包/类
@MemoMismatches
public Rule Endline() {
return NodeSequence(FirstOf(LineBreak(), TerminalEndline(),
NormalEndline()));
}
开发者ID:asciidocj,项目名称:asciidocj,代码行数:6,代码来源:AsciiDocParser.java
示例15: NormalChar
import org.parboiled.annotations.MemoMismatches; //导入依赖的package包/类
@MemoMismatches
public Rule NormalChar() {
return Sequence(TestNot(Spacechar()), NotNewline(), ANY);
}
开发者ID:asciidocj,项目名称:asciidocj,代码行数:5,代码来源:AsciiDocParser.java
注:本文中的org.parboiled.annotations.MemoMismatches类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论