static   class   RonBuilder

Builder functions for RON AST's.

static   RonSome   Some  (RonElement value)

Create a some value.

value: The value fo the some.
returns: A RonSome AST Element.

static   RonNone   None  { get; }

A RonNone ast Element.

static   RonTuple   Tuple  (params RonElement[] values)

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.

static   RonRawIdentifier   RawIdent  (string name)

Create a raw identifier with the specified name.

name: The name of the identifier.
returns: A RonRawIdentifier AST element.

static   RonNamedValue   NamedValue  (RonElement name,RonElement value)

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.

static   RonNamedValue   NamedValue  (string name,RonElement value)

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.

static   RonTupleStruct   TupleStruct  (string name,params RonElement[] body)

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.

static   RonNamedValueStruct   NamedValueStruct  (string name,params RonElement[] body)

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.

static   RonMapItem   MapItem  (RonElement key,RonElement value)

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.

static   RonMap   Map  (params RonElement[] values)

Create a map with the specified values.

values: The values of the RonMap. These should be RonMapItem's.
returns: A RonMap AST element.

static   RonList   List  (params RonElement[] values)

Create a list with the specified values.

values: The values of the list.
returns: A RonList AST element.

static   RonRange   Range  (RonElement? left,RonRangeOperator op,RonElement? right)

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.

static   RonDocument   Doc  (RonElement value)

Create a document with the specified element.

value: The value of the document.
returns: A RonDocument AST element.