Measures Concepts
GitHub icon

C'Dent

C'Dent - Intermediate representation language

< >

C'Dent is an intermediate representation language created in 2010 by Ingy d枚t Net.

#1429on PLDB 14Years Old

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.


Example from the web:
%TAG ! tag:cdent.org,2010: --- !AST has: - !Module has: - !Comment line: 1 type: doc val: 'This is World class :) ' - !Comment line: 4 type: blank val: ' ' - !Class has: - !Method has: - !Println args: - !String val: Hello, world line: 7 line: 6 name: greet line: 5 name: World line: 1 name: Module

View source

- Build the next great programming language Search Add Language Features Creators Resources About Blog Acknowledgements Queries Stats Sponsor Day 605 feedback@pldb.io Logout