glazed_corn/parser
Types
pub type Entry {
String(List(token.StringPart))
Integer(Int)
Float(Float)
Boolean(Bool)
Object(pairs: List(PairOrSpread))
Array(List(EntryOrSpread))
Null
Input(String)
}
Constructors
-
String(List(token.StringPart)) -
Integer(Int) -
Float(Float) -
Boolean(Bool) -
Object(pairs: List(PairOrSpread)) -
Array(List(EntryOrSpread)) -
Null -
Input(String)
pub type Root {
Root(
inputs: dict.Dict(String, Entry),
object: List(PairOrSpread),
)
}
Constructors
-
Root( inputs: dict.Dict(String, Entry), object: List(PairOrSpread), )
Values
pub fn parse(
tokens: List(token.Token),
) -> Result(Root, error.ParseError)