[][src]Module romulus::ast

A module organizing the romulus abstract syntax tree

Structs

PatternMatch

A pattern match

Range

A range has two matches seperated by a comma When the first one is matched all of the lines until the end is matched will execute the body statement.

Seq

Contains multiple sub nodes

Enums

Body

A guarded statement or a plain one

Expression

A expression

Match

A match node which guard a body statement

Pattern

A sub pattern of a pattern match

Selector

A selector is a switch for a guard

Statement

A statement

Functions

parse

Parses a romulus token stream and creates a romulus AST, or returns an error message