Your SlideShare is downloading. ×
Making DSL with []
Making DSL with []
Making DSL with []
Making DSL with []
Making DSL with []
Making DSL with []
Making DSL with []
Making DSL with []
Making DSL with []
Making DSL with []
Making DSL with []
Making DSL with []
Making DSL with []
Making DSL with []
Making DSL with []
Making DSL with []
Making DSL with []
Making DSL with []
Making DSL with []
Making DSL with []
Making DSL with []
Making DSL with []
Making DSL with []
Making DSL with []
Making DSL with []
Making DSL with []
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Making DSL with []

2,837

Published on

0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
2,837
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
9
Comments
0
Likes
2
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. @yuya_takeyama
  • 2. Domain Specific Languages (Martin Fowler)
  • 3. [ "foo", "bar", "hoge" => "piyo"]
  • 4. array(3) { [0]=> string(3) "foo" [1]=> string(3) "bar" ["hoge"]=> string(4) "piyo"}
  • 5. public $id = array( type => int, primary => true, serial => true);public $name = array( type =>string, required => true, unique => true);public $birthday = array( type => date);
  • 6. public $id = [ int, primary => true, serial => true];public $name = [ string, required => true, unique => true];public $birthday = [date];
  • 7. [begin, [define, fib, [lambda, [x], [if, [<, :x, 2], :x, [+, [fib, [-, :x, 2]], [fib, [-, :x, 1]]]]]], [print, fib(10) = ], [println, [fib, 10]]] => fib(10) = 55

×