help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Short hand expression operators


From: Philip Herron
Subject: Short hand expression operators
Date: Wed, 24 Mar 2010 23:34:38 +0000
User-agent: Thunderbird 2.0.0.23 (X11/20090817)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey guys

I was just thinking until now in my language i haven't allowed
operators like '++' or '+=' etc. Though in the Lex and Yacc book i
took the example of using:

'-' express %prec UMINUS

inline with my usual:

exp '+' exp etc, so this allows '-2 + x' and the like. Which i guess
is half way to allowing: x++ or x-- or x+=2 and the nice short hand
operators.

Would be nice if you could point me in the right direction of how to
handle the grammar of these kinds of operators.

Thanks

- --Phil
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkuqoYcACgkQAhcOgIaQQ2EbXwCffc7InxU9qDbURvGGmmKjgmgc
9JwAnR8cCkEVK4I9ZiG3Dhw8L3SwW3jo
=acED
-----END PGP SIGNATURE-----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]