Usenet.com

www.Usenet.com

Group Index

Comp Thread Archive from Usenet.com

<-- __Chronological__ --> <-- __Thread__ -->

How to "#ifdef" in grammer file ?



I am using a very old version of PCCTS v1.31. I want to add
conditionalized "ifdef" into grammer file like following:

actionExpr > [ CPtr<Expr> expr]:
   << CPtr<Expr> locExpr; >>
   ( deleteExpr > [$expr]
   | tryBlock > [$expr]
#ifdef LP
   | lpActionExpr > [$expr]
#endif
   ) << if (!$expr->isLVAL()) $expr = new ExprAction($expr); >>
   ;

#ifdef LP
lpActionExpr > [ CPtr<Expr> expr]:
...
#endif

I found that "#ifdef" is only allowed in "<<...>>" instead of syntax
definition level. I wonder if there is such a thing in PCCTS v1.31.

Any input is appreciated. Thanks.



<-- __Chronological__ --> <-- __Thread__ -->


Usenet.com



Please check out one of the premium Usenet Newsgroup Service Providers below for access to Usenet.