added erlang related pages
parent
2a2e850311
commit
2622e117db
@ -0,0 +1 @@
|
|||||||
|
erlang
|
@ -0,0 +1 @@
|
|||||||
|
erl
|
@ -0,0 +1,11 @@
|
|||||||
|
% to install:
|
||||||
|
% sudo apt-get install erlang-ic
|
||||||
|
% to compile:
|
||||||
|
% erlc helloworld.erl
|
||||||
|
% to run:
|
||||||
|
% erl -noshell -s helloworld hello_world -s init stop
|
||||||
|
|
||||||
|
-module(helloworld).
|
||||||
|
-export([hello_world/0]).
|
||||||
|
|
||||||
|
hello_world() -> io:fwrite("hello, world\n").
|
@ -0,0 +1,10 @@
|
|||||||
|
# erl
|
||||||
|
#
|
||||||
|
# Start Erlang runtime system
|
||||||
|
|
||||||
|
# Execute compiled BEAM file (helloworld.beam)
|
||||||
|
erl -noshell -s helloworld start -s init stop
|
||||||
|
|
||||||
|
# Run code from the command line
|
||||||
|
erl -noshell -eval 'io:fwrite("Hello, World!\n"), init:stop().'
|
||||||
|
|
@ -0,0 +1,8 @@
|
|||||||
|
# Erlang
|
||||||
|
# General-purpose, concurrent, functional programming language, as well as a garbage-collected runtime system.
|
||||||
|
|
||||||
|
# See also:
|
||||||
|
# erl
|
||||||
|
# Erlang language cheat sheets at /erlang/
|
||||||
|
# list of pages: /erlang/:list
|
||||||
|
# search in pages: /erlang/~keyword
|
Loading…
Reference in New Issue