[][src]Module chrysanthemum::ast

Abstract syntax tree. Someday we'll have a parser too.

Hah, can we just derive Deserialize for all of these and use RON?

We totally can but it's less helpful than I'd hoped.

Structs

FunctionDecl
Param
StructureDecl
Type

A type name.

Enums

Decl
Expr

Expression that returns a value.

Lit
Op

Math or logic operation

Pattern

A pattern in a pattern-match or the left side of a let. Noooot very complete yet. Need to think about how things fit together more. Structure patterns are going to be especially important.

UOp

Unary operation

Type Definitions

Exprs

Just a shortcut.