package

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

  1. Add the dependency to your shard.yml:

    dependencies:
      kdl:
        github: danini-the-panini/kdl-cr
  2. Run shards install

Usage

require "kdl"

KDL.parse_document(a_string) #=> KDL::Document

Contributing

  1. Fork it (https://github.com/danini-the-panini/kdl-cr/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

API

  • Array(T)

    An Array is an ordered, integer-indexed collection of objects of type T.

  • Hash(K, V)

    A Hash represents a collection of key-value mappings, similar to a dictionary.

  • KDL
  • Object

    Object is the base type of all Crystal objects.

  • Reference

    Reference is the base class of classes you define in your program.

  • Regex

    A Regex represents a regular expression, a pattern that describes the contents of strings.

  • Value

    Value is the base type of the primitive types (Nil, Bool, Char, Number), Symbol, Pointer, Tuple, StaticArray and all structs.