HsLexerGen.hs

-- This program generates the core of lexical analyser for Haskell

import HaskellLexicalSyntax(program) -- The lexical syntax specification
import LexerGen2(lexerGen)           -- The lexer generator implementation
import System(getArgs)

main = putStrLn . lexerGen "HsLex" "haskellLex" program =<< getArgs

Plain-text version of HsLexerGen.hs | Valid HTML?