github.com/danini-the-panini/kdl-cr
1.0.0 / published Feb 25, 2025 / repository
This is a Crystal implementation of the KDL Document Language
KDL
This is a Crystal implementation of the KDL Document Language
Installation
-
Add the dependency to your
shard.yml:dependencies: kdl: github: danini-the-panini/kdl-cr -
Run
shards install
Usage
require "kdl"
KDL.parse_document(a_string) #=> KDL::Document
Contributing
- Fork it (https://github.com/danini-the-panini/kdl-cr/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Danielle Smith - creator and maintainer
API
- Array(T)
An
Arrayis an ordered, integer-indexed collection of objects of type T. - Hash(K, V)
A
Hashrepresents a collection of key-value mappings, similar to a dictionary. - KDL
- Object
Objectis the base type of all Crystal objects. - Reference
Referenceis the base class of classes you define in your program. - Regex
A
Regexrepresents a regular expression, a pattern that describes the contents of strings. - Value
Valueis the base type of the primitive types (Nil,Bool,Char,Number),Symbol,Pointer,Tuple,StaticArrayand all structs.