asdlGen generates data structure and serializer code from ASDL specifications [1]. It is especially helpful for exchanging tree like data structures between different programming languages. Currently C, C++, Haskell, Java, Icon, OCaml and SML are supported. Although the asdlGen project itself seems no longer actively maintained, ASDL is "alive" as it is used (at least) in the Moby [2] and Python [3,4] compilers. The port optionally installs a simple usage example [5] for all seven programming languages. I developed it primarily to test the port, but it could be helpful to users of asdlGen to get a quicker start, especially if a less familiar programming language is involved in their project. Reviewers/committers can easily make use of it via the "test-demo" target. PR: ports/117703 Submitted by: Johannes 5 Joemann <joemann@beefree.free.de>
10 lines
251 B
Haskell
10 lines
251 B
Haskell
--- src/haskell/SexpLex.hs.orig 1999-08-10 20:05:41.000000000 +0200
|
|
+++ src/haskell/SexpLex.hs 2007-10-01 14:24:55.000000000 +0200
|
|
@@ -1,5 +1,7 @@
|
|
module SexpLex(Tok(..),scan,toString,) where
|
|
|
|
+import Data.Char
|
|
+
|
|
data Tok =
|
|
LP | RP
|
|
| INT Int
|