module Z::Ast

Overview

Print AST in graphviz's dot format

makedot() { make ; z -d "$1" |tee ast.gv && dot -Tpng ast.gv -o ast.png && firefox ast.png; }
makedot 'f(){a=b=5;t=b+5;foo();return t+1;}b(x){}'

Defined in:

ast/dot.cr
ast/node.cr
ast/printer.cr
ast/visitor.cr

Macro Summary

Macro Detail

macro ast_node(name, *properties) #

[View source]