Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

Commit

Permalink
-- Converted to marksown syntax (it almost was already).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardog committed Apr 1, 2011
1 parent 5535bba commit b86c1f4
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions README.emmett
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,25 @@ in the VMM) with a statement to be executed (printf("Hi!\n")).

We can group statements together with { }'s:

VMM1Hz {
VMM1Hz {
var = 123;
printf("var: %d\n", var);
}
}

The user can also define typed functions:

int myfunc(int arg1, string arg2)
{
int myfunc(int arg1, string arg2)
{
printf("%s: %d\n", arg2, arg1);
return arg1 + 1;
}
}

...and subroutines:

void myfunc(int arg1, string arg2)
{
printf("%s: %d\n", arg2, arg1);
}
void myfunc(int arg1, string arg2)
{
printf("%s: %d\n", arg2, arg1);
}

if/else behave as a C programmer would expect, and integer expressions
roughly follow C's precedence and syntax.
Expand All @@ -52,5 +52,5 @@ variables; these could be supported using anonymous functions.
Building
--------

You'll need the Glasgow Haskell Compiler, which is available for all
popular platforms. make in the current directory should suffice.
You'll need the OCaml Compiler, which is available for all popular
platforms. make in the emmett directory should suffice.

0 comments on commit b86c1f4

Please sign in to comment.