https://github.com/roppa/lisp
Build your own Lisp
https://github.com/roppa/lisp
Last synced: 11 months ago
JSON representation
Build your own Lisp
- Host: GitHub
- URL: https://github.com/roppa/lisp
- Owner: roppa
- License: mit
- Created: 2018-05-23T14:21:19.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-31T19:48:38.000Z (about 8 years ago)
- Last Synced: 2025-02-14T18:36:29.102Z (over 1 year ago)
- Language: C
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Lisp
I'm going through 'build your own Lisp' and these are some of my notes.
## Definitions
- function definition
- functions do things, take things in, give things back
- structure definition
- custom data types
- main
- a c program always starts from the main function
## C
A program in C consists of only functions and structure definitions.
### Compiling
To compile run ```cc filename.c```
This creates an a.out file. To execute run ```./a.out```
To specify a name instead of the default a.out, use `-o`. `-std=c99` specifies the version.
```
cc -std=c99 -Wall hello.c -o hello_world
```
Run with `./c/hello/hello_world`.
## Examples
Under `/c` is my example c code.
## Debugging
- [lldb](https://lldb.llvm.org/)
## Testing