chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] silex command line documentation


From: felix winkelmann
Subject: Re: [Chicken-users] silex command line documentation
Date: Sat, 13 May 2006 23:12:50 +0200

On 5/13/06, Brandon J. Van Every <address@hidden> wrote:
It's a bit cryptic:

Usage: silex FILENAME [OPTION ...]

  Reads a syntax definition from FILENAME.l and generates
  a lexical analyzer named FILENAME.l.scm. For a list of
  options, see the SILex manual.


But the silex.ps I obtained from the Silex Egg webpage has no mention of
command line options at all.  Nor is inspecting the source code yielding
any clue.  In particular, I'd like to know how to generate an arbitrary
output filename.  Short of hacking around it with "mv blah.l.scm
blah.l.silex".  Also if there are any command line flags for include paths.

The change to run silex.scm as script is from me allright, here is a patch
for setting the output name:

% darcs diff silex.scm
6702c6702
< Usage: silex FILENAME [OPTION ...]
---
Usage: silex FILENAME OUTFILENAME [OPTION ...]
6705c6705
<   a lexical analyzer named FILENAME.l.scm. For a list of
---
  a lexical analyzer named OUTFILENAME. For a list of
6711,6712c6711,6713
<   (let ([fname (car args)])
<     (apply lex fname (string-append fname ".scm") (map
string->symbol (cdr args))) ) )
---
  (let ([fname (car args)]
        (oname (cadr args)) )
    (apply lex fname (cadr args) (map string->symbol (cddr args))) ) )

(I'll check this into the darcs repo in a few moments).


(felix)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]