Re: [Haskell-cafe] feasability of implementing an awk interpreter.

2010-08-23 Thread Richard O'Keefe
On Aug 21, 2010, at 5:14 AM, Michael Litchard wrote: Thank you all for your encouragement. I need to think about the core functionality, and do some reading. But what _is_ the core functionality. The Single Unix Specification can be browsed on-line. There is no part of it labelled core; it's

Re: [Haskell-cafe] feasability of implementing an awk interpreter.

2010-08-23 Thread Roel van Dijk
On Mon, Aug 23, 2010 at 8:07 AM, Richard O'Keefe o...@cs.otago.ac.nz wrote: But what _is_ the core functionality. The Single Unix Specification can be browsed on-line. There is no part of it labelled core; it's all required or it isn't AWK.  There are weird little gotchas like        File foo

Re: [Haskell-cafe] feasability of implementing an awk interpreter.

2010-08-23 Thread Richard O'Keefe
On Aug 23, 2010, at 7:00 PM, Roel van Dijk wrote: On Mon, Aug 23, 2010 at 8:07 AM, Richard O'Keefe o...@cs.otago.ac.nz wrote: But what _is_ the core functionality. The Single Unix Specification can be browsed on-line. There is no part of it labelled core; it's all required or it isn't AWK.

Re: [Haskell-cafe] feasability of implementing an awk interpreter.

2010-08-21 Thread Bill Atkins
I don't think Template Haskell will be essential for this - you will probably need a parser (probably written with Parsec), an eval function, and a state monad to represent imperative changes made by the language you're evaluating. Template Haskell is more for the elimination of boilerplate

Re: [Haskell-cafe] feasability of implementing an awk interpreter.

2010-08-21 Thread Brandon S Allbery KF8NH
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/21/2010 11:22 PM, Bill Atkins wrote: I don't think Template Haskell will be essential for this - you will probably need a parser (probably written with Parsec), an eval function, and a state monad to represent imperative changes made by the

Re: [Haskell-cafe] feasability of implementing an awk interpreter.

2010-08-20 Thread John Lask
On 20/08/2010 1:35 PM, Jason Dagit wrote: fairly easy .. you might want to check out the following tutorial ... http://www.crsr.net/Programming_Languages/SoftwareTools/ch5.html he implements a basic grep tool, you might then want to check out one of the regex packages as a basis for your

Re: [Haskell-cafe] feasability of implementing an awk interpreter.

2010-08-20 Thread Josef Svenningsson
On Fri, Aug 20, 2010 at 6:05 AM, Jason Dagit da...@codersbase.com wrote: On Thu, Aug 19, 2010 at 8:05 PM, Michael Litchard mich...@schmong.orgwrote: I'd like the community to give me feedback on the difficulty level of implementing an awk interpreter. What language features would be

Re: [Haskell-cafe] feasability of implementing an awk interpreter.

2010-08-20 Thread Michael Litchard
Thank you all for your encouragement. I need to think about the core functionality, and do some reading. On Fri, Aug 20, 2010 at 2:33 AM, Josef Svenningsson josef.svennings...@gmail.com wrote: On Fri, Aug 20, 2010 at 6:05 AM, Jason Dagit da...@codersbase.com wrote: On Thu, Aug 19, 2010 at

Re: [Haskell-cafe] feasability of implementing an awk interpreter.

2010-08-20 Thread Don Stewart
There's a lot of examples of languages implemented in Haskell to choose from, too http://haskell.org/haskellwiki/Applications_and_libraries/Compilers_and_interpreters#Large_languages michael: Thank you all for your encouragement. I need to think about the core functionality, and do some

Re: [Haskell-cafe] feasability of implementing an awk interpreter.

2010-08-19 Thread Brandon S Allbery KF8NH
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/19/2010 11:05 PM, Michael Litchard wrote: I'd like the community to give me feedback on the difficulty level of implementing an awk interpreter. What language features would be required? Specifically I'm hoping that TH is not necessary

Re: [Haskell-cafe] feasability of implementing an awk interpreter.

2010-08-19 Thread Jason Dagit
On Thu, Aug 19, 2010 at 8:05 PM, Michael Litchard mich...@schmong.orgwrote: I'd like the community to give me feedback on the difficulty level of implementing an awk interpreter. What language features would be required? Specifically I'm hoping that TH is not necessary because I'm nowhere