FusionDSL v0.0.1-dev FusionDsl.Processor.AstProcessor View Source
Functions for converting tokens to Abstract syntax trees
Ast structure:
{action_name_atom, [line_number], args_list}
Link to this section Summary
Link to this section Functions
Link to this function
generate_ast(config, tokens)
View Source
generate_ast(FusionDsl.Processor.CompileConfig.t(), [[String.t()]]) :: {:ok, FusionDsl.Processor.CompileConfig.t()}
Generates an ast array of program
Parameters
- config: configuration of program
- tokens: list of line splitted tokens