minilight-0.3.0: A SDL2-based graphics library, batteries-included.
MiniLight.Component.Internal.Resolver
data Expr Source #
Constructors
reference syntax: ${ref:...}
variable syntax: ${var:...}
expr operator: +, -, *, /
constants (string or number or null)
Defined in MiniLight.Component.Internal.Resolver
Methods
(==) :: Expr -> Expr -> Bool #
(/=) :: Expr -> Expr -> Bool #
showsPrec :: Int -> Expr -> ShowS #
show :: Expr -> String #
showList :: [Expr] -> ShowS #
parser :: Parser Expr Source #
data Context Source #
Fields
getAt :: Value -> [Either Int Text] -> Value Source #
normalize :: Vector (Either Int Text) -> [Either Int Text] -> [Either Int Text] Source #
pattern Arithmetic :: Text -> Scientific -> Scientific -> Expr Source #
eval :: Context -> Expr -> Value Source #
convertPath :: Text -> [Either Int Text] Source #
convert :: Context -> Text -> Value Source #
parseText :: Parser a -> Text -> Result a Source #
resolve :: Value -> Value Source #