Skip to content

Commit 80b7155

Browse files
head/tail string
1 parent f9c1bad commit 80b7155

File tree

5 files changed

+9
-11
lines changed

5 files changed

+9
-11
lines changed

BOOTSTRAP/cli.s

+4-4
Original file line numberDiff line numberDiff line change
@@ -75514,7 +75514,7 @@ uuid_000000000000047c:
7551475514
pop %r13
7551575515
push %r12
7551675516
push %r13
75517-
mov $uuid_0000000000000030, %r12
75517+
mov $uuid_0000000000000002, %r12
7551875518
mov $0, %r13
7551975519
call uuid_0000000000000003
7552075520
mov %r12, 0(%r8)
@@ -75605,7 +75605,7 @@ uuid_000000000000047c:
7560575605
mov -80(%rbp),%r13
7560675606
push %r12
7560775607
push %r13
75608-
mov $uuid_000000000000002d, %r12
75608+
mov $uuid_000000000000003f, %r12
7560975609
mov $0, %r13
7561075610
call uuid_0000000000000003
7561175611
mov %r12, 0(%r8)
@@ -76690,7 +76690,7 @@ uuid_000000000000048e:
7669076690
pop %r13
7669176691
push %r12
7669276692
push %r13
76693-
mov $uuid_0000000000000030, %r12
76693+
mov $uuid_0000000000000002, %r12
7669476694
mov $0, %r13
7669576695
call uuid_0000000000000003
7669676696
mov %r12, 0(%r8)
@@ -76781,7 +76781,7 @@ uuid_000000000000048e:
7678176781
mov -80(%rbp),%r13
7678276782
push %r12
7678376783
push %r13
76784-
mov $uuid_000000000000002d, %r12
76784+
mov $uuid_000000000000003f, %r12
7678576785
mov $0, %r13
7678676786
call uuid_0000000000000003
7678776787
mov %r12, 0(%r8)

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "lambda_mountain"
3-
version = "1.11.95"
3+
version = "1.11.96"
44
authors = ["Andrew <andrew@subarctic.org>"]
55
license = "MIT"
66
description = "Lambda Mountain"

Makefile

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11

22
nostd: prod
3-
./production --nostd -o tmp.s tests/strict/tail-string.lm
4-
# ./production --nostd -o tmp.s STRICT/cli.lm
3+
./production --nostd -o tmp.s STRICT/cli.lm
54
as -o tmp.o tmp.s
65
ld -o tmp tmp.o
76
./tmp STRICT/cli.lm && echo $?

STDLIB/default-instruction-set.lm

+2-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ fragment mov := λ(: src Literal+Constant)(: index Literal+Constant)(: dst Local
167167

168168
fragment mov := λ(: src Sized<1>[]+LocalVariable)(: index Literal+Constant)(: dst Reg8). (: (
169169
(.program(
170-
\t 'mov \s (+( (.expression index) (.expression src) )) \[ '%rbp \] , \s '% (.expression dst) \n
170+
\t 'mov \s (.expression src) \[ '%rbp \] , \s '%r15 \n
171+
\t 'mov \s (.expression index) \[ '%r15 \] , \s '% (.expression dst) \n
171172
))
172173
) Nil);
173174

STRICT/tokenize.lm

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@ type Tokens EOF | (HeadOrder( String , Tokens[] )) | (TailOrder( Tokens[] , Stri
33

44
tokenize := λ(: fp String). (: (tail(
55
(let text (read-file fp))
6-
(print (as (head-string text) ASCII))
76
(while (head-string text) (tail(
8-
#(print (as (head-string text) ASCII))
9-
()
7+
(print (as (head-string text) ASCII))
108
(set text (tail-string text))
119
)))
1210
)) Nil);

0 commit comments

Comments
 (0)