repo.or.cz
/
lisp-parkour.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
parser: use single-quotes in config
[lisp-parkour.git]
/
parser
/
fennel
/
init.lua
blob
ae2f4d1fde5a1f3609d73270e144b1fa004d57db
1
require
'lpeg'
2
local
lpeg
=
lpeg
3
local
S
=
lpeg
.
S
4
5
local
macro_prefix
=
S
"#,`'"
6
7
local
opposite
= {
8
[
'('
] =
')'
,
9
[
')'
] =
'('
,
10
[
'{'
] =
'}'
,
11
[
'}'
] =
'{'
,
12
[
'['
] =
']'
,
13
[
']'
] =
'['
,
14
[
'"'
] =
'"'
,
15
[
';'
] =
'
\n
'
,
16
[
'
\n
'
] =
';'
,
17
}
18
19
return
{
20
prefix
=
macro_prefix
,
21
opposite
=
opposite
,
22
}