.NET Parser for The Sims Online's CST format.
Find a file
2022-04-29 06:39:56 -04:00
.github This release drops .NET Standard in favor of .NET 6. 2021-11-19 13:52:26 -05:00
.vscode Added VSCode tasks 2020-12-08 19:09:34 -05:00
notebooks Relicensed under BSD 3-clause 2022-04-29 06:39:56 -04:00
Sixam.CST This release drops .NET Standard in favor of .NET 6. 2021-11-19 13:52:26 -05:00
Sixam.CST.Tests Updated unit test packages 2021-11-21 01:26:18 -05:00
.editorconfig UIText class 2020-12-13 07:48:15 -05:00
.gitattributes Add .gitignore and .gitattributes. 2020-12-08 17:56:36 -05:00
.gitignore Rewrote normalizing algorithm 2020-12-11 01:05:46 -05:00
changelog.md This release drops .NET Standard in favor of .NET 6. 2021-11-19 13:52:26 -05:00
code_of_conduct.md Migrated CST notebook from .NET Labs 2020-12-08 18:46:52 -05:00
LICENSE Relicensed under BSD 3-clause 2022-04-29 06:39:56 -04:00
README.md Relicensed under BSD 3-clause 2022-04-29 06:39:56 -04:00
Sixam.CST.sln UIText class 2020-12-13 07:48:15 -05:00
Sixam.CST.sln.licenseheader UIText class 2020-12-13 07:48:15 -05:00
usage.md This release drops .NET Standard in favor of .NET 6. 2021-11-19 13:52:26 -05:00

CSTNet

License: MIT Contributor Covenant

Caret-Separated Text (or CST) is a key-value pair format represented by digits or words as keys and the value as text enclosed between carets. (e.g. <key> ^<text>^) Any text which is not enclosed with carets is considered a comment and ignored. Neither strings nor comments may use the caret character. CST.NET is a library for parsing the CST format.

CST.NET uses .NET's built-in indexing extension function to accomplish locating of each respective key. As a consequence, it does not matter what you use for keys. I added an additional normalization to the pipeline that converts the document's line endings to the system's, in order to prevent crashes.

Usage

See usage.md.

To-do

  • Support for arguments (e.g. %1)

Known issues

  • Skipping comments is a little unpredictable.

Requirements

License

I license this project under the MIT license - see LICENSE for details.