webidl-0.1.1: Parser and Pretty Printer for the Web IDL LanguageSource codeContentsIndex
Language.WebIDL.Lexer
Portabilityportable
Stabilityexperimental
Maintainergolubovsky@gmail.com
Description
FFI access to the WebIDL lexer from the es-operating-system project.
Synopsis
data Token = Token {
tag :: Int
line :: Int
column :: Int
name :: String
}
pickToken :: IO Token
lexStdin :: IO [Token]
Documentation
data Token Source
Data type to represent IDL tokens.
Constructors
Token
tag :: Intwhatever yylex() returns
line :: Intstarting line
column :: Intstarting column
name :: Stringtoken value or an empty string
show/hide Instances
pickToken :: IO TokenSource
Get a token from the lexer. Upon EOF, token with tag 0 will be returned.
lexStdin :: IO [Token]Source
Tokenize the standard input.
Produced by Haddock version 2.4.2