JavaCC support

Hi there,I want to develop a parser w/ JavaCC. Is there Netbeans support for .jj files and their build process?Thanks!CU, Chris
[176 byte] By [Ey,Christian] at [2007-11-25 16:52:06]
# 1

On Friday 09 August 2002 15:24, Christian Ey wrote:

> Hi there,

>

> I want to develop a parser w/ JavaCC. Is there Netbeans support for .jj

> files and their build process?

I used a trick. I let .jj files to be recognized by

Java module (got a syntax coloring) then I cloned

external java compiler and customized its command line.

Cc.

Kuzel,Petr at 2007-7-2 23:52:17 > top of Java-index,Archived Forums,Sun ONE Studio 4...
# 2

Petr Kuzel wrote:

> On Friday 09 August 2002 15:24, Christian Ey wrote:

>

>>Hi there,

>>

>>I want to develop a parser w/ JavaCC. Is there Netbeans support for .jj

>>files and their build process?

>

>

> I used a trick. I let .jj files to be recognized by

> Java module (got a syntax coloring) then I cloned

> external java compiler and customized its command line.

>

>Cc.

Hi Petr,

so you added the .jj extension in options dialog to

'IDE Configuration/System/Object Types/Java Source Objects', Property

'File Extensions'

then copied entry

'Building/Compiler Types/External Compilation'

and cloned it to for examples

'Building/Compiler Types/JavaCC Compilation'

But

1. what would you use as command line?

2. syntaxhighlighting doesnt work for .jj files

3. how can netbeans keep apart usual .java file compilation and .jj

file compilation?

Thanks a lot!

Chris

Ey,Christian at 2007-7-2 23:52:17 > top of Java-index,Archived Forums,Sun ONE Studio 4...
# 3

Ant has support for JavaCC and JJTree support in it's optional.jar file.

See the ant docs for optional tasks (assuming that you are using ant

within Netbeans to build).

Michael

Christian Ey wrote:

> Petr Kuzel wrote:

>

>> On Friday 09 August 2002 15:24, Christian Ey wrote:

>>

>>> Hi there,

>>>

>>> I want to develop a parser w/ JavaCC. Is there Netbeans support for .jj

>>> files and their build process?

>>

>>

>>

>> I used a trick. I let .jj files to be recognized by

>> Java module (got a syntax coloring) then I cloned

>> external java compiler and customized its command line.

>>

>>Cc.

>

>

> Hi Petr,

>

> so you added the .jj extension in options dialog to

>

> 'IDE Configuration/System/Object Types/Java Source Objects', Property

> 'File Extensions'

>

> then copied entry

> 'Building/Compiler Types/External Compilation'

> and cloned it to for examples

> 'Building/Compiler Types/JavaCC Compilation'

>

> But

>

> 1. what would you use as command line?

> 2. syntaxhighlighting doesnt work for .jj files

> 3. how can netbeans keep apart usual .java file compilation and .jj

> file compilation?

>

> Thanks a lot!

> Chris

>

>

>

Saunders,Michael at 2007-7-2 23:52:17 > top of Java-index,Archived Forums,Sun ONE Studio 4...
# 4

Petr Kuzel schrieb:

> On Friday 09 August 2002 15:24, Christian Ey wrote:

>

>>Hi there,

>>

>>I want to develop a parser w/ JavaCC. Is there Netbeans support for .jj

>>files and their build process?

>

>

> I used a trick. I let .jj files to be recognized by

> Java module (got a syntax coloring) then I cloned

> external java compiler and customized its command line.

>

>Cc.

I have just tried that, and adding jj gives me the open option for

those files, but when opened there is no syntax highlighting (and

obviously no Indention Engine as well).

Is this a bug? Shouldn't the editor treat all objects which are defined

in that list equally (i.e. offer code completion, indention and syntax

highlighting)

Thomas

Kellerer,Thomas at 2007-7-2 23:52:17 > top of Java-index,Archived Forums,Sun ONE Studio 4...
# 5

On Wednesday 14 August 2002 09:41, Thomas Kellerer wrote:

> Petr Kuzel schrieb:

> > On Friday 09 August 2002 15:24, Christian Ey wrote:

> >>Hi there,

> >>

> >>I want to develop a parser w/ JavaCC. Is there Netbeans support for .jj

> >>files and their build process?

> >

> > I used a trick. I let .jj files to be recognized by

> > Java module (got a syntax coloring) then I cloned

> > external java compiler and customized its command line.

> >

> >Cc.

>

> I have just tried that, and adding jj gives me the open option for

> those files, but when opened there is no syntax highlighting (and

> obviously no Indention Engine as well).

I see, it does not work anymore.

> Is this a bug? Shouldn't the editor treat all objects which are defined

> in that list equally (i.e. offer code completion, indention and syntax

> highlighting)

It should to some extend. But it is not bug because Java module does not

claim it. Try to fill enhancement request or provide a java module patch.

Cc.

Kuzel,Petr at 2007-7-2 23:52:17 > top of Java-index,Archived Forums,Sun ONE Studio 4...