Idris2Doc : Text.ILex.Shunting

Text.ILex.Shunting

(source)

Definitions

dataAssoc : Type
  Infix operator associativity

Totality: total
Visibility: public export
Constructors:
None : Assoc
InfixR : Assoc
InfixL : Assoc

Hints:
EqAssoc
InterpolationAssoc
OrdAssoc
ShowAssoc
dataPrecedence : Type
  Infix operator associativity and precedence

Totality: total
Visibility: public export
Constructors:
Prefix : Nat->Precedence
Postfix : Nat->Precedence
Infix : Nat->Assoc->Precedence

Hints:
CastaPrecedence=>Cast (ByteBoundeda) Precedence
Cast (Toktpio) Precedence
EqPrecedence
InterpolationPrecedence
ShowPrecedence
toPrec : CastoPrecedence=>o->Precedence
Totality: total
Visibility: export
prec : CastoPrecedence=>o->Nat
Totality: total
Visibility: export
dataShuntingErr : Type->Type
Totality: total
Visibility: public export
Constructor: 
AssocNone : o->Precedence->ShuntingErro

Hints:
Eq{arg:12675}=>Eq (ShuntingErr{arg:12675})
Interpolationo=>Interpolation (ShuntingErro)
Show{arg:12675}=>Show (ShuntingErr{arg:12675})
dataTok : Type->Type->Type->Type->Type
  Shunting yard algorithm input token.
A token is either a term followed by an infix operator
or a single prefix operator

Totality: total
Visibility: public export
Constructors:
TPre : ByteBoundedp->Nat->Toktpio
TInf : t->ByteBoundedi->Nat->Assoc->Toktpio
TPst : ByteBoundedo->Nat->Toktpio

Hints:
Cast (Toktpio) Precedence
Eqp=>Eqt=>Eqi=>Eqo=>Eq (Toktpio)
Showp=>Showt=>Showi=>Showo=>Show (Toktpio)
0Toks : Type->Type->Type->Type->Type
Totality: total
Visibility: public export
0Skot : Type->Type->Type->Type->Type
Totality: total
Visibility: public export
shuntingYard : Cast (ShuntingErri) e=> (ByteBoundedp->t->t) -> (t->ByteBoundedi->t->t) -> (ByteBoundedo->t->t) ->Skottpio->t->Either (ByteBoundede) t
  An implementation of the
[shunting yard algorithm](https://en.wikipedia.org/wiki/Shunting_yard_algorithm)
used to convert term-operator chains such as `1 + 2 * 3 ^ 4` to proper
syntax trees based on the operators' associativity and precedence.

Totality: total
Visibility: export