Top Banner
Let’s shake some trees!
11

Lets shake some trees

Jan 22, 2018

Download

Technology

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Lets shake some trees

Let’s shake some trees!

Page 2: Lets shake some trees

Commons

Models Services Components Helpers

Page 3: Lets shake some trees

“Inheritance is pure evil”

Page 4: Lets shake some trees
Page 5: Lets shake some trees

We need to shake trees!

“I’ll find out what you need”

“You tell me what you need”

Page 6: Lets shake some trees
Page 7: Lets shake some trees

The tools we need

Broccoli funnel

Recast

Page 8: Lets shake some trees

First pass

Included: [‘model1’]

Model1+

Model2

+

Model3

Page 9: Lets shake some trees

Recast

Second passIncluded: [‘model1’, ‘model2’]

Model1+

Model2

Page 10: Lets shake some trees

Recast

.parse()

Modify

Source

.print()

AST

Page 11: Lets shake some trees

Abstract Syntax Trees

“In computer science, an abstract syntax tree (AST), or just syntax tree, is a tree representation of the abstract syntactic structure of

source code written in a programming language.”

Demo