History

add square to prelude

Sigrid Haflínudóttir committed 6 years ago

Commit 7e7bad91 parent 4a6ea9a2 files · +2 −0Browse files

Unified · Split

2 files
  1. README.md +1 −0
  2. aa.c +1 −0
README.md+1−0
@@ -43,6 +43,7 @@ newline · 42 unmodified lines
43not43not
44or44or
45quote45quote
46square
46while47while
47```48```
48 49
aa.c+1−0
@@ -130,6 +130,7 @@ static aaObject rparen; · 129 unmodified lines
130 130
131static char prelude[] = "\131static char prelude[] = "\
132(define newline (lambda () (display \"\\n\")))\132(define newline (lambda () (display \"\\n\")))\
133(define square (lambda (x) (* x x)))\
133";134";
134 135
135static aaObject *eval(aaContext *ctx, aaObject *obj, aaObject *env, aaObject **bind);136static aaObject *eval(aaContext *ctx, aaObject *obj, aaObject *env, aaObject **bind);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t