printASTTree function

void printASTTree(
  1. String expression,
  2. [int indents = 2]
)

Implementation

void printASTTree(String expression, [int indents=2]) {
  print('AST: ${expression}');
  Tokenizer tokenizer = Tokenizer();
  var tokens = tokenizer.tokenize(expression);
  printParsedTokens(tokens, indents);
}