Enum pax_compiler::parsing::Rule
source · pub enum Rule {
Show 96 variants
EOI,
WHITESPACE,
COMMENT,
pax_component_definition,
empty,
block_level_error,
root_tag_pair,
any_tag_pair,
tag_error,
open_tag,
open_tag_error,
closing_tag,
self_closing_tag,
attribute_key_value_pair_error,
matched_tag,
inner_nodes,
inner_tag_error,
identifier,
pascal_identifier,
attribute_key_value_pair,
attribute_event_id,
attribute_event_binding,
any_template_value,
node_inner_content,
string,
inner,
char,
inner_templated,
inner_templated_dynamic,
settings_block_declaration,
selector_block_error,
selector_block,
literal_object,
selector,
settings_key_value_pair,
settings_key,
settings_value,
handlers_block_declaration,
handler_key_value_pair_error,
handlers_key_value_pair,
handlers_key,
handlers_value,
literal_function,
function_list,
literal_value,
literal_number_with_unit,
literal_number,
literal_number_integer,
literal_number_float,
literal_number_unit,
literal_tuple,
literal_boolean,
literal_enum_value,
literal_enum_args_list,
literal_tuple_access,
expression_body,
expression_wrapped,
expression_body_error,
expression_grouped,
xo_primary,
xo_prefix,
xo_neg,
xo_bool_not,
xo_infix,
xo_add,
xo_bool_and,
xo_bool_or,
xo_div,
xo_exp,
xo_mod,
xo_mul,
xo_rel_eq,
xo_rel_gt,
xo_rel_gte,
xo_rel_lt,
xo_rel_lte,
xo_rel_neq,
xo_sub,
xo_tern_then,
xo_tern_else,
xo_range,
xo_range_exclusive,
xo_literal,
xo_object,
xo_object_settings_key_value_pair,
xo_symbol,
xo_tuple,
xo_list,
xo_function_call,
xo_function_args_list,
statement_control_flow,
statement_if,
statement_for,
statement_slot,
statement_for_predicate_declaration,
statement_for_source,
}
Expand description
Variants§
EOI
End-of-input
WHITESPACE
COMMENT
pax_component_definition
/// ////// ////// BEGIN TEMPLATE ///
empty
block_level_error
root_tag_pair
any_tag_pair
tag_error
open_tag
open_tag_error
closing_tag
self_closing_tag
attribute_key_value_pair_error
matched_tag
inner_nodes
inner_tag_error
identifier
pascal_identifier
attribute_key_value_pair
attribute_event_id
attribute_event_binding
any_template_value
node_inner_content
string
inner
char
inner_templated
inner_templated_dynamic
settings_block_declaration
/// ////// ////// BEGIN SETTINGS ///
selector_block_error
selector_block
literal_object
selector
settings_key_value_pair
settings_key
settings_value
handlers_block_declaration
/// ////// ////// BEGIN HANDLERS ///
handler_key_value_pair_error
handlers_key_value_pair
handlers_key
handlers_value
literal_function
function_list
literal_value
literal_number_with_unit
literal_number
literal_number_integer
literal_number_float
literal_number_unit
literal_tuple
literal_boolean
literal_enum_value
literal_enum_args_list
literal_tuple_access
expression_body
/// ////// ////// BEGIN EXPRESSIONS This sub-grammar describes PAXEL, the Pax Expression Language ///
expression_wrapped
expression_body_error
expression_grouped
xo_primary
xo_prefix
xo_neg
xo_bool_not
xo_infix
xo_add
xo_bool_and
xo_bool_or
xo_div
xo_exp
xo_mod
xo_mul
xo_rel_eq
xo_rel_gt
xo_rel_gte
xo_rel_lt
xo_rel_lte
xo_rel_neq
xo_sub
xo_tern_then
xo_tern_else
xo_range
xo_range_exclusive
xo_literal
xo_object
xo_object_settings_key_value_pair
xo_symbol
xo_tuple
xo_list
xo_function_call
xo_function_args_list
statement_control_flow
/// ////// ////// BEGIN CONTROL FLOW ///
statement_if
statement_for
statement_slot
statement_for_predicate_declaration
statement_for_source
Implementations§
Trait Implementations§
source§impl Ord for Rule
impl Ord for Rule
source§impl PartialEq for Rule
impl PartialEq for Rule
source§impl PartialOrd for Rule
impl PartialOrd for Rule
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Rule
impl Eq for Rule
impl StructuralEq for Rule
impl StructuralPartialEq for Rule
Auto Trait Implementations§
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnwindSafe for Rule
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.