-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
37 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
; An array of integers. | ||
((my_integers) 1 2 3) | ||
(my_integers (()) 1 2 3) | ||
|
||
; An array of strings. | ||
((my_strings) "yo" "howdy" "sup") | ||
(my_strings (()) "yo" "howdy" "sup") | ||
|
||
; An array of 3 messages. | ||
((my_messages) | ||
(my_messages (()) | ||
(() (i 5)) | ||
(()) | ||
() | ||
(() (i 5) (f 5.5) (s "hello"))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
(name "popcorn") | ||
(name popcorn) | ||
(amount 3) | ||
(variety +true) | ||
(expect_unit_cost 7.50) | ||
|
||
; List of favorite kinds. | ||
((favorites) | ||
"cheddar" "caramel" "butter") | ||
(favorites () | ||
cheddar caramel butter | ||
) | ||
|
||
; In case of no popcorn. | ||
(alternative | ||
(name "hot dog") | ||
(amount 2)) | ||
(name "hot dog") | ||
(amount 2) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
(budget 30) | ||
|
||
((items) | ||
(items () | ||
(() | ||
(name "dip") | ||
(amount 1) | ||
(expect_cost 6.50) | ||
((favorites) "hummus" "garlic")) | ||
(favorites () "hummus" "garlic")) | ||
(() | ||
(name "hot sauce") | ||
(amount 3) | ||
(variety +true) | ||
(expect_unit_cost 6.50) | ||
((favorites) | ||
(favorites () | ||
"yuzu" "kiss" "fire" | ||
"bee" "sunshine"))) | ||
"bee" "sunshine") | ||
) | ||
) | ||
|
||
; vim: ft=lisp lw=nil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
(grocery_list | ||
(budget 10) | ||
((items) | ||
(items () | ||
(() | ||
(name "jar of olives") | ||
(amount 1)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
(shopping_list | ||
(grocery_list | ||
((items) | ||
(() | ||
(name "beer") | ||
(amount 99)) | ||
) | ||
(grocery_list | ||
(items (()) | ||
(() | ||
(name beer) | ||
(amount 99) | ||
) | ||
) | ||
) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
((expressions) | ||
(expressions ((value)) | ||
|
||
(value +true) | ||
|
||
(not (value +false)) | ||
|
||
((or) (() (value +false)) (() (value +true))) | ||
((or) (value +false) (value +true)) | ||
(((or)) +false +true) | ||
(or (()) (() (value +false)) (() (value +true))) | ||
(or (()) (value +false) (value +true)) | ||
(or ((value)) +false +true) | ||
|
||
(((or)) | ||
(or ((value)) | ||
+false | ||
(((and)) +true +false) | ||
(((or)) +false +false +true)) | ||
(and ((value)) +true +false) | ||
(or ((value)) +false +false +true) | ||
) | ||
) |