Question about "Power" and "Factorial"
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Teerakarn_Thanyavinichkul
Posted On:   Monday, July 18, 2011 06:33 PM

Dear,


i have some question about CFG, my code look like this.



pNf returns [int value]

: e=atom ('^'z=atom

{ $value = xxx ;}

|'!' {$value = yyy ;})?

;


so i want to use '^' as a Power sign

and '!' as a Factorial sign.


what should i do with xxx and yyy parts?


Best

Teerakarn T.

About | Sitemap | Contact