Alex 2.0

Immanuel Litzroth immanuell@enfocus.be
22 Aug 2003 19:03:09 +0200


>>>>> "Per" == Per Larsson <per@L4i.se> writes:
    Per> Here comes a silly example which in any case works as
    Per> expected on my linux system with alex and ghc.

    Per> file "foo.x" contains: ------------------------------------ {
    Per> module Main (main) where }

    Per> %wrapper "basic"

    Per> words :-

    Per> $white+ ; A{3,5} { \s -> () }

    Per> { main = do s <- getContents print (length (alexScanTokens
    Per> s)) } -------------------------------------------

    Per> % alex foo.x % ghc --make foo.hs % a.out < testfile.txt

    Per> Regards Per _______________________________________________
    Per> Haskell mailing list Haskell@haskell.org
    Per> http://www.haskell.org/mailman/listinfo/haskell


ok, i'll try this, but I was trying to write the in the regexp
section, e.g.
@test = A{3,4}
and that did not work. Should it?
Immanuel

-- 
***************************************************************************
It makes me uncomfortable to see
An English spinster of the middle class
Describe the amorous effects of `brass',
Reveal so frankly and with such sobriety
The economic basis of society.
W.H. Auden

--
Immanuel Litzroth
Software Development Engineer
Enfocus Software
Kleindokkaai 3-5
B-9000 Gent
Belgium
Voice: +32 9 269 23 90
Fax : +32 9 269 16 91
Email: Immanuell@enfocus.be
web : www.enfocus.be
***************************************************************************