On 10/03/2012, at 4:39 AM, Martin Walch wrote:
>> The manual states
>> that there are functions "void yypushStream(java.io.Reader reader)" and
>> "void yypopStream()". However, the manual also says that they are only
>> available in the skeleton file and warns about customizing it.
>
> Now I think I have understood this: use skeleton.nested as skeleton file
> (without modifications) and use yypushStream()/yypopStream() to be able to make
> preprocesser style includes.
Yes, that is what I would advocate for implementing lexers that support #include-style inputs.
Including one lexer spec in another lexer spec is a different issue, but I don't think that is what you were trying to do.
Cheers,
Gerwin
|