Struct AST

Source
pub struct AST { /* private fields */ }

Implementations§

Source§

impl AST

Source

pub fn associate_end_lines(&mut self) -> Result<(), String>

Source

pub fn build(&mut self) -> Result<(), String>

Source

pub fn print_tree(&self)

Source

pub fn output_tree(&self) -> String

Source

pub fn print_nodes_info(&self) -> Result<(), String>

Source

pub fn extract_packages(code_text: &str) -> Vec<NodeData>

Source

pub fn parse_condition_expression(condition_str: &str) -> ConditionExpr

Source

pub fn recursive_function( keyword_str: &str, condstring: String, index: usize, lst: &mut Vec<Expression>, ) -> Expression

Source

pub fn supersplitter( condstring_in: String, lst: &mut Vec<Expression>, ) -> Expression

Source

pub fn flag_setter( condstring: &str, index: usize, char: char, string_flag: i32, number_of_open_parenthesis: i32, number_of_closed_parenthesis: i32, ) -> (i32, i32, i32)

Source

pub fn flags_check( number_of_open_parenthesis: i32, number_of_closed_parenthesis: i32, string_flag: i32, ) -> bool

Source

pub fn is_parenthesis_exterior(expression: &str) -> bool

Source

pub fn is_expression_a_parenthesis(expression: &str) -> bool

Source

pub fn clean_code(raw_code: &str) -> String

Source

pub fn extract_all_nodes(code_text: &str) -> Vec<NodeData>

Source

pub fn leggitree(nodo: &Expression, level: u32, prefix: &str)

Auto Trait Implementations§

§

impl Freeze for AST

§

impl RefUnwindSafe for AST

§

impl Send for AST

§

impl Sync for AST

§

impl Unpin for AST

§

impl UnwindSafe for AST

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.