SmartCSS

1,669 views

Published on

Introduce SmartCSS project, Mitaka PG cafe 2009/07/23

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,669
On SlideShare
0
From Embeds
0
Number of Embeds
70
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

SmartCSS

  1. 1. kmyacc - php CSS Ryo Miyake - nekoya - (id:studio-m)
  2. 2. • nekoya • id:studio-m • http://twitter.com/nekoya • http://wassr.jp/user/nekoya • PGcafe
  3. 3. • • • • Perl • PHP
  4. 4. SmartCSS http://github.com/nekoya/SmartCSS/tree/master github • • • • CLI
  5. 5. SmartCSS • PHP • CGI •
  6. 6. CSS
  7. 7. CSS #header { background:#333; } #header p { margin:0; } #header ul.menu { list-style:none; } #header ul.menu li { color:#333; background:#fff; }
  8. 8. CSS #header { background:#333; } #header p { margin:0; } #header ul.menu { list-style:none; } #header ul.menu li { color:#333; background:#fff; }
  9. 9. #header { background:#333; p { margin:0; } ul.menu { list-style:none; li { color:#333; background:#fff; } } }
  10. 10. #header { background:#333; } #footer { background:#333; } #content p { color:#333; } #header #footer
  11. 11. :%s/#333/#666/g
  12. 12. #header { background:#666; } #footer { background:#666; } #content p { color:#666; ← } …
  13. 13. [% bg = “#333” %] [% text = “#333” %] #header { background:[% bg %]; } #footer { background: [% bg %]; } #content p { color: [% text %]; }
  14. 14. [% bg = “#333” %] [% IMPORT ʻheader.scssʼ %] #content { margin:0; padding:0; } [% IMPORT ʻfooter.scssʼ %] • CSS @import •1 HTTP • •
  15. 15. kmyacc LALR http://www005.upp.so-net.ne.jp/kmori/kmyacc/
  16. 16. What is KMyacc? kmyacc yacc bison LALR yacc C Java, JavaScript,Perl
  17. 17. kmyacc - php PHP yacc - bto http://blog.bz2.jp/archives/2008/01/phpyacc.html kmyacc PHP - muddy brown thang id:moriyoshi http://d.hatena.ne.jp/moriyoshi/20081004/1223132173 kmyacc $ - muddy brown thang http://d.hatena.ne.jp/moriyoshi/20081004/1223137368
  18. 18. kmyacc Lexer Parser kmyacc NodeTree evaluate
  19. 19. Ruby http://i.loveruby.net/ja/rhg/book/ kmyacc BASIC - http://www.hakkaku.net/articles/20080307-158
  20. 20. • → Lexer • →
  21. 21. Enjoy !

×