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.
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
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
>
>
>
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
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.