ascii85x-0.2.4.1: Displays TI-85 variable files as text
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.TI85.File.Variable

Description

This module defines the structure of a TI-85 variable file.

Synopsis

Types

data TIVar Source #

The structure of a single variable. For the meaning of variable IDs, see idToType.

Instances

Instances details
Show TIVar Source # 
Instance details

Defined in Data.TI85.File.Variable

Methods

showsPrec :: Int -> TIVar -> ShowS #

show :: TIVar -> String #

showList :: [TIVar] -> ShowS #

newtype TIVarData Source #

The contents of a variable file (minus standard header and checksum).

Constructors

TIVarData 

Fields

Instances

Instances details
Show TIVarData Source # 
Instance details

Defined in Data.TI85.File.Variable

data VarField Source #

Scalar values can either be real or complex. Likewise, vectors, lists, etc can contain values of either.

Constructors

VarReal 
VarComplex 

Instances

Instances details
Show VarField Source # 
Instance details

Defined in Data.TI85.File.Variable

Utilities

idToType :: Word8 -> VarType Source #

Convert the variable ID word from a variable file into its type. From https://www.ticalc.org/pub/text/calcinfo/ti86prot.txt:

Type IDDescription
00Real Number
01Complex Number
02Real Vector
03Complex Vector
04Real List
05Complex List
06Real Matrix
07Complex Matrix
08Real Constant
09Complex Constant
0AEquation
0CString
0DFunction GDB
0EPolar GDB
0FParametric GDB
10 Differential Equation GDB
11Picture
12Program
15 Directory (only used when requesting dir)
17 Function Window Settings
18 Polar Window Settings
19 Parametric Window Settings
1A Differential Equation Window Settings
1B Saved Window Size (ZRCL)
1DMemory backup
1E Unknown (only used when requesting var)

typeToId :: VarType -> Word8 Source #

Convert the variable type into its ID. See idToType.

showType :: VarType -> Text Source #

Convert a variable type to its textual representation.