Skip to content

Commit

Permalink
Merge pull request #70 from slaykovsky/erlang
Browse files Browse the repository at this point in the history
Added simple Erlang Selection Based Evaluation. ;)
  • Loading branch information
rgbkrk committed Mar 13, 2014
2 parents 655ccfb + a87eb68 commit ee6a726
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Currently supports:
* PHP
* Python
* Ruby
* Erlang (Only Selection Based runs. It's not support functions and full power of REPL yet.)

You only have to add a few lines in a PR to support another.

Expand Down
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 ee6a726

Please sign in to comment.