<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: localize code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Fri, 25 Jul 2008 06:11:21 GMT</pubDate>
    <description>DZone Snippets: localize code</description>
    <item>
      <title>Localizing a dialect with ALIAS</title>
      <link>http://snippets.dzone.com/posts/show/1201</link>
      <description>&lt;code&gt;&lt;br /&gt;; Localizing a dialect; obviously just a basic idea.&lt;br /&gt;&lt;br /&gt;alias 'who   "welche"&lt;br /&gt;alias 'where "wo"&lt;br /&gt;alias 'when  "wann"&lt;br /&gt;&lt;br /&gt;rule: [&lt;br /&gt;    some [&lt;br /&gt;        'who   set persons [word! | block!] |&lt;br /&gt;        'where set place string! |&lt;br /&gt;        'when  set time time!&lt;br /&gt;    ]&lt;br /&gt;    to end&lt;br /&gt;]&lt;br /&gt;&lt;br /&gt;time: place: persons: none&lt;br /&gt;parse [&lt;br /&gt;    who   Fred&lt;br /&gt;    where "Your house"&lt;br /&gt;    when  9:30&lt;br /&gt;] rule&lt;br /&gt;print [time place persons]&lt;br /&gt;&lt;br /&gt;time: place: persons: none&lt;br /&gt;parse [&lt;br /&gt;    welche Karl&lt;br /&gt;    wo     "Euer Haus"&lt;br /&gt;    wann   11:30&lt;br /&gt;] rule&lt;br /&gt;print [time place persons]&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Thu, 19 Jan 2006 03:17:36 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/1201</guid>
      <author>gregg.irwin (Gregg Irwin)</author>
    </item>
  </channel>
</rss>
