On 25 Oct 2001, Patrick Henry wrote:

> Re: ASN.1 Specification
> 
> Thanks All,
> 
> Your points are well taken. But I beg another moment's indulgence...
> 
> IMPORTS A, B, C FROM ModuleA foobar , -- this comma makes foobar
>         d, e, f FROM ModuleB;         -- part of SymbolList
> -- vs
> 
> IMPORT  A, B, C FROM ModuleA foobar   -- more appealing to the eye?
> IMPORT  d, e, f FROM ModuleB;
> 
> This could be achieved without breaking any existing specifications...
> [...]
> which, of course, is LR(1) and can be parsed by any college sophomore.
> 
> It essentially unrolls SymbolFromModuleList into a list of IMPORT
> statements and might be more familiar to the Internet techies.
> 
> Then, out with the old, in with the new!

Look at ASN.1 in full and you will see that the above is just one of a
bunch of things that you would need to change about ASN.1 in order to make
it LR(1).  As others on this thread have pointed out, you can make your
own changes to the BNF to work better with whatever whatever compiler
building tools you choose to utilize.

-------------------------------------------------------------------------
Bancroft Scott                               Toll Free    :1-888-OSS-ASN1
OSS Nokalva                                  International:1-732-302-0750
[EMAIL PROTECTED]                                 Tech Support :1-732-302-9669 x-1
1-732-302-9669 x-200                         Fax          :1-732-302-0023
http://www.oss.com


Reply via email to