| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Language.Lua.Annotated.Lexer
Synopsis
- llex :: Text -> [Lexeme Token]
- llexNamed :: String -> Text -> [Lexeme Token]
- llexNamedWithWhiteSpace :: String -> Text -> [Lexeme Token]
- llexFile :: FilePath -> IO [Lexeme Token]
- data SourcePos = SourcePos {
- sourceIndex :: !Int
- sourceLine :: !Int
- sourceColumn :: !Int
- sourceFile :: !Text
- data SourceRange = SourceRange {
- sourceFrom :: !SourcePos
- sourceTo :: !SourcePos
- dropWhiteSpace :: [Lexeme Token] -> [Lexeme Token]
- data Lexeme t = Lexeme {
- lexemeText :: !Text
- lexemeToken :: !t
- lexemeRange :: !SourceRange
Documentation
Lua lexer with explicit name.
llexNamedWithWhiteSpace Source #
Lua lexer with explicit name, preseves white space and comments.
Constructors
| SourcePos | |
Fields
| |
data SourceRange #
A range in the source code.
Constructors
| SourceRange | |
Fields
| |
Instances
| HasRange SourceRange | |
Defined in AlexTools Methods range :: SourceRange -> SourceRange # | |
| Show SourceRange | |
Defined in AlexTools Methods showsPrec :: Int -> SourceRange -> ShowS # show :: SourceRange -> String # showList :: [SourceRange] -> ShowS # | |
| NFData SourceRange | |
Defined in AlexTools Methods rnf :: SourceRange -> () # | |
| Eq SourceRange | |
Defined in AlexTools | |
| Lift SourceRange | |
Defined in AlexTools Methods lift :: Quote m => SourceRange -> m Exp # liftTyped :: forall (m :: Type -> Type). Quote m => SourceRange -> Code m SourceRange # | |
dropWhiteSpace :: [Lexeme Token] -> [Lexeme Token] Source #
This function drops whitespace and comments from a list of lexemes in order to make it suitable for parsing.
Constructors
| Lexeme | |
Fields
| |