<div class="gmail_quote">On 17 January 2012 23:53, Dmitry Pavlov <span dir="ltr"><<a href="mailto:dpavlov@ipa.nw.ru">dpavlov@ipa.nw.ru</a>></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'd contemplated this idea as it simplifies the parser, but complicates the language. I think I'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 'word-token whose value is "is"'). As I mentioned in my reply to Eric, it'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'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>