#haskell - Fri 9 Mar 2007 between 22:56 and 23:20

NY Lost Funds



allbery_bint-e: sure
does he grok Peano numerals?
sjanssenrather, D is isomorphic to a [()] that is strict in the ()'s in the list
fantasmaanyone here use the Functional Graph Library for Haskell (FGL)
tankertuxSo, to translate from BNF to data decl's I'm going to need a data declaration for each non-terminal correct?
sjanssentankertux: yeah
tankertuxerr, I meant each terminal
Am I still correct?
sjanssenI think you'll need a data declaration for every terminal and nonterminal
tankertuxOk, that clears things up a bit
sjanssenunless there is an existing data type that represents the terminal well (like Int for integers, etc.)
fantasmado GHC imports have to be compiled as *.hi or can normal *.hs source be used?
ClaudiusMaximusfantasma: "ghc --make" works well for me
fantasmathanks
tankertuxHow would I represent literal strings?
sjanssentankertux: String, probably
tankertuxAssuming Variable and ArithExp are defined, how would I represent
Stmt ::= Variable := ArithExp | Stmt ; Stmt
Literal strings being the ":=
"
sjanssenyou wouldn't represent ':=' literally in your translation
bd_in parsec, it'd be more common to just do: many (do { s <- statement; semicolon; return s })
sjanssenI'd write data Stmt = Assignment Variable ArithExp | Sequence Stmt Stmt
tankertuxSo, I would just "tag" it with what is happening, and leave it at that until it needs to be interpreted?
sjanssenyes
@where pandoc
lambdabotI know nothing about pandoc.
sjanssen@where+ pandoc http://sophos.berkeley.edu/macfarlane/pandoc/
lambdabotDone.
fantasma> zip [1..10] (repeat ())
lambdabot[(1,()),(2,()),(3,()),(4,()),(5,()),(6,()),(7,()),(8,()),(9,()),(10,())]
donsok. seems to be working now , sjanssen
commit time1
X sucks
sjanssenmostly, yes
actiondons feels the wm dev crank syndrome beginning
donsfeels the wm dev crank syndrome beginning
its X that does it!
I have a plan to seperate out io effects from internal W monad actions
so we can simulate running the entire handler framework in QC
just by supplying a fake X interface. i'll have to think about it some more, but it seems possible

Page: 4 11 18 25 32 39 46 53 60 67 74 81 88 95 

IrcArchive

NY Lost Funds