The Esoteric Order of Dagon
Ruby Ragel in Ruby Host VimL Perl PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
core Syntax for setters and getters. Oct 10, 2013
dagon
doc Add inheritance docs Mar 5, 2013
examples
lib
spec
.gitignore
.rspec
README.md Add MIT License. Feb 27, 2013
Rakefile
dagon.vim

README.md

The Esoteric Order of Dagon

This is a language designed and implemented by Caleb Thompson and Goose Mongeau.

You can call it Dagon for short.

Dagon As She is Wrote

fibonacci-recursive(n): # fuckin hyphens instead of underscores.
  if n <= 1, return n  #leading conditionals. comma rather than semicolon to separate statements
  self(n - 1) + self(n - 2)
fibonacci-imperative(n):
  current: 0
  next: 1

  n.times
    temp: next
    next +: current
    current: temp

  current

Hello

puts "Hello World"

Outputs strings "Hello " "World\n" (same result as above):

print "Hello "
print "World\n"

Syntax

Assignment

x: 1
Integer x: 1 # strongly typed
x: "string" # raises error or warning: Invalid type (assigning String to Integer)

Classes

/^(?:[A-Z][a-z]+)+:$/

MyClass:
  # here lies the definition
Plant:
  # defintion
Tree(Plant):
  # tree stuff

Methods

/^(?:[a-z]+-?)+[^-][()]?:\n $/

do-stuff:
  # definition
stuff:
  # definition
print():
  # definition

Variables

/^(?:[a-z]+-?)+[^-]: $/

name: # value
another-name: # value

License

Dagon is released under the MIT License