This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: antlr for cygwin - sorry, URL has changed


Hi Gerrit,

uploaded new version where I corrected the /usr installation
problem. Have  not  been  able  to  reproduce the "test ==:"
problems reported.

The new URL is:
 http://www.antlr.org/share/1105607125053/antlr-2.7.5-1.cygwin.tgz

>> I don't know how to use it, so I cannot say if the binaries are actually
>> working, I think you can tell me if you get what you expect when using
>> it?

$ /usr/bin/antlr
ANTLR Parser Generator   Version 2.7.5rc2 (20050113)   1989-2005 jGuru.com
usage: java antlr.Tool [args] file.g
  -o outputDir       specify output directory where all output generated.
  -glib superGrammar specify location of supergrammar file.
  -debug             launch the ParseView debugger upon parser invocation.
  -html              generate a html file from your grammar.
  -docbook           generate a docbook sgml file from your grammar.
  -diagnostic        generate a textfile with diagnostics.
  -trace             have all rules call traceIn/traceOut.
  -traceLexer        have lexer rules call traceIn/traceOut.
  -traceParser       have parser rules call traceIn/traceOut.
  -traceTreeParser   have tree parser rules call traceIn/traceOut.
  -h|-help|--help    this message

You can also tryout a small test grammar ( 
 http://www.antlr.org/article/cutpaste/index.html
) to check whether you can compile:

 $ /usr/bin/antlr test.g

where test.g is 
================ test.g ================================
class P extends Parser;

startRule
    :   n:NAME
        {System.out.println("Hi there, "+n.getText());}
    ;

class L extends Lexer;

// one-or-more letters followed by a newline
NAME:   ( 'a'..'z'|'A'..'Z' )+ NEWLINE
    ;

NEWLINE
    :   '\r' '\n'   // DOS
    |   '\n'        // UNIX
    ;
=========================================================

The output of this compilation does not depend on Cygwin,
ie. couple of Java files, and is expected to work. 


With some small changes you can ask antlr to generate C++,
Python or even C#.

Tell me whether you like to conduct some more tests..

Cheers,
Wolfi.



-----Original Message-----
From: gp@familiehaase.de [mailto:gp@familiehaase.de]
Sent: Wednesday, January 12, 2005 11:45 PM
To: wolfgang haefelinger
Cc: cygwin-apps@cygwin.com
Subject: Re: antlr for cygwin - sorry, URL has changed


wolfgang haefelinger wrote:

> Hi,
> 
> I'm very sorry but URL sent earlier this day is wrong now (
> due to server problems I had to upload again). Package 
> should be downable from
> 
>  http://www.antlr.org/share/1105550605023/antlr-2.7.5-1.cygwin.tgz 
> 
> or checkout 
> 
>  http://www.antlr.org

Binary tarball:

The usr/ prefix is missing in the binary tarball, it should extract to
usr/bin, usr/share, ...

Source tarball:

./configure looks somewhat strange:

$ ./configure --prefix=/usr --with-javac=/usr/bin/gcj --disable-examples
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking whether this is Cygwin... checking whether this is MinGW... no
checking for cygpath.exe... /usr/bin/cygpath.exe
checking for make... /usr/bin/make
checking for make... /bin/make
test: ==: unknown operand
test: ==: unknown operand
test: ==: unknown operand
[...more...]

I'm not sure what the reason is, maybe I have something broken here?


I don't know how to use it, so I cannot say if the binaries are actually
working, I think you can tell me if you get what you expect when using
it?


Gerrit
-- 
=^..^=


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]