views:

47

answers:

1

Title says it all. Reposted this as a new messsage (orgiginally I asked for the BNF grammar of HL7). Whilst it may be possible to express all of HL7 as BNF I need my BNF to be LALR(1) complaint (completely deterministic). Devon Cooks Gold Parser is the toolset.

Just figured I 'd ask before I started creating BNF myself.......

A: 

I do not see a reason why HL7 is not expressable as BNF, and from what I have read, it looks like it will comply with LALR(1). My reasoning is because HL7 is a standard, and therefore has a finite set of ways a message can be put together and therefore parsed. After researching the internet I am unable to find a BNF that you are looking for, so if you do create a BNF please see if you can share it with the hl7.org community! Good Luck.

AndHeCodedIt
"... because C++ is a standard, and therefore has a finite set of ways in which a program can be put together and therefore be parsed". That doesn't mean that C++ is LALR(1). HL7 may have an LALR(1) grammar, but the only way you'll really know is try to build one (it may even be easy) and see if you succeed.
Ira Baxter