Builder functions for RON AST's.
Create a some value.
value: The value fo the some.
returns: A RonSome AST Element.
static
RonNone
None
{ get; }
A RonNone ast Element.
Create a tuple with the specified child values.
values: The elements of the tuple.
returns: A RonTuple AST element.
static
RonIdentifier
Ident
(string name)
Create an identifier with the specified name.
name: The name of the identifier.
returns: A RonIdentifier AST element.
Create a raw identifier with the specified name.
name: The name of the identifier.
returns: A RonRawIdentifier AST element.
Create a name value with a specified name and value.
name: The name of the pair.
value: The value of the pair.
returns: A RonNamedValue AST element.
Create a named value with the specified name and value.
name: The name of the pair.
value: The value of the pair.
returns: A RonNamedValue AST element.
static
RonUnitStruct
UnitStruct
(string name)
Create a struct with a name and no body.
name: The name of the struct.
returns: RonUnitStruct AST element.
static
RonBool
Bool
(bool value)
Create a ron boolean with the specified value.
value: The value of the boolean.
returns: A RonBool AST element.
Create a tuple struct with the specified name and elements.
name: The name of the struct.
body: The values of the struct.
returns: A RonTupleStruct AST element.
Create a named value struct with the specified name, and body.
name: The name of the struct.
body: The values of the struct body. These should be RonNamedValue elements.
returns: A RonNameValueStruct AST element.
Create a map item with the specified key and value.
key: The key of the map item.
value: The value of the map item.s
returns: A RonMapItem AST element.
Create a map with the specified values.
values: The values of the RonMap. These should be RonMapItem's.
returns: A RonMap AST element.
Create a list with the specified values.
values: The values of the list.
returns: A RonList AST element.
Create a range with the specified values.
left: The left hand side of the operator.
op: The operator.
right: The right hand side of the operator.
returns: A RonRange AST element.
Create a document with the specified element.
value: The value of the document.
returns: A RonDocument AST element.