Sketching environment and AST