glualint-1.28.0: Attempts to fix your syntax erroring Lua files.
Safe HaskellSafe-Inferred
LanguageHaskell2010

GLua.TokenTypes

Description

Contains class instances and functions related to tokens

Synopsis

Documentation

mapMtok :: (Token -> a) -> MToken -> a Source #

Map function for an MToken

isWhitespace :: MToken -> Bool Source #

Whether an mtoken is a comment

isComment :: MToken -> Bool Source #

Whether an mtoken is a comment

splitComments :: [MToken] -> ([MToken], [MToken]) Source #

Split the tokens by comments and other tokens

tokenLabel :: MToken -> String Source #

Extracts the label name out of the token, returns empty string when the token is not a label or identifier.

tokenSize :: Token -> Int Source #

The size of a token in characters

Orphan instances

FromJSON MToken Source # 
Instance details

FromJSON Token Source # 
Instance details

ToJSON MToken Source # 
Instance details

ToJSON Token Source # 
Instance details

Generic MToken Source # 
Instance details

Associated Types

type Rep MToken :: Type -> Type #

Methods

from :: MToken -> Rep MToken x #

to :: Rep MToken x -> MToken #

Show MToken Source # 
Instance details

Show Token Source #

Simple show instance

Instance details

Methods

showsPrec :: Int -> Token -> ShowS #

show :: Token -> String #

showList :: [Token] -> ShowS #

Eq MToken Source #

Simple EQ instance. TODO: check for position equality

Instance details

Methods

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

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

Ord MToken Source #

Simple Ord instance. TODO: check for position Ord

Instance details