Re: [Chicken-users] Parsing Simple Markup

2014-09-23 Thread Yves Cloutier
Wow...that is just perfect...suddenly I'm in love with Scheme :) On Mon, Sep 22, 2014 at 8:01 AM, Andy Bennett wrote: > Hi, > > > Actually due to the possible presence of nested commands, it should > > probably be something more generic, since in the last example: > > > > (bold (smallcap (size 2

Re: [Chicken-users] Parsing Simple Markup

2014-09-22 Thread Andy Bennett
Hi, > Actually due to the possible presence of nested commands, it should > probably be something more generic, since in the last example: > > (bold (smallcap (size 2 "text"))) > > what the procedure 'bold' would be taking in is not a string "text", but > rather an expression...so this is where

Re: [Chicken-users] Parsing Simple Markup

2014-09-22 Thread Jörg F. Wittenberger
Did I already recommend this? Sorry if that's a duplication. One more example of SXML together with SRFI 110 sweet expressions (indent sensitive LISP syntax). Those two blend well together. I'm using them embedded in XML (XSLT) here: http://ball.askemos.org/Aa176138e655369f8c01c3044ced70cfc

Re: [Chicken-users] Parsing Simple Markup

2014-09-21 Thread Arthur Maciel
Dear Yves, with SXML you could write transformation rules as Peter has shown in www.more-magic.net/docs/scheme/sxslt.pdf. I'm not experienced with SXML, but AFAIK they would generate a similar effect as the procedures in your example below. Best wishes, Arthur 2014-09-21 17:06 GMT-03:00 Yves Clo

Re: [Chicken-users] Parsing Simple Markup

2014-09-21 Thread Yves Cloutier
Hello Oleg, Thank you for your recommendations too. I actually just came back from the local library where I picked up "The Scheme Programming Language". You know, reading through your reply, it was the last part that made me think about something. If I can convert my input to the format: (bol

Re: [Chicken-users] Parsing Simple Markup

2014-09-21 Thread Yves Cloutier
Peter/Andy/Richard, Thanks so much for your replies. Richard: Thanks for showing me how to install input-parse from the command line...I had no idea!. Also thanks for the link comparing how things are done using Python as a comparison. Got me reading a file in 30 seconds! And/Peter: Thank you

Re: [Chicken-users] Parsing Simple Markup

2014-09-21 Thread Andy Bennett
Hi, > I am a new user to Scheme in general and to Chicken in particular, nice > to meet you all. Welcome! > A few examples of what I am trying to parse: > > 1. Tags that identify structural elements of a document: > [chapter] "Chapter Title" > [heading1] "Heading Title" > [list] > ... > [end]

Re: [Chicken-users] Parsing Simple Markup

2014-09-21 Thread Peter Bex
On Sat, Sep 20, 2014 at 11:19:08AM -0400, Yves Cloutier wrote: > Hello, > > I am a new user to Scheme in general and to Chicken in particular, nice to > meet you all. Hello Yves, and welcome to the CHICKEN community! > I came to scheme looking for an alternative to Perl for doing a personal > p

Re: [Chicken-users] Parsing Simple Markup

2014-09-20 Thread Oleg Kolosov
On 09/20/14 19:19, Yves Cloutier wrote: > Hello, > > I am a new user to Scheme in general and to Chicken in particular, nice > to meet you all. Welcome! > > Scheme is a totally different paradigm that I'm used to, so while I wait > for my books to arrive I will need some hand-holding...hope th

Re: [Chicken-users] Parsing Simple Markup

2014-09-20 Thread Richard
On Sat, 20 Sep 2014 11:19:08 -0400 Yves Cloutier wrote: > Hello, > > I am a new user to Scheme in general and to Chicken in particular, > nice to meet you all. > > I came to scheme looking for an alternative to Perl for doing a > personal project which involves parsing an input file, identifyi