<div class="gmail_quote">On 17 January 2012 23:53, Dmitry Pavlov <span dir="ltr">&lt;<a href="mailto:dpavlov@ipa.nw.ru">dpavlov@ipa.nw.ru</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

To work that around, I would<br>
change the lexer rules by putting mandatory quotes around<br>
facts or something like that.<br><br></blockquote><div><br></div><div>Thanks Dmitry, I&#39;d contemplated this idea as it simplifies the parser, but complicates the language. I think I&#39;ve run into other limitations with the parser as well (such as the ability to generate transformations on arbitrary tokens, where a rule could be &#39;word-token whose value is &quot;is&quot;&#39;). As I mentioned in my reply to Eric, it&#39;s beginning to look like a battery of regexes is my weapon of choice in the short term. In the longer term a hand-crafted lexer combined with Thompson&#39;s parsing algorithm might be the way to go. Thanks for your reply and regards.</div>

<div>Simon.</div><div><br></div><div><br></div></div>