Next: Introduction, Previous: (dir), Up: (dir) [Contents][Index]
This is the pp-toml Reference Manual, version 1.0.1, generated automatically by Declt version 3.0 "Montgomery Scott" on Tue Dec 22 14:43:21 2020 GMT+0.
• Introduction | What pp-toml is all about | |
• Systems | The systems documentation | |
• Files | The files documentation | |
• Packages | The packages documentation | |
• Definitions | The symbols documentation | |
• Indexes | Concepts, functions, variables and data types |
Common Lisp TOML parser.
Supports the TOML v0.1.0 spec with the following exceptions:
Complications arising from escaping quote & comment syntax are known and deferred until someone gets bit and is angry enough to send a pull request fixing them.
Not enforcing array homogeneity. Partly this is because of Postel's dictum, but partly because it might be more convenient to have heterogenous lists. Future work - might add a strict mode which throws errors here.
Unicode support may have some issues. It should work, but Unicode on Common Lisp is sometimes dependant on your system's configuration. Testing should be done before rolling your work to production.
Common Lisp is pretty good with numbers. Therefore, instead of manually differentiating between floats and integers, pp-toml calls them NUMBERS and lets your Lisp take care of the rest. Again, test before rolling to production.
To run the tests, do this:
sbcl --script run-sbcl-tests.lisp
Which will produce a test report.
Gratefully accepted. Please add test cases for bug reports you fix or features you add.
License is LLGPL.
Since Tom thought it'd be a good idea to put his name on the language, I'm putting my name on this parser.
Next: Files, Previous: Introduction, Up: Top [Contents][Index]
The main system appears first, followed by any subsystem dependency.
• The pp-toml system |
Paul Nathan <pnathan@alumni.uidaho.edu>
Paul Nathan <pnathan@alumni.uidaho.edu>
LLGPL
TOML parser
Implements a TOML parser. PARSE-TOML is the top-level function
1.0.1
pp-toml.asd (file)
pp-toml.lisp (file)
Files are sorted by type and then listed depth-first from the systems components trees.
• Lisp files |
• The pp-toml.asd file | ||
• The pp-toml/pp-toml.lisp file |
Next: The pp-toml/pp-toml․lisp file, Previous: Lisp files, Up: Lisp files [Contents][Index]
pp-toml.asd
pp-toml (system)
Previous: The pp-toml․asd file, Up: Lisp files [Contents][Index]
pp-toml (system)
pp-toml.lisp
Next: Definitions, Previous: Files, Up: Top [Contents][Index]
Packages are listed by definition order.
• The pp-toml package |
pp-toml.lisp (file)
Definitions are sorted by export status, category, package, and then by lexicographic order.
• Exported definitions | ||
• Internal definitions |
Next: Internal definitions, Previous: Definitions, Up: Definitions [Contents][Index]
• Exported functions |
Previous: Exported definitions, Up: Exported definitions [Contents][Index]
Returns the toml parsed structure from ‘string‘ or :parse-error
pp-toml.lisp (file)
Parse a TOML ‘string‘, returning a hash table comparable by EQUAL.
‘strict‘ is not supported at present.
pp-toml.lisp (file)
Strips the comments from the string
pp-toml.lisp (file)
Previous: Exported definitions, Up: Definitions [Contents][Index]
• Internal special variables | ||
• Internal functions |
Next: Internal functions, Previous: Internal definitions, Up: Internal definitions [Contents][Index]
Scanner for # comments. Handles "#" strings
pp-toml.lisp (file)
Previous: Internal special variables, Up: Internal definitions [Contents][Index]
pp-toml.lisp (file)
pp-toml.lisp (file)
Does ‘key‘ exist in ‘table?
pp-toml.lisp (file)
pp-toml.lisp (file)
pp-toml.lisp (file)
pp-toml.lisp (file)
pp-toml.lisp (file)
pp-toml.lisp (file)
‘value‘ may be any of the standard toml value types: array,
datetime, bool, number, or string. Of those, arrays are a special case:
Supposing an array is encountered, process-value-data recurses upon the array.
Toml does not support references as of v0.1, and there for we can traverse arrays without cyles of references.
pp-toml.lisp (file)
pp-toml.lisp (file)
Transliterate escape characters into Common Lisp characters
pp-toml.lisp (file)
pp-toml.lisp (file)
Previous: Definitions, Up: Top [Contents][Index]
• Concept index | ||
• Function index | ||
• Variable index | ||
• Data type index |
Next: Function index, Previous: Indexes, Up: Indexes [Contents][Index]
Jump to: | F L P |
---|
Jump to: | F L P |
---|
Next: Variable index, Previous: Concept index, Up: Indexes [Contents][Index]
Jump to: | E F K M N P S T |
---|
Jump to: | E F K M N P S T |
---|
Next: Data type index, Previous: Function index, Up: Indexes [Contents][Index]
Jump to: | *
S |
---|
Index Entry | Section | ||
---|---|---|---|
| |||
* | |||
*comment-scanner* : | Internal special variables | ||
| |||
S | |||
Special Variable, *comment-scanner* : | Internal special variables | ||
|
Jump to: | *
S |
---|
Previous: Variable index, Up: Indexes [Contents][Index]
Jump to: | P S |
---|
Index Entry | Section | ||
---|---|---|---|
| |||
P | |||
Package, pp-toml : | The pp-toml package | ||
pp-toml : | The pp-toml system | ||
pp-toml : | The pp-toml package | ||
| |||
S | |||
System, pp-toml : | The pp-toml system | ||
|
Jump to: | P S |
---|