Crate angelmarkup

Crate angelmarkup 

Source

Structs§

AngelMarkupError
An error struct to catch Angelmarkup errors.
Token
A struct to store and retrieve data about all lexed tokens.

Functions§

clean_split
Both the string and split character have to be strings.
compile_to_json
Compiles an AML file to a JSON file.
compile_to_toml
Compiles an AML file to a TOML file.
compile_to_yaml
Compiles an AML file to a YAML file.
create_file
a boolean depending on whether the operation succeeded.
file_is
returns a boolean to that effect.
has_index
Checks if “subject” has the index “index”.
lex
The actual lexing function: Iterates through all lines and then through all characters and builds a vector of tokens while doing so and finally returns this vector.
lint
Lints your AML code. If everything is A-OK, “true” is returned.
pattern_pool
A HashMap for tokens the lexer recognises.
read_file
Tries to read a file and return its contents.
serialize
Serializes an AML string into a “HashMap”.
to_aml
Converts a HashMap into a Angelmarkup string.
to_toml
Converts a HashMap into a TOML string.
to_yaml
Converts a HashMap into a YAML string.
write_to_file
Tries to write to a file and returns a boolean depending on whether the operation succeeded.