hydrogen-util-0.8: Hydrogen Tools

Safe HaskellNone
LanguageHaskell2010

Hydrogen.Util

Synopsis

Documentation

sya Source

Arguments

:: (Ord p, Eq o) 
=> (a -> Maybe o)

Determine operator

-> (o -> Bool)

Is left precedence?

-> (o -> p)

Precedence of given operator

-> [a]

The input stream (infix notation)

-> [a]

The output stream (postfix notation)

Infix to postfix notation (an implementation of the Shunting-Yard-Algorithm)