Skip to content

The DY library is a Rust crate to quickly define a new delighftul human writable syntax, optimized for redaction. Developed for PLX and Delibay.

License

Notifications You must be signed in to change notification settings

samuelroland/dy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DY library

The DY library is a Rust crate to quickly define a new delightful human writable syntax, optimized for redaction. This is a halfway between Markdown and YAML.

This is built to be used by the PLX project. Future usage is also planned in Delibay.

Example

Definition of a programming exercise

With a pipe implementation in a custom shell started in Qemu via a ./st script. For PLX.

Definition of a multiple choice question

For Delibay.

Error display

Considering this pretty wrong definition of a course in a course.dy file

code YEP
course PRG1
goal Learn C++
course PRG2

The parser is able to to generate this kind of errors list

Found 1 item in course.dy with 3 errors.

Error at course.dy:0:0
code YEP
^^^^ The 'code' key can be only used under a `course`

Error at course.dy:1:0
course PRG1
| Missing required key 'code'

Error at course.dy:3:0
course PRG2
^^^^^^ The 'course' key can only be used once in the document root

About

The DY library is a Rust crate to quickly define a new delighftul human writable syntax, optimized for redaction. Developed for PLX and Delibay.

Resources

License

Stars

Watchers

Forks

Languages