Parsing S-expressions in C
This project is an s-expression parser written in C. I wrote this parser because I wanted to be able to store configurations as s-expressions over JSON or XML. When run the parser generates a binary tree in memory that represents the s-expression.
The supported datatypes are as follows.
(a b c)
The s-expression used for testing is located at
test/data.lisp. To execute the tests run the following commands.
mkdir bin make ./bin/main
Known Issues and Limitations
- The parser is not capable of reading escaped characters in strings. I have no plans to address to this as my use case does not require this feature.
- The parser has a 512 character limit on symbols, integers, floats, and strings. This can be increased by changing the