YaccConstructor


TransformAux

Namespace: Yard.Core.Conversions

Functions and values

Function or valueDescription
addBinding _params _arg1
Signature: _params:'?8515 list -> _arg1:'?8515 option -> '?8515 list
Type parameters: '?8515
createDefaultElem rulProd
Signature: rulProd:t<'c,'d> -> elem<'c,'d>
Type parameters: 'c, 'd
createParams _arg1
Signature: _arg1:t list -> t list

Reduce param list to string. Arguments are separated by spaces

createRule name args body _public mArgs
Signature: name:t -> args:'c list -> body:t<'c,'d> -> _public:bool -> mArgs:'c list -> t<'c,'d>
Type parameters: 'c, 'd
createSimpleElem rulProd bind
Signature: rulProd:t<'?8502,'?8503> -> bind:'?8502 option -> elem<'?8502,'?8503>
Type parameters: '?8502, '?8503
createSimpleRule name args body
Signature: name:t -> args:'?8511 list -> body:t<'?8511,'?8512> -> t<'?8511,'?8512>
Type parameters: '?8511, '?8512

Non-start rule with empty meta-arguments list

getNewSource old n
Signature: old:t -> n:string -> t

Replace first (name) field in Source.t with new source

getText
Signature: t -> string
getTextIL _arg1
Signature: _arg1:t<'?8500,t> -> string
Type parameters: '?8500
list2opt _arg1
Signature: _arg1:'a list -> 'a option
Type parameters: 'a

Create option from empty or one element list

opt2list _arg1
Signature: _arg1:'?8520 option -> '?8520 list
Type parameters: '?8520
Fork me on GitHub