ace-0.6: Attempto Controlled English parser and printer

Safe HaskellSafe
LanguageHaskell98

ACE.Types.Tokens

Description

Tokens for ACE.

Synopsis

Documentation

data Token #

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

Eq Token # 

Methods

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

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

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

Get the position of the token.