class Crylox::ASTPrinter
- Crylox::ASTPrinter
- Reference
- Object
Overview
Since crystal supports multiple dispatch we don't need to make visitor pattern, Instead just make prints for each Expr type
Defined in:
ast_printer.crInstance Method Summary
- #parenthesize(name : String, *exprs : Expr)
- #print(expr : Binary) : String
- #print(expr : Grouping) : String
- #print(expr : Literal) : String
- #print(expr : Unary)
- #print(stmt : Print)
- #print(stmt : Stmt)
- #print(expr : Expr)