ace-0.6: Attempto Controlled English parser and printer
Safe HaskellSafe-Inferred
LanguageHaskell98

ACE.Types.Tokens

Description

Tokens for ACE.

Synopsis

Documentation

data Token Source #

A token

Constructors

Word !(Int, Int) !Text 
QuotedString !(Int, Int) !Text 
Period !(Int, Int) 
Comma !(Int, Int) 
QuestionMark !(Int, Int) 
Genitive !(Int, Int) !Bool 
Number !(Int, Int) !Integer 

Instances

Instances details
Eq Token Source # 
Instance details

Defined in ACE.Types.Tokens

Methods

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

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

tokenPos :: Token -> (Int, Int) Source #

Get the position of the token.