lets shake some trees

11
Let’s shake some trees!

Upload: aiyasamy-deepan-arasan-subbiah

Post on 22-Jan-2018

86 views

Category:

Technology


0 download

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