https://github.com/basemax/another-one-draft-in-c
Just a attempt to implement a lexer in pure C without a lexer generator.
https://github.com/basemax/another-one-draft-in-c
c lexer parser
Last synced: 10 months ago
JSON representation
Just a attempt to implement a lexer in pure C without a lexer generator.
- Host: GitHub
- URL: https://github.com/basemax/another-one-draft-in-c
- Owner: BaseMax
- License: gpl-3.0
- Created: 2021-04-22T02:04:48.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-22T03:44:43.000Z (about 5 years ago)
- Last Synced: 2025-08-19T06:01:20.834Z (10 months ago)
- Topics: c, lexer, parser
- Language: C
- Homepage: https://github.com/One-Language/One
- Size: 29.3 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Another One draft lexer/parser in c
Just a attempt to implement a lexer in pure C without a lexer generator.
**Date:** 2019-2020
## Input
```
main() {
5+5;
}
```
## Output
```
- main(ident)
- ((operator)
- )(operator)
- {(operator)
- 5(number)
- +(operator)
- 5(number)
- ;(operator)
- }(operator)
```
## Using
```bash
$ gcc main.c -o one
$ ./one input.one
```
So let me remind again that the license is GPL 3.
© Copyright Max Base 2019