Skip to content

Commit

Permalink
Added simple Erlang Selection Based Evaluation. ;)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Slaykovsky committed Mar 13, 2014
1 parent 655ccfb commit 1c56452
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/example.erl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-module(example).
-export([hello/0]).

hello() ->
io:format("Hello, World!~n").
4 changes: 4 additions & 0 deletions lib/grammars.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,7 @@ module.exports =
"File Based": (filename) -> [filename]
#command: "ghc"
#"Selection Based": (code) -> ['-e', code]

Erlang:
command: "erl"
"Selection Based": (code) -> ['-noshell', '-eval', code+', init:stop().']

0 comments on commit 1c56452

Please sign in to comment.