title: are you allowed to have a numeric key in a lua table?
body: <p>The following example is supposed to make a table, that can convert between a number and a string and back again, but fails to run.</p>
  
  <p>Is it because I'm using a numeric key in a dictionary type way?
  Or is it because lua starts table indices from 1?</p>
  
  <p>Is there a better way to accomplish this?</p>
  
  <pre><code>dyeColor = {
      0="black"    ,  black     = 0,
      1="red"      ,  red       = 1, 
      2="green"    ,  green     = 2,
      3="brown"    ,  brown     = 3,
      4="blue"     ,  blue      = 4,
      5="purple"   ,  purple    = 5,
      6="cyan"     ,  cyan      = 6,
      7="lightGray",  lightGray = 7,
      8="gray"     ,  gray      = 8,
      9="pink"     ,  pink      = 9,
      10="lime"     ,  lime      =10,
      11="yellow"   ,  yellow    =11,
      12="lightBlue",  lightBlue =12,
      13="magenta"  ,  magenta   =13,
      14="orange"   ,  orange    =14,
      15="white"    ,  white     =15}
  </code></pre>
  
  <p>using this online interpreter (<a href="http://repl.it/languages/Lua" rel="noreferrer">http://repl.it/languages/Lua</a>) it gives the error</p>
  
  <p><code>[string "stdin"]:2: '}' expected (to close '{' at line 1) near '='attempt to call a nil value</code></p>