|(mm)||Java applet to unscramble C declaration|
|Home | Software | Count|
This is a java applet which can unscramble C declarations. The code to parse C declaration is translated from the C code described in K&R, 2nd edition, page 123.
Here are some C declarations from K&R, page 122. Try without the applet first and see if you can unscramble them.
Note: It can not handle declarations with function argument types or qualifiers like const, volatile etc. For Example: it can not handle declaration like: char * const (a) (int **b) Therefore, you have to rewrite the declaration to char *(a) ()
Rules for unscrambling
Here is an example of the above rules. Let unscramble it:char (*(*x)())
This applet is in the public domain. Do anything you like with it. It would be nice but not required if you give me the credit for it.If you are using this applet, please let me know. Bug reports, suggestions are always welcome!
Initial release: Aug-09-1996
URL of this page:
|back||Page updated: Tue Feb 25 19:50:46 2014 GMT Copyright © 2014 email@example.com.|