<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -2,5 +2,6 @@ Different parts of Ioke is covered by different licences and copyrights:
 
 The package ioke.lang is covered by the file LICENSE.
 The package gnu.math is covered by the file LICENSE.kawa.
+The package org.jregex and subpackages contains their own licensing information in the source files.
 
 Everything else is covered by the file LICENSE, unless noted.</diff>
      <filename>COPYING</filename>
    </modified>
    <modified>
      <diff>@@ -1,8 +1,6 @@
 missing:
 --------
 
-- hex syntax for numbers!!
-
 - in?      as in &quot;13 in?(aList)&quot;
 - same?    more or less same as &quot;one uniqueHexId == two uniqueHexId&quot;
 </diff>
      <filename>docs/missing_methods_and_stuff</filename>
    </modified>
    <modified>
      <diff>@@ -18,7 +18,11 @@ public class Number extends IokeData {
     private final IntNum value;
 
     public Number(String textRepresentation) {
-        value = IntNum.valueOf(textRepresentation);
+        if(textRepresentation.startsWith(&quot;0x&quot;) || textRepresentation.startsWith(&quot;0X&quot;)) {
+            value = IntNum.valueOf(textRepresentation.substring(2), 16);
+        } else {
+            value = IntNum.valueOf(textRepresentation);
+        }
     }
 
     public Number(int javaNumber) {</diff>
      <filename>src/main/ioke/lang/Number.java</filename>
    </modified>
    <modified>
      <diff>@@ -36,6 +36,30 @@ describe &quot;parsing&quot; do
       test_longer(&quot;112142342353453453453453453475434574675674564756896765786781121213200000&quot;)
     end
   end
+  
+  describe &quot;hexadecimal numbers&quot; do 
+    it &quot;should be possible to parse a 0&quot; do 
+      test_int(&quot;0x0&quot;, 0)
+    end
+
+    it &quot;should be possible to parse a 1&quot; do 
+      test_int(&quot;0x1&quot;, 1)
+    end
+
+    it &quot;should be possible to parse a larger number&quot; do 
+      test_int(&quot;0xA&quot;, 10)
+      test_int(&quot;0xb&quot;, 11)
+      test_int(&quot;0xC&quot;, 12)
+      test_int(&quot;0xD&quot;, 13)
+      test_int(&quot;0xe&quot;, 14)
+      test_int(&quot;0xF&quot;, 15)
+      test_int(&quot;0xFA111CD&quot;, 262214093)
+    end
+
+    it &quot;should be possible to parse a really large number&quot; do 
+      test_longer(&quot;0xFAD23234235FFFFFF4434334534500000000000232345234FFDDDDDDD&quot;, &quot;422632681289240890518030477270484810255193915833100047461304598650333&quot;)
+    end
+  end
 end
 
 describe &quot;Number&quot; do </diff>
      <filename>test/number_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>4b4ec3cab5086ce7452452958774f5da684e9fe3</id>
    </parent>
  </parents>
  <author>
    <name>Ola Bini</name>
    <email>ola.bini@gmail.com</email>
  </author>
  <url>http://github.com/olabini/ioke/commit/986af97c058c19513e561349035b47dd8772d9af</url>
  <id>986af97c058c19513e561349035b47dd8772d9af</id>
  <committed-date>2008-12-03T03:14:44-08:00</committed-date>
  <authored-date>2008-12-03T03:14:44-08:00</authored-date>
  <message>Add support for hexadecimal numbers</message>
  <tree>e816b2df9be6fc8672537d29d759a6594042f8c8</tree>
  <committer>
    <name>Ola Bini</name>
    <email>ola.bini@gmail.com</email>
  </committer>
</commit>
