Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ingydotnet committed Apr 18, 2010
1 parent 56e23d6 commit 9aa72fc
Show file tree
Hide file tree
Showing 14 changed files with 52 additions and 4,598 deletions.
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
site/js/jquery.js
site/js/sidebar.js
site/images/tile.gif
Makefile
template/wrapper.html
template/project-site.css
template/header.html
bin/render
bin/strip.pl
index.html
45 changes: 0 additions & 45 deletions Makefile

This file was deleted.

1 change: 1 addition & 0 deletions Makefile
5 changes: 5 additions & 0 deletions ToDo
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- Add a Specification page
- Add a FAQ
- Add a License page
- Link to License page from compiler

1 change: 1 addition & 0 deletions bin
30 changes: 0 additions & 30 deletions bin/render

This file was deleted.

3 changes: 3 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
base_url: ''
title: C'Dent - A Portable Module Programming Language
logo_width: 250
header_background_color: '#e5e539'
20 changes: 10 additions & 10 deletions content/examples/hello-world.st
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ This page shows all the different incantations, inputs and outputs of the curren
^ C'Dent Version

> `cdent --version`
> `> cdent --version`

.pre
The C'Dent portable module programming language.
Expand Down Expand Up @@ -112,7 +112,7 @@ C'Dent can take any of the above inputs, and generate the following outputs:

^^ Perl

> `cdent --compile --in=World.cd.py --to=pm`
> `> cdent --compile --in=World.cd.py --to=pm`

.pre
# *** DO NOT EDIT *** This is a C'Dent generated Perl module.
Expand All @@ -135,7 +135,7 @@ sub greet {
^^ Python
> `cdent --compile --in=World.cd.py --to=py`
> `> cdent --compile --in=World.cd.py --to=py`
.pre
# *** DO NOT EDIT *** This is a C'Dent generated Python module.
Expand All @@ -152,7 +152,7 @@ class World():

^^ PHP

> `cdent --compile --in=World.cd.py --to=php`
> `> cdent --compile --in=World.cd.py --to=php`

.pre
// *** DO NOT EDIT *** This is a C'Dent generated PHP module.
Expand All @@ -173,7 +173,7 @@ class World {
^^ Ruby
> `cdent --compile --in=World.cd.py --to=rb`
> `> cdent --compile --in=World.cd.py --to=rb`
.pre
# *** DO NOT EDIT *** This is a C'Dent generated Ruby module.
Expand All @@ -192,7 +192,7 @@ end

^^ JavaScript

> `cdent --compile --in=World.cd.py --to=js`
> `> cdent --compile --in=World.cd.py --to=js`

.pre
// *** DO NOT EDIT *** This is a C'Dent generated JavaScript module.
Expand All @@ -211,7 +211,7 @@ end
^^ Perl 6
> `cdent --compile --in=World.cd.py --to=pm6`
> `> cdent --compile --in=World.cd.py --to=pm6`
.pre
# *** DO NOT EDIT *** This is a C'Dent generated Perl 6 module.
Expand All @@ -230,7 +230,7 @@ class World {

^^ Python 3000

> `cdent --compile --in=World.cd.py --to=py3`
> `> cdent --compile --in=World.cd.py --to=py3`

.pre
# *** DO NOT EDIT *** This is a C'Dent generated Python 3 module.
Expand All @@ -247,7 +247,7 @@ class World():
^^ Java
> `cdent --compile --in=World.cd.py --to=java`
> `> cdent --compile --in=World.cd.py --to=java`
.pre
// *** DO NOT EDIT *** This is a C'Dent generated Java module.
Expand All @@ -266,7 +266,7 @@ public class World {

^^ C'Dent
> `cdent --compile --in=World.cd.py --to=cd.yaml`
> `> cdent --compile --in=World.cd.py --to=cd.yaml`
.pre
%TAG ! tag:cdent.org,2010:
Expand Down
22 changes: 20 additions & 2 deletions content/home.st
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
^ Welcome to C'Dent
C'Dent is a new programming language for writing portable modules. It is based on the computer programming principle known as H.O.P.E. (Hack Once, Please Everyone)
C'Dent is a new "Acmeist"<http://www.acmeism.org> programming language for writing portable modules. It is based on the computer programming principle known as H.O.P.E. (Hack Once, Please Everyone)

When you write a module in C'Dent, you can use it in a dozen different programming languages. For instance, you could write a module in Python and use it in JavaScript, or you ould write a module in JavaScript and use it in Perl 6, Ruby or Java.
When you write a module in C'Dent, you can use it in a dozen different programming languages. For instance, you could write a module in Python and use it in JavaScript, or you could write a module in JavaScript and use it in Perl 6, Ruby or Java.
C'Dent has multiple input syntaxes. These syntaxes are strict subsets of common and popular object-oriented programming languages. The current implementation of C'Dent supports Python, JavaScript and Perl 6 inputs. Perl and Ruby will be added soon.
C'Dent parses and analyzes the input into a well defined tree structure that is is known as *C'Dent*. The C'Dent format can be trivially serialized to disk as YAML or XML.

From the C'Dent format, equivalent modules can be generated in the following (currently supported) languages:
* Perl
* Python
* Ruby
* PHP
* JavaScript
* Java
* Python 3
* Perl 6
See them all at [examples/hello-world]. We plan to add many other languages to that list.
If you have ideas, or want to join the effort, please stop by #cdent on irc.frenode.net.
Binary file removed site/images/tile.gif
Binary file not shown.
1 change: 1 addition & 0 deletions site/images/tile.gif
10 changes: 0 additions & 10 deletions site/js/cdent.js

This file was deleted.

Loading

0 comments on commit 9aa72fc

Please sign in to comment.