[Hardhats-members] Scanning HL7 with (f)lex??

2005-01-05 Thread Greg Woodhouse
I have a question for those of you who are familiar with lex and yacc. Obviously, if the literal strings "|", "^", etc. are treated as otherwise uninterpreted tokens, an HL7 v2 message cannot be parsed with any context free grammar, but if after reading the first 5 characters, we make them the toke

Re: [Hardhats-members] Scanning HL7 with (f)lex??

2005-01-06 Thread whitten
> > I have a question for those of you who are familiar with lex and yacc. > Obviously, if the literal strings "|", "^", etc. are treated as > otherwise uninterpreted tokens, an HL7 v2 message cannot be parsed with > any context free grammar, but if after reading the first 5 characters, > we make

Re: [Hardhats-members] Scanning HL7 with (f)lex??

2005-01-06 Thread Greg Woodhouse
Thanks for the link. I've only been browsing the web site so far, but I'm intrigued. I have never before seen a tool for generating parsers for LL(k) where k > 1. Then again, the web site was worthwhile for the author's motto "Why spend five days coding by hand what you can spend five years of y