Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2007-05-11 10:07:42


John Reid wrote:

>
> Vladimir Prus wrote:
>>
>> Does your generator takes .gl files as input, or as output?
>
> I may have misunderstood but I think these lines register the generator
> to take gp and gl as input?
>
> generators.register [ new antlr-generator antlr.parser : GP : CPP HPP ] ;
> generators.register [ new antlr-generator antlr.lexer : GL : CPP HPP ] ;

As, here GP and GL are inputs, so looks fine to me.

>> If it takes them as input, this behaviour is expected:
>>
>> lexer.gl/<antrl-name>SimpleLexer
>>
>> builds lexer.gl adding the specified property to build request.
>
>
>> If this is just file, then any properties in build request have
>> no effect.
> What do you mean "if this is just file" : you mean if lexer.gl is just a
> file? By no effect you mean that the <antlr-name>SimpleLexer property is
> not passed on?

Precisely. If lexer.gl was a target, it would be built with <antlr-name>SimpleLexer.
Since it's just a file, there's nothing to build, and therefore <antlr-name>SimpleLexer is
not used.

- Volodya


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk