tangled
alpha
login
or
join now
gearsco.de
/
pearl
2
fork
atom
An Erlang lexer and syntax highlighter in Gleam
2
fork
atom
overview
issues
pulls
pipelines
Replace JavaScript example with Erlang
gearsco.de
7 months ago
8d80655c
0451189e
+6
-1
1 changed file
expand all
collapse all
unified
split
README.md
+6
-1
README.md
···
21
21
import pearl/highlight
22
22
23
23
pub fn main() {
24
24
-
let code = "console.log('Hello, world!');"
24
24
+
let code = "
25
25
+
-module(hello).
26
26
+
-export([hello_world/0]).
27
27
+
28
28
+
hello_world() -> io:fwrite(\"Hello, world!\\n\").
29
29
+
"
25
30
26
31
let lexer = pearl.new(code)
27
32
// Lex syntax tokens for parsing or other uses