Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
ingydotnet committed Sep 6, 2012
1 parent 6ab836e commit a951f0f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
1 change: 1 addition & 0 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ base_url: ''
title: C'Dent - A Portable Module Programming Language
logo_width: 250
header_background_color: '#e5e539'
icon_image: /images/chris-dent.jpg
24 changes: 21 additions & 3 deletions content/examples/hello-world.st
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ has:
^ Outputs
C'Dent can take any of the above inputs, and generate the following outputs: Perl, Python, PHP, Ruby, JavaScript, Scala, Java, ActionScript, Perl 6, Python 3000, Go, PIR or C'Dent.
C'Dent can take any of the above inputs, and generate the following outputs: Perl, Python, PHP, Ruby, JavaScript, Scala, Java, ActionScript, Perl 6, Python 3000, Go, PIR, NQP or C'Dent.
----
Expand Down Expand Up @@ -335,14 +335,32 @@ func greet() {
###
.namespace ["World"]
.method greet
.sub greet :method
say "Hello, world"
.end
.pre
----
^^ NQP (Not Quite Perl)
> `> cdent --compile --in=world.cd.py --to=nqp`
.pre
# *** DO NOT EDIT *** This is a C'Dent generated NQP (Not Quite Perl) module.
###
# This is World class :)
###

class World {
method greet() {
say("Hello, world");
}
}
.pre

----

^^ C'Dent
> `> cdent --compile --in=world.cd.py --to=cd.yaml`
Expand Down

0 comments on commit a951f0f

Please sign in to comment.