Skip to main content

Crate ridl_syntax

Crate ridl_syntax 

Source
Expand description

The family lexer and grammar (epic E0, docs/ROADMAP.md).

Re-exports§

pub use keywords::Profile;

Modules§

ast
The typed AST over the rowan tree (docs/ROADMAP.md epic E1.2a, ADR-0007 decision 1).
keywords
The RIDL family reserved-word registry (typl reference §1.4).

Structs§

Parse
The result of parse: the lossless green tree plus any diagnostics.
SyntaxError
A parse diagnostic: a message, the stable diagnostic code it will carry in the coded model (FORM-… per ADR-0007 decision 2, TYPL-302 per typl reference §16.4), and the source range of the offending token.
Token
A lexed token: its SyntaxKind and the exact source slice it covers.

Enums§

RidlLanguage
The rowan Language instance for the RIDL family. It binds rowan’s raw u16 kinds to SyntaxKind through the enum’s #[repr(u16)] discriminants.
SyntaxKind
The kinds of syntax tokens and nodes the family grammar produces.

Functions§

lex
Lexes input into a flat token stream under profile.
parse
Parses input into a lossless Parse under profile.

Type Aliases§

SyntaxNode
A node in the red (cursor) tree over RidlLanguage.
SyntaxToken
A token in the red (cursor) tree over RidlLanguage.