Nice/src/bossa/syntax constant.nice,1.11,1.12

Arjan Boeijink <[email protected]>
Newsgroups gmane.comp.lang.nice.cvs
Message-ID <[email protected]>
Update of /cvsroot/nice/Nice/src/bossa/syntax
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22573/F:/nice/src/bossa/syntax

Modified Files:
	constant.nice 
Log Message:
Implemented binary literals like '0b1111000'.

Index: constant.nice
===================================================================
RCS file: /cvsroot/nice/Nice/src/bossa/syntax/constant.nice,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** constant.nice	17 Jan 2005 13:16:57 -0000	1.11
--- constant.nice	11 Mar 2005 21:32:01 -0000	1.12
***************
*** 182,185 ****
--- 182,190 ----
        radix = 16;
      }
+   else if (rep.startsWith("0b", index) || rep.startsWith("0B", index)) 
+     {
+       index += 2;
+       radix = 2;
+     }
    else if (rep.startsWith("#", index)) 
      {



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.