Initial commit
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
# spp
|
||||
|
||||
## Description
|
||||
spp - single pass parser.
|
||||
|
||||
## Table of Contents
|
||||
|
||||
* [Features](#features)
|
||||
* [Todos](#todos)
|
||||
* [Usage](#usage)
|
||||
* [Acknowledgments](#acknowledgments)
|
||||
* [License](#license)
|
||||
|
||||
|
||||
## Features
|
||||
|
||||
## Todos
|
||||
|
||||
## Usage
|
||||
|
||||
```c
|
||||
int main(void)
|
||||
{
|
||||
if (argc != 2) {
|
||||
fprintf(stderr, "Usage: %s <path>\n", argv[0]);
|
||||
return 1;
|
||||
}
|
||||
|
||||
const char* path = argv[1];
|
||||
const char* buffer = read_file_into_mem(path);
|
||||
|
||||
struct SPP_Stream stream = { .cursor = &buffer };
|
||||
line_count(stream, path);
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
## Acknowledgments
|
||||
|
||||
|
||||
## License
|
||||
This project is licensed under the MIT License - see the [MIT License](LICENSE.md) file for details.
|
||||
|
||||
Reference in New Issue
Block a user