Jennie.Parser (jennie v0.9.0)

Converts tokens into an Abstract Syntax Tree.

AST node types:

  • {:text, binary}
  • {:var, keys, escaped?}
  • {:section, keys, children}
  • {:inverted, keys, children}
  • {:partial, name, indent}

Summary

Functions

Parse tokens into a list of AST nodes.

Functions

parse(tokens)

@spec parse([tuple()]) :: [tuple()]

Parse tokens into a list of AST nodes.