Home
last modified time | relevance | path

Searched refs:match_range (Results 1 – 11 of 11) sorted by relevance

/external/rust/crates/pest_generator/src/
Dgenerator.rs118 insert_builtin!(builtins, ASCII_DIGIT, state.match_range('0'..'9')); in generate_builtin_rules()
119 insert_builtin!(builtins, ASCII_NONZERO_DIGIT, state.match_range('1'..'9')); in generate_builtin_rules()
120 insert_builtin!(builtins, ASCII_BIN_DIGIT, state.match_range('0'..'1')); in generate_builtin_rules()
121 insert_builtin!(builtins, ASCII_OCT_DIGIT, state.match_range('0'..'7')); in generate_builtin_rules()
126 .match_range('0'..'9') in generate_builtin_rules()
127 .or_else(|state| state.match_range('a'..'f')) in generate_builtin_rules()
128 .or_else(|state| state.match_range('A'..'F')) in generate_builtin_rules()
130 insert_builtin!(builtins, ASCII_ALPHA_LOWER, state.match_range('a'..'z')); in generate_builtin_rules()
131 insert_builtin!(builtins, ASCII_ALPHA_UPPER, state.match_range('A'..'Z')); in generate_builtin_rules()
136 .match_range('a'..'z') in generate_builtin_rules()
[all …]
/external/rust/crates/pest/tests/
Djson.rs173 .match_range('0'..'9') in parse()
174 .or_else(|s| s.match_range('a'..'f')) in parse()
175 .or_else(|s| s.match_range('A'..'F')) in parse()
187 .and_then(|s| s.match_range('0'..'9')) in parse()
188 .and_then(|s| s.repeat(|s| s.match_range('0'..'9'))) in parse()
201 s.match_range('1'..'9') in parse()
202 .and_then(|s| s.repeat(|s| s.match_range('0'..'9'))) in parse()
Dcalculator.rs74 s.match_range('1'..'9') in parse()
75 .and_then(|s| s.repeat(|s| s.match_range('0'..'9'))) in parse()
/external/rust/crates/pest/src/
Dposition.rs440 pub(crate) fn match_range(&mut self, range: Range<char>) -> bool { in match_range() method
617 fn match_range() { in match_range() function
620 assert!(Position::new(input, 0).unwrap().match_range('a'..'c')); in match_range()
621 assert!(Position::new(input, 0).unwrap().match_range('b'..'b')); in match_range()
622 assert!(!Position::new(input, 0).unwrap().match_range('a'..'a')); in match_range()
623 assert!(!Position::new(input, 0).unwrap().match_range('c'..'c')); in match_range()
624 assert!(Position::new(input, 0).unwrap().match_range('a'..'嗨')); in match_range()
Dparser_state.rs685 pub fn match_range(mut self: Box<Self>, range: Range<char>) -> ParseResult<Box<Self>> { in match_range() method
686 if self.position.match_range(range) { in match_range()
/external/rust/crates/pest_meta/src/
Dgrammar.rs2match_range ('0' .. '9') . and_then (| state | { state . repeat (| state | { state . match_range (… in skip()
/external/antlr/runtime/Perl5/lib/ANTLR/Runtime/
DLexer.pm186 sub match_range { method in ANTLR::Runtime::Lexer
/external/antlr/runtime/Ruby/lib/antlr3/template/
Dgroup-file-lexer.rb364 match_range( 0x41, 0x5a )
/external/antlr/runtime/Ruby/lib/antlr3/
Drecognizers.rb1104 def match_range( min, max )
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Perl5/
DPerl5.stg688 $self->match_range(<a>,<b>); <checkRuleBacktrackFailure()>
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Ruby/
DRuby.stg1346 match_range( <a>, <b> )