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

Data.TI85.Token

Description

As a kind of object file or byte code, TI-85 programs can be represented as list of tokens.

The contents of this module describe the possible tokens, and a way to convert from byte to token.

Synopsis

Documentation

data TokenDef Source #

There are several types of tokens. Most come with some instructions for what do to with the bytes following the token.

Constructors

Invalid 
Fixed Text

Representation of specific text

QuoteText

Quoted string

NameLength

A string specified by length

FixedLength Int

A fixed-length string

Extended

Look up the next token in the extended token table

Conversion

Unit conversion

Literal

Literal value, represented as text

Label

Lbl, with a text label

Goto

Goto, with a text label

Instances

Instances details
Show TokenDef Source # 
Instance details

Defined in Data.TI85.Token

tokenTable :: Array Word8 TokenDef Source #

Mapping from byte to TokenDef.

tokenTableExtended :: Array Word8 TokenDef Source #

Extended table of tokens. When the token is Extended this table is used to look up the final token.