Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
ingydotnet committed Jun 16, 2010
1 parent aec4d02 commit 3ed4ce9
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 27 deletions.
29 changes: 25 additions & 4 deletions slides.vroom
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,21 @@ Including this Talk!!
* SPUG
* Inline.pm

+
Inline::ASM Inline::Awk Inline::BC Inline::Basic Inline::Befunge Inline::C Inline::CPP Inline::CPR Inline::Echo Inline::Files Inline::Filters Inline::Flex Inline::Foo Inline::Guile Inline::Interp Inline::Java Inline::Lua Inline::MakeMaker Inline::MakePdlppInstallable Inline::Mason Inline::Module Inline::MonoCS Inline::MzScheme Inline::Nouse Inline::Octave Inline::Pdlpp Inline::Perl Inline::Pugs Inline::Python Inline::Rakudo Inline::Ruby Inline::SLang Inline::SMITH Inline::Select Inline::Spew Inline::Struct Inline::TT Inline::Tcl Inline::WSC Inline::WebChat Inline::Wrapper Inline::XSH Inline::YAML
+Inline::ASM Inline::Awk Inline::BC Inline::Basic
Inline::Befunge Inline::C Inline::CPP Inline::CPR
Inline::Echo Inline::Files Inline::Filters
Inline::Flex Inline::Foo Inline::Guile
Inline::Interp Inline::Java Inline::Lua
Inline::MakeMaker Inline::MakePdlppInstallables
Inline::Mason Inline::Module Inline::MonoCS
Inline::MzScheme Inline::Nouse Inline::Octave
Inline::Pdlpp Inline::Perl Inline::Pugs
Inline::Python Inline::Rakudo Inline::Ruby
Inline::SLang Inline::SMITH Inline::Select
Inline::Spew Inline::Struct Inline::TT Inline::Tcl
Inline::WSC Inline::WebChat Inline::Wrapper
Inline::XSH Inline::YAML

----
== YAML YAML YAML

Expand Down Expand Up @@ -344,9 +357,14 @@ C'Dent lets you compile modules to:

+* PHP
* Java
* Scala
* Python 3
* Perl 6
* ActionScript
* Go
* PIR

+* and C'Dent!

----
== Object Oriented Hello, world
Expand All @@ -373,10 +391,13 @@ C'Dent lets you compile modules to:
> cdent --compile --in=world.py --out=php
> cdent --compile --in=world.py --out=py
> cdent --compile --in=world.py --out=java

+> cdent --compile --in=world.py --out=pm6
> cdent --compile --in=world.py --out=pm6
> cdent --compile --in=world.py --out=py3
> cdent --compile --in=world.py --out=go
> cdent --compile --in=world.py --out=as
> cdent --compile --in=world.py --out=scala
> cdent --compile --in=world.py --out=pir
> cdent --compile --in=world.py --out=cd.yaml

----
== How C'Dent works (Step 1)
Expand Down
46 changes: 23 additions & 23 deletions yaml-examples
Original file line number Diff line number Diff line change
@@ -1,26 +1,3 @@
---- python

import yaml

object1 = {
'name': 'Ingy dot Net',
'number': 42,
'needs': [
'sex',
'drugs',
'rock and roll'
]
}

yaml1 = yaml.dump(object1)
object2 = yaml.load(yaml1)
yaml2 = yaml.dump(object2)

if yaml1 == yaml2:
print yaml1
else:
raise Exception(yaml1 + "!=\n" + yaml2)

---- perl

use YAML;
Expand All @@ -46,6 +23,29 @@ else {
die $yaml1 . "!=\n" . $yaml2
}

---- python

import yaml

object1 = {
'name': 'Ingy dot Net',
'number': 42,
'needs': [
'sex',
'drugs',
'rock and roll'
]
}

yaml1 = yaml.dump(object1)
object2 = yaml.load(yaml1)
yaml2 = yaml.dump(object2)

if yaml1 == yaml2:
print yaml1
else:
raise Exception(yaml1 + "!=\n" + yaml2)

---- ruby

require 'yaml'
Expand Down

0 comments on commit 3ed4ce9

Please sign in to comment.