Skip to main content

Crate geno

Crate geno 

Source
Expand description

A cross-language schema compiler that generates type definitions and serialization code from a simple, declarative schema language. This crate contains the Abstract Syntaxt Tree (AST), errors and parsing code for the Geno tool.

Modules§

ast
Namespace containing the AST structures
case
Namespace containing case conversion utilities

Structs§

Location
A location within a source file
Parser
A parser for Geno schemas
StandardFileResolver
A standard file resolver that uses a [HashSet] to track included files.
Token
A token together with its position in the source.
Tokenizer
Lexical tokenizer for the Geno schema language.

Enums§

ParserError
Error produced by the parser.
ResolverError
Error type for file resolver operations.
TokenKind
Every distinct token kind in the Geno language.
TokenizeError
Error produced by the tokenizer.

Traits§

FileResolver
Trait for resolving file paths and reading file contents.