Struct darklua_core::generator::TokenBasedLuaGenerator
source · pub struct TokenBasedLuaGenerator<'a> { /* private fields */ }
Expand description
This implementation of LuaGenerator outputs the AST nodes from the tokens associated with each of them.
Implementations§
Trait Implementations§
source§impl<'a> Clone for TokenBasedLuaGenerator<'a>
impl<'a> Clone for TokenBasedLuaGenerator<'a>
source§fn clone(&self) -> TokenBasedLuaGenerator<'a>
fn clone(&self) -> TokenBasedLuaGenerator<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for TokenBasedLuaGenerator<'a>
impl<'a> Debug for TokenBasedLuaGenerator<'a>
source§impl<'a> LuaGenerator for TokenBasedLuaGenerator<'a>
impl<'a> LuaGenerator for TokenBasedLuaGenerator<'a>
source§fn into_string(self) -> String
fn into_string(self) -> String
Consumes the LuaGenerator and produce a String object.
fn write_block(&mut self, block: &Block)
fn write_assign_statement(&mut self, assign: &AssignStatement)
fn write_do_statement(&mut self, do_statement: &DoStatement)
fn write_compound_assign(&mut self, assign: &CompoundAssignStatement)
fn write_generic_for(&mut self, generic_for: &GenericForStatement)
fn write_if_statement(&mut self, if_statement: &IfStatement)
fn write_function_statement(&mut self, function: &FunctionStatement)
fn write_last_statement(&mut self, statement: &LastStatement)
fn write_local_assign(&mut self, assign: &LocalAssignStatement)
fn write_local_function(&mut self, function: &LocalFunctionStatement)
fn write_numeric_for(&mut self, numeric_for: &NumericForStatement)
fn write_repeat_statement(&mut self, repeat: &RepeatStatement)
fn write_while_statement(&mut self, while_statement: &WhileStatement)
fn write_expression(&mut self, expression: &Expression)
fn write_binary_expression(&mut self, binary: &BinaryExpression)
fn write_unary_expression(&mut self, unary: &UnaryExpression)
fn write_function(&mut self, function: &FunctionExpression)
fn write_function_call(&mut self, call: &FunctionCall)
fn write_field(&mut self, field: &FieldExpression)
fn write_index(&mut self, index: &IndexExpression)
fn write_if_expression(&mut self, if_expression: &IfExpression)
fn write_table(&mut self, table: &TableExpression)
fn write_table_entry(&mut self, entry: &TableEntry)
fn write_number(&mut self, number: &NumberExpression)
fn write_tuple_arguments(&mut self, arguments: &TupleArguments)
fn write_string(&mut self, string: &StringExpression)
fn write_identifier(&mut self, identifier: &Identifier)
fn write_parenthese(&mut self, parenthese: &ParentheseExpression)
fn write_statement(&mut self, statement: &Statement)
fn write_variable(&mut self, variable: &Variable)
fn write_prefix(&mut self, prefix: &Prefix)
fn write_arguments(&mut self, arguments: &Arguments)
Auto Trait Implementations§
impl<'a> RefUnwindSafe for TokenBasedLuaGenerator<'a>
impl<'a> Send for TokenBasedLuaGenerator<'a>
impl<'a> Sync for TokenBasedLuaGenerator<'a>
impl<'a> Unpin for TokenBasedLuaGenerator<'a>
impl<'a> UnwindSafe for TokenBasedLuaGenerator<'a>
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<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more