Home
last modified time | relevance | path

Searched refs:hir (Results 1 - 19 of 19) sorted by relevance

/third_party/rust/crates/regex/regex-syntax/src/
H A Dparser.rs2 use crate::hir;
13 /// [HIR `TranslatorBuilder`](hir/translate/struct.TranslatorBuilder.html).
17 hir: hir::translate::TranslatorBuilder,
28 Parser { ast: self.ast.build(), hir: self.hir.build() } in build()
93 self.hir.allow_invalid_utf8(yes); in allow_invalid_utf8()
115 self.hir.case_insensitive(yes); in case_insensitive()
124 self.hir.multi_line(yes); in multi_line()
133 self.hir in dot_matches_new_line()
[all...]
H A Derror.rs7 use crate::hir;
20 Translate(hir::Error),
36 impl From<hir::Error> for Error {
37 fn from(err: hir::Error) -> Error { in from()
93 impl<'e> From<&'e hir::Error> for Formatter<'e, hir::ErrorKind> {
94 fn from(err: &'e hir::Error) -> Self { in from()
H A Dunicode.rs5 use crate::hir;
288 pub fn class(query: ClassQuery<'_>) -> Result<hir::ClassUnicode> { in class()
296 let mut class = hir::ClassUnicode::empty();
325 pub fn perl_word() -> Result<hir::ClassUnicode> { in perl_word()
327 fn imp() -> Result<hir::ClassUnicode> { in perl_word()
332 fn imp() -> Result<hir::ClassUnicode> { in perl_word()
343 pub fn perl_space() -> Result<hir::ClassUnicode> { in perl_space()
345 fn imp() -> Result<hir::ClassUnicode> { in perl_space()
350 fn imp() -> Result<hir::ClassUnicode> { in perl_space()
356 fn imp() -> Result<hir in perl_space()
[all...]
H A Dlib.rs13 * [`Hir`](hir/struct.Hir.html) is the high-level intermediate representation
27 * A [`hir::translate::Translator`](hir/translate/struct.Translator.html)
28 converts an [`Ast`](ast/enum.Ast.html) to a [`Hir`](hir/struct.Hir.html).
41 use regex_syntax::hir::{self, Hir};
43 let hir = Parser::new().parse("a|b").unwrap();
44 assert_eq!(hir, Hir::alternation(vec![
45 Hir::literal(hir::Literal::Unicode('a')),
46 Hir::literal(hir::Literal::Unicode('b')),
85 [literal extraction from `Hir` values](hir/litera
168 pub mod hir; global() modules
[all...]
/third_party/rust/crates/regex/regex-syntax/src/hir/
H A Dprint.rs7 use crate::hir::visitor::{self, Visitor};
8 use crate::hir::{self, Hir, HirKind};
67 pub fn print<W: fmt::Write>(&mut self, hir: &Hir, wtr: W) -> fmt::Result { in print()
68 visitor::visit(hir, Writer { wtr }) in print()
85 fn visit_pre(&mut self, hir: &Hir) -> fmt::Result { in visit_pre()
86 match *hir.kind() { in visit_pre()
91 HirKind::Literal(hir::Literal::Unicode(c)) => { in visit_pre()
94 HirKind::Literal(hir::Literal::Byte(b)) => { in visit_pre()
97 HirKind::Class(hir::Class::Unicode(ref cls)) => { in visit_pre()
110 HirKind::Class(hir in visit_pre()
[all...]
H A Dtranslate.rs9 use crate::hir::{self, Error, ErrorKind, Hir};
149 ClassUnicode(hir::ClassUnicode),
157 ClassBytes(hir::ClassBytes),
197 fn unwrap_class_unicode(self) -> hir::ClassUnicode { in unwrap_class_unicode()
210 fn unwrap_class_bytes(self) -> hir::ClassBytes { in unwrap_class_bytes()
248 let cls = hir::ClassUnicode::empty(); in visit_pre()
251 let cls = hir::ClassBytes::empty(); in visit_pre()
305 let hcls = hir::Class::Unicode(cls); in visit_post()
309 let hcls = hir::Class::Bytes(cls); in visit_post()
314 let cls = hir in visit_post()
[all...]
H A Dvisitor.rs1 use crate::hir::{self, Hir, HirKind};
59 pub fn visit<V: Visitor>(hir: &Hir, visitor: V) -> Result<V::Output, V::Err> { in visit()
60 HeapVisitor::new().visit(hir, visitor) in visit()
76 Repetition(&'a hir::Repetition),
79 Group(&'a hir::Group),
105 mut hir: &'a Hir, in visit()
112 visitor.visit_pre(hir)?; in visit()
113 if let Some(x) = self.induct(hir) { in visit()
115 self.stack.push((hir, x)); in visit()
116 hir in visit()
[all...]
H A Dmod.rs12 use crate::hir::interval::{Interval, IntervalSet, IntervalSetIter};
15 pub use crate::hir::visitor::{visit, Visitor};
354 info.set_always_utf8(rep.hir.is_always_utf8()); in repetition()
355 info.set_all_assertions(rep.hir.is_all_assertions()); in repetition()
359 !rep.is_match_empty() && rep.hir.is_anchored_start(), in repetition()
362 !rep.is_match_empty() && rep.hir.is_anchored_end(), in repetition()
365 !rep.is_match_empty() && rep.hir.is_anchored_start(), in repetition()
368 !rep.is_match_empty() && rep.hir.is_anchored_end(), in repetition()
370 info.set_any_anchored_start(rep.hir.is_any_anchored_start()); in repetition()
371 info.set_any_anchored_end(rep.hir in repetition()
[all...]
/third_party/rust/crates/regex/regex-syntax/src/hir/literal/
H A Dmod.rs11 use crate::hir::{self, Hir, HirKind};
451 pub fn add_char_class(&mut self, cls: &hir::ClassUnicode) -> bool { in add_char_class()
459 fn add_char_class_reverse(&mut self, cls: &hir::ClassUnicode) -> bool { in add_char_class_reverse()
465 cls: &hir::ClassUnicode, in _add_char_class()
496 pub fn add_byte_class(&mut self, cls: &hir::ClassBytes) -> bool { in add_byte_class()
584 HirKind::Literal(hir::Literal::Unicode(c)) => { in prefixes()
588 HirKind::Literal(hir::Literal::Byte(b)) => { in prefixes()
591 HirKind::Class(hir::Class::Unicode(ref cls)) => { in prefixes()
596 HirKind::Class(hir::Class::Bytes(ref cls)) => { in prefixes()
601 HirKind::Group(hir in prefixes()
[all...]
/third_party/mesa3d/src/compiler/glsl/
H A Dast.h63 virtual ir_rvalue *hir(exec_list *instructions,
240 virtual ir_rvalue *hir(exec_list *instructions,
327 virtual ir_rvalue *hir(exec_list *instructions,
423 * glsl_types), so the parser leaves it NULL. However, the ast-to-hir
425 * before hir() is called.
429 virtual ir_rvalue *hir(exec_list *instructions,
442 virtual ir_rvalue *hir(exec_list *instructions,
884 virtual ir_rvalue *hir(exec_list *instructions,
928 ir_rvalue *hir(exec_list *, struct _mesa_glsl_parse_state *);
964 virtual ir_rvalue *hir(exec_lis
[all...]
H A Dast_to_hir.cpp159 ast->hir(instructions, state); in _mesa_ast_to_hir()
1081 ast_node::hir(exec_list *instructions, struct _mesa_glsl_parse_state *state) in hir() function in ast_node
1104 (void)hir(instructions, state); in hir_no_rvalue()
1111 (void)hir(instructions, state); in hir_no_rvalue()
1217 ir_rvalue *val = expr->hir(instructions, state); in get_scalar_boolean_operand()
1313 ast_expression::hir(exec_list *instructions, in hir() function in ast_expression
1420 op[0] = this->subexpressions[0]->hir(instructions, state); in do_hir()
1421 op[1] = this->subexpressions[1]->hir(instructions, state); in do_hir()
1432 op[0] = this->subexpressions[0]->hir(instructions, state); in do_hir()
1442 op[0] = this->subexpressions[0]->hir(instruction in do_hir()
2277 ast_expression_statement::hir(exec_list *instructions, hir() function in ast_expression_statement
2299 ast_compound_statement::hir(exec_list *instructions, hir() function in ast_compound_statement
4951 ast_declarator_list::hir(exec_list *instructions, hir() function in ast_declarator_list
5880 ast_parameter_declarator::hir(exec_list *instructions, hir() function in ast_parameter_declarator
6056 ast_function::hir(exec_list *instructions, hir() function in ast_function
6409 ast_function_definition::hir(exec_list *instructions, hir() function in ast_function_definition
6468 ast_jump_statement::hir(exec_list *instructions, hir() function in ast_jump_statement
6634 ast_demote_statement::hir(exec_list *instructions, hir() function in ast_demote_statement
6653 ast_selection_statement::hir(exec_list *instructions, hir() function in ast_selection_statement
6741 ast_switch_statement::hir(exec_list *instructions, hir() function in ast_switch_statement
6881 ast_switch_body::hir(exec_list *instructions, hir() function in ast_switch_body
6895 ast_case_statement_list::hir(exec_list *instructions, hir() function in ast_case_statement_list
6959 ast_case_statement::hir(exec_list *instructions, hir() function in ast_case_statement
6980 ast_case_label_list::hir(exec_list *instructions, hir() function in ast_case_label_list
6991 ast_case_label::hir(exec_list *instructions, hir() function in ast_case_label
7162 ast_iteration_statement::hir(exec_list *instructions, hir() function in ast_iteration_statement
7267 ast_type_specifier::hir(exec_list *instructions, hir() function in ast_type_specifier
7857 ast_struct_specifier::hir(exec_list *instructions, hir() function in ast_struct_specifier
7973 ast_interface_block::hir(exec_list *instructions, hir() function in ast_interface_block
8743 ast_tcs_output_layout::hir(exec_list *instructions, hir() function in ast_tcs_output_layout
8800 ast_gs_input_layout::hir(exec_list *instructions, hir() function in ast_gs_input_layout
8855 ast_cs_input_layout::hir(exec_list *instructions, hir() function in ast_cs_input_layout
9139 ast_warnings_toggle::hir(exec_list *, hir() function in ast_warnings_toggle
[all...]
H A Dhir_field_selection.cpp38 op = expr->subexpressions[0]->hir(instructions, state); in _mesa_ast_field_selection_to_hir()
H A Dast_function.cpp51 ir_rvalue *result = ast->hir(instructions, state); in process_parameters()
771 ir_rvalue *outer_array_idx = idx->hir(instructions, state); in generate_array_index()
789 ir_rvalue *outer_array_idx = idx->hir(instructions, state); in generate_array_index()
1448 * have been taken care of in ast_function_expression::hir by breaking in emit_inline_vector_constructor()
2036 op = field->subexpressions[0]->hir(instructions, state); in handle_method()
2104 ast_function_expression::hir(exec_list *instructions, in hir() function in ast_function_expression
2208 ir_rvalue *result = ast->hir(instructions, state); in hir()
2531 ast_aggregate_initializer::hir(exec_list *instructions, in hir() function in ast_aggregate_initializer
H A Dast_type.cpp942 ir_rvalue *const ir = const_expression->hir(&dummy_instructions, state); in process_qualifier_constant()
999 ir_rvalue *const ir = const_expression->hir(&dummy_instructions, state); in process_qualifier_constant()
/third_party/rust/crates/regex/src/
H A Dcompile.rs7 use regex_syntax::hir::{self, Hir};
270 use regex_syntax::hir::HirKind::*; in c()
275 Literal(hir::Literal::Unicode(c)) => self.c_char(c), in c()
276 Literal(hir::Literal::Byte(b)) => { in c()
280 Class(hir::Class::Unicode(ref cls)) => self.c_class(cls.ranges()), in c()
281 Class(hir::Class::Bytes(ref cls)) => { in c()
289 char_ranges.push(hir::ClassUnicodeRange::new(s, e)); in c()
294 Anchor(hir::Anchor::StartLine) if self.compiled.is_reverse => { in c()
298 Anchor(hir::Anchor::StartLine) => { in c()
302 Anchor(hir in c()
[all...]
H A Dexec.rs8 use regex_syntax::hir::literal::Literals;
9 use regex_syntax::hir::Hir;
1550 use regex_syntax::hir::{HirKind, Literal}; in alternation_literals()
/third_party/rust/crates/regex/regex-debug/src/
H A Dmain.rs8 use regex_syntax::hir::literal::Literals;
9 use regex_syntax::hir::Hir;
14 regex-debug [options] hir <pattern>
135 let hir = parser.parse(&args.arg_pattern)?; in cmd_hir()
136 println!("{:#?}", hir); in cmd_hir()
221 use regex_syntax::hir::{self, HirKind}; in cmd_utf8_ranges()
225 let hir = ParserBuilder::new() in cmd_utf8_ranges()
228 let cls = match hir.into_kind() { in cmd_utf8_ranges()
229 HirKind::Class(hir::Class::Unicode(cls)) => cls, in cmd_utf8_ranges()
254 use regex_syntax::hir in cmd_utf8_ranges_rev()
[all...]
/third_party/rust/crates/regex/src/literal/
H A Dmod.rs9 use regex_syntax::hir::literal::Literals;
H A Dimp.rs5 use regex_syntax::hir::literal::{Literal, Literals};

Completed in 21 milliseconds