Skip to content

Commit 1196be3

Browse files
committed
huh
1 parent 023bc05 commit 1196be3

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

Diff for: sclin/src/Cmd.scala

+3-7
Original file line numberDiff line numberDiff line change
@@ -118,18 +118,14 @@ extension (env: ENV)
118118
case "]:" => env.endMAP
119119
/*
120120
@s -> MAP
121-
#{]} #{,>M}.
122-
*/
123-
case "];" => env.endARR.pairMAP
124-
/*
125-
@s -> MAP
126121
Empty `MAP`.
127122
*/
128123
case "[]:" => env.push(UN.toMAP)
129124
/*
130125
@s -> MAP
131-
#{[]:}.
126+
#{]} #{,>M}.
132127
*/
128+
case "];" => env.endARR.pairMAP
133129
case "[];" => env.push(UN.toMAP)
134130
/*
135131
@s -> _
@@ -2205,7 +2201,7 @@ extension (env: ENV)
22052201
@s a b f' -> _'
22062202
#{scan} from the right.
22072203
*/
2208-
case "scanR" => env.scanR
2204+
case "scanr" => env.scanR
22092205
/*
22102206
@s a -> NUM
22112207
Sum of `a`. Equivalent to `0 \+ rfold`.

Diff for: sclin/src/Parser.scala

+3-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@ case class Parser(
5555

5656
def pesc(c: Char): Parser = addc:
5757
c match
58-
case '"' => "\""
59-
case _ => "\\" + c
58+
case '"' => "\""
59+
case '\\' => "\\"
60+
case _ => "\\" + c
6061
.sett(PT.STR)
6162

6263
def pstr(c: Char): Parser = c match

0 commit comments

Comments
 (0)