Brian,
On Thu, 15 Apr 2004, Brian Kahne wrote:
>
> Hi,
>
> I was wondering whether there was any way, using OpenC++, to create a new
> control structure without a class modifier, e.g.
>
> par {
> ...
> }
>
> where par is the new control structure.
Do you want to use OpenC++ as a whole to translate "par { ... }"
into some other code, or you just want to reuse OpenC++ parser, but your
requirement is that is also parser "par { ... }" ?
In any case construct like this is not supported. See "Base-level
Language" in docs about similar user-defined constructs, which perhaps you
can use for the same purpose while slightly compromising your syntax.
If you insist on your syntax, you will have to extend parser. The parser is a
recursive descent parser, quite well documented in terms of what function
parses what, adding your construct should not be difficult.
Please let me know if you need more help.
BR
Grzegorz
> Is that possible?
> If not, would it be
> difficult for me to add that feature?
>
> Thanks for any info,
>
> Brian Kahne
> Austin PowerPC Design Center
> Motorola
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> Opencxx-users mailing list
> Ope...@li...
> https://lists.sourceforge.net/lists/listinfo/opencxx-users
>
>
##################################################################
# Grzegorz Jakacki Huada Electronic Design #
# Senior Engineer, CAD Dept. 1 Gaojiayuan, Chaoyang #
# tel. +86-10-64365577 x2074 Beijing 100015, China #
# Copyright (C) 2004 Grzegorz Jakacki, HED. All Rights Reserved. #
##################################################################
|