Crate munyo

Source
Expand description

Munyo is a language. Since the API documentation isn’t enough to use it, I wrote various materials.

See readme samples lang_spec What’s DSL?

Modules§

builder
This module is not intended for general usecases
error
Errors for Munyo
file_io
Utilities for File IO.
lang
This module is not intended for general use

Structs§

Concurrent
Read files in a thread and parse them in a thread pool concurrently. The thread and the threads of the pool are automatically destroyed when no tasks are assigned for them. When a task is assigned after that, a new thread is spawned. It costs some, so you may want to assign as much tasks as possible at once to avoid the respawn cost.
IgnoredAnyVisitor
When you create a custom parser, if you need to get the rest of the line like RestOf, You can do that with this Visitor.
MunyoDeserializer
Deserializer to communicate with Serde
MunyoItem
Untyped Munyo value which can be used without implementing Serialize/Deserialize
MunyoSerializer
Serializer to communicate with Serde.
RestOf
This implements custom serde::de::Deserialize, and deserialize the rest of the arguments to a String, ignoring whitespaces. You need to use this as the last argument, otherwise deserialization will fail.

Enums§

Error
Error type of Munyo

Functions§

from_file
Deserialize items from the path of the source file of the Munyo language.
from_str
Deserialize items from the text of the Munyo language.
from_str_with_metabuilder
The most primitive interface which isn’t good for generic usage.
from_str_with_path
Deserialize items from the text and the path of the source file of the Munyo language
to_string
Serialize items to the text of Munyo language

Type Aliases§

Result
Result type of Munyo