[erlang-bugs] ASN.1 compiler does not support multiline comments

John Webb <>
Wed May 27 04:45:03 CEST 2009


Maxim,

You may like to try the attached patch for the tokenizer

e.g.
    $ cd $(ERL_TOP)/lib/asn1
    $ patch asn1ct_tok.erl < asn1ct_tok.patch

It is my shot at implementing nested, multiline comments from the 2002  
standard. Useful when debugging specs or excluding unwanted chunks  
from large ones.

The patch was made against asn1-1.6.10.

Hope it is of some use,

John Webb

-------------- next part --------------
A non-text attachment was scrubbed...
Name: asn1ct_tok.patch
Type: application/octet-stream
Size: 1721 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20090527/bdc80e9f/attachment.obj>
-------------- next part --------------


On May 26, 2009, at 11:55 PM, Kenneth Lundin wrote:

> Hi,
>
> I would not call this a bug. It is rather that the Erlang ASN.1
> compiler does not support
> the ASN.1 standard from 2002 (or very little of it).
>
> We have so far not seen the need to support the 2002 specs of ASN.1  
> (where
> multi-line comments and other things where introduced).
>
> Do you have an example of standard protocol specified using ASN.1  
> (2002)?
> Or are you creating your own ASN.1 specifications?
>
> /Kenneth
>
> On Tue, May 26, 2009 at 11:16 AM, Maxim Treskin <>  
> wrote:
>> Hello
>>
>> ASN.1compiler from OTP does not handles /* multiline comments */
>> I have tried to fix it but it seems not so easy without some global  
>> changes
>> in lexical scanner (asn1ct_tok) due to line-by-line reading of file.
>>
>> Thank you
>>
>> --
>> Maxim Treskin
>>
>> _______________________________________________
>> erlang-bugs mailing list
>> 
>> http://www.erlang.org/mailman/listinfo/erlang-bugs
>>
> _______________________________________________
> erlang-bugs mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-bugs



More information about the erlang-bugs mailing list