Add OCaml code generation #24
@ -30,7 +30,7 @@ steps:
|
|||||||
- mkdir -p lib
|
- mkdir -p lib
|
||||||
- curl -o lib/sunshine.jar -L 'http://artifacts.metaborg.org/service/local/artifact/maven/redirect?r=snapshots&g=org.metaborg&a=org.metaborg.sunshine2&v=LATEST'
|
- curl -o lib/sunshine.jar -L 'http://artifacts.metaborg.org/service/local/artifact/maven/redirect?r=snapshots&g=org.metaborg&a=org.metaborg.sunshine2&v=LATEST'
|
||||||
- name: setup_gen
|
- name: setup_gen
|
||||||
image: maven
|
image: silkeh/clang
|
||||||
volumes:
|
volumes:
|
||||||
- name: m2
|
- name: m2
|
||||||
path: /root/.m2
|
path: /root/.m2
|
||||||
|
@ -59,8 +59,8 @@ For example, this snippet generates the following Python:
|
|||||||
It generates nearly identical code in
|
It generates nearly identical code in
|
||||||
this simple example for Javascript (just with `"Hello, world!"`
|
this simple example for Javascript (just with `"Hello, world!"`
|
||||||
in place of `r'Hello, world!'`), although it generates a different
|
in place of `r'Hello, world!'`), although it generates a different
|
||||||
preamble defining Stdio for each language. (Currently, Haskell code
|
preamble defining Stdio for each language. (Currently, Haskell and OCaml
|
||||||
generation is also supported.)
|
code generation are also supported.)
|
||||||
|
|
||||||
There's not much to break down in such a tiny program as this, but let's do
|
There's not much to break down in such a tiny program as this, but let's do
|
||||||
it. The prefix operator `<<<` could be read as "the default stream receives...",
|
it. The prefix operator `<<<` could be read as "the default stream receives...",
|
||||||
|
Loading…
Reference in New Issue
Block a user