cddlc

module
v0.0.0-...-6f11ea9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2023 License: Apache-2.0

README

CDDL

Build status GoDoc

Golang implementation for Concise Data Definition Language (CDDL). CDDL is an IETF standard whose main goal is to provide an easy and unambiguous way to express structures for protocol messages and data formats that use CBOR or JSON.

Warning
This repository is still in active development and may introduce breaking changes. Do not use in production

Installation

Go library
go get -u github.com/HannesKimara/cddlc
cddlc tool
go install github.com/HannesKimara/cddlc/cmd/cddlc@latest

Getting Started

cddlc demo

To get started using the parser library visit the docs

Supported features

CDDL Parser Code Generator
identifiers
(basic, hyphen-separated, *weird..ones ...)
☑*
primitives
(bool, false, true, tstr, text, "text_literal", float, float16, float32, float64, uint, int, nint, bstr, bytes, null/nil)
occurrence operators
(*, +, ?)
choice operators
(/, //)
composition operators
(~)
comparable control operators
(.lt, .le, .gt, .ge, .eq, .ne)
constraint control operators
(.size, .regexp)
collections
(groups (), arrays [], structs {})

Note
* means that the cddl construct may not be fully supported in a particular context such as identifer translation during code generation.

License

This project is licensed under the Apache-2.0 license. Please see the LICENSE file for more details.

Directories

Path Synopsis
ast
cmd
examples
Package parser implements a parser for the CDDL source.
Package parser implements a parser for the CDDL source.
runtime
transforms

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL