Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cyd01/pico-c
pico-c, a very small C interpreter
https://github.com/cyd01/pico-c
Last synced: 2 months ago
JSON representation
pico-c, a very small C interpreter
- Host: GitHub
- URL: https://github.com/cyd01/pico-c
- Owner: cyd01
- Created: 2018-11-07T14:12:29.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-11-17T12:46:35.000Z (about 1 year ago)
- Last Synced: 2024-08-03T18:16:46.614Z (6 months ago)
- Language: C
- Homepage: http://www.9bis.net/c
- Size: 1.78 MB
- Stars: 15
- Watchers: 3
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- AwesomeInterpreter - pico-c
README
# Origins
**pico-c** is a project created by Zik at [https://code.google.com/p/picoc](https://code.google.com/p/picoc/ "Google code").
The projet is now hosted at [https://gitlab.com/zsaleeba/picoc](https://gitlab.com/zsaleeba/picoc/ "Github.com").**pico-c** intends to be a very light **C** interpreter. **pico-c** is very small, but include many standard libraries.
# The content
Initially those libraries were natively integrated into pico-c:* ctype.h
* errno.h
* math.h
* stdbool.h
* stdio.h
* stdlib.h
* string.h
* time.h
* unistd.hSome of them were improved:
* stdio.h
* unistd.hWe have planned to add support for 3 other useful libraries:
* dirent.h
* regex.h
* socket.h
* stat.h# The pico-c syntax
```
$ pico-c -h
pico-c.exe, A very small C interpreter
Usage: pico-c.exe [-h] [-i] [-m] [-n] [-o] [...] [- ...]
-h: this help message
-i: force interactive mode at the end of scripts
-m: run main() function automaticaly
-n: don't print prompt
-o: the original "old" mode
-v: print version
Exemples:
pico-c.exe script1.pcc script2.pcc
pico-c.exe -i script.pcc
pico-c.exe -m script1.pcc script2.pcc - arg1 agr2
```**Cyd**