Jikka-5.0.11.1: A transpiler from Python to C++ for competitive programming
Safe HaskellNone
LanguageHaskell2010

Jikka.RestrictedPython.Language.Value

Synopsis

Documentation

data Value Source #

Value is the values of our restricted Python-like language.

\[ \begin{array}{rl} v ::= & \dots, -2, -1, 0, 1, 2, \dots \\ \vert & \mathbf{false}, \mathbf{true} \\ \vert & \mathbf{nil} \\ \vert & \mathbf{cons}(v, v) \\ \vert & (v, v, \dots, v) \\ \vert & \lambda _ \mu x x \dots x. e \\ \vert & \mathrm{builtin} \\ \end{array} \]

Instances

Instances details
Eq Value Source # 
Instance details

Defined in Jikka.RestrictedPython.Language.Value

Methods

(==) :: Value -> Value -> Bool #

(/=) :: Value -> Value -> Bool #

Ord Value Source # 
Instance details

Defined in Jikka.RestrictedPython.Language.Value

Methods

compare :: Value -> Value -> Ordering #

(<) :: Value -> Value -> Bool #

(<=) :: Value -> Value -> Bool #

(>) :: Value -> Value -> Bool #

(>=) :: Value -> Value -> Bool #

max :: Value -> Value -> Value #

min :: Value -> Value -> Value #

Read Value Source # 
Instance details

Defined in Jikka.RestrictedPython.Language.Value

Show Value Source # 
Instance details

Defined in Jikka.RestrictedPython.Language.Value

Methods

showsPrec :: Int -> Value -> ShowS #

show :: Value -> String #

showList :: [Value] -> ShowS #

newtype Local Source #

Constructors

Local 

Instances

Instances details
Eq Local Source # 
Instance details

Defined in Jikka.RestrictedPython.Language.Value

Methods

(==) :: Local -> Local -> Bool #

(/=) :: Local -> Local -> Bool #

Ord Local Source # 
Instance details

Defined in Jikka.RestrictedPython.Language.Value

Methods

compare :: Local -> Local -> Ordering #

(<) :: Local -> Local -> Bool #

(<=) :: Local -> Local -> Bool #

(>) :: Local -> Local -> Bool #

(>=) :: Local -> Local -> Bool #

max :: Local -> Local -> Local #

min :: Local -> Local -> Local #

Read Local Source # 
Instance details

Defined in Jikka.RestrictedPython.Language.Value

Show Local Source # 
Instance details

Defined in Jikka.RestrictedPython.Language.Value

Methods

showsPrec :: Int -> Local -> ShowS #

show :: Local -> String #

showList :: [Local] -> ShowS #