[Chicken-users] Egg request: banterpixra

2010-07-12 Thread Alaric Snell-Pym


Hello all,

I've written a quick few hundred lines of Chicken Scheme that converts
BNF-esque grammars such as:

(s-expression
 . (choice
(seq ( (one-or-more s-expression) . s-expression ))
(seq ( (zero-or-more s-expression) ))
(seq \ string \)
(seq #( (zero-or-more s-expression) ))
(seq # symbol)
(seq : symbol)
(seq symbol :)
symbol
number
(seq ' s-expression)
(seq ` s-expression)
(seq , s-expression)
(seq ,@ s-expression)))

(symbol
 . (choice
(seq | (one-or-more character) |)
(seq symbol-first-character (zero-or-more
symbol-subsequent-character

Into SVG syntax diagrams such as:

http://love.warhead.org.uk/~alaric/junk/sexpr.svg

It uses matchable and sxpath-lolevel (from the sxpath egg) - the latter
for turning the sxml representation of SVG into yucky XML.

If it's of use to anybody else (I wrote it so I could draw syntax
diagrams for the constructed language Lojban - see
http://love.warhead.org.uk/~alaric/junk/lojban.svg for a more stressful
workout of the layout engine), I'd like to put it in an egg, please!

ABS

--
Alaric Snell-Pym
http://www.snell-pym.org.uk/alaric/

___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Egg request: banterpixra

2010-07-12 Thread Mario Domenech Goulart
Hi Alaric

On Mon, 12 Jul 2010 14:10:14 +0100 Alaric Snell-Pym ala...@snell-pym.org.uk 
wrote:

 I've written a quick few hundred lines of Chicken Scheme that converts
 BNF-esque grammars such as:

 (s-expression
  . (choice
 (seq ( (one-or-more s-expression) . s-expression ))
 (seq ( (zero-or-more s-expression) ))
 (seq \ string \)
 (seq #( (zero-or-more s-expression) ))
 (seq # symbol)
 (seq : symbol)
 (seq symbol :)
 symbol
 number
 (seq ' s-expression)
 (seq ` s-expression)
 (seq , s-expression)
 (seq ,@ s-expression)))

 (symbol
  . (choice
 (seq | (one-or-more character) |)
 (seq symbol-first-character (zero-or-more
 symbol-subsequent-character

 Into SVG syntax diagrams such as:

 http://love.warhead.org.uk/~alaric/junk/sexpr.svg

 It uses matchable and sxpath-lolevel (from the sxpath egg) - the latter
 for turning the sxml representation of SVG into yucky XML.

 If it's of use to anybody else (I wrote it so I could draw syntax
 diagrams for the constructed language Lojban - see
 http://love.warhead.org.uk/~alaric/junk/lojban.svg for a more stressful
 workout of the layout engine), I'd like to put it in an egg, please!

Very nice.  The banterpixra directory has been created in the eggs
repo.  Thank you.

Best wishes.
Mario
-- 
http://parenteses.org/mario

___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] Usage of get-line-number

2010-07-12 Thread Christian Kellermann
Hi Chickenistas,

Since I agree with Alejandro to the point that having more line
information in assert is a nice thing to have I had a look at the
code in chicken-syntax.scm.

Since assert is a macro that gets expanded it seems that macros
don't get an entry in ##sys#line-number-database. Is that right?
Also I could not come up with a usage case of (get-line-number EXP)
that does return any number for me. How am I supposed to use that
procedure?

I am sorry if I am  asking an obvious thing, it is too hot here to
think...

Kind regards,

Christian

___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users