Skip to content

Commit dc50acf

Browse files
committed
cleanup of removed features
1 parent 26c8891 commit dc50acf

File tree

2 files changed

+4
-43
lines changed

2 files changed

+4
-43
lines changed

lib/ast.js

Lines changed: 2 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ast.ls

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,6 @@ class exports.Literal extends Atom
346346
compile: (o, level ? o.level) ->
347347
switch val = "#{@value}"
348348
| \this => return o.scope.fun?bound or val
349-
| \undefined => val = 'void'; fallthrough
350349
| \void =>
351350
return '' unless level
352351
val += ' 8'
@@ -753,15 +752,6 @@ class exports.Call extends Node
753752
gotThis or args.unshift Literal \this
754753
@block Fun(params, body), args, \.call
755754
756-
@where = (args, body) ->
757-
lines = [a for a in args when a.op is \= and not a.logic]
758-
params = for a, i in args
759-
if a.op is \= and not a.logic
760-
then args[i] = Literal \void; a.left
761-
else Var a.varName! || a.carp 'invalid "let" argument'
762-
args.unshift Literal \this
763-
@block Fun(params, Block lines ++ body.lines), args, \.call
764-
765755
#### List
766756
# An abstract node for a list of comma-separated items.
767757
class List extends Node
@@ -1235,7 +1225,7 @@ class exports.Binary extends Node
12351225

12361226
compileConcat: (o) ->
12371227
f = (x) ->
1238-
| x instanceof Binary and x.op in <[ +++ ++ ]> =>
1228+
| x instanceof Binary and x.op is \++ =>
12391229
(f x.first) ++ (f x.second)
12401230
| otherwise => [x]
12411231
Chain @first .add Index (Key \concat), \., true .add Call(f @second) .compile o
@@ -2837,7 +2827,7 @@ let @ = PREC = {unary: 0.9}
28372827
@\.&. = @\.^. = @\.|. = 0.3
28382828
@\== = @\!= = @\~= = @\!~= = @\=== = @\!== = 0.4
28392829
@\< = @\> = @\<= = @\>= = @of = @instanceof = 0.5
2840-
@\<<= = @\>>= = @\<== = @\>== = @\+++ = @\++ = 0.5
2830+
@\<<= = @\>>= = @\<== = @\>== = @\++ = 0.5
28412831
@\.<<. = @\.>>. = @\.>>>. = 0.6
28422832
@\+ = @\- = 0.7
28432833
@\* = @\/ = @\% = 0.8

0 commit comments

Comments
 (0)