[AsnEditor-CVS] ASN1EditorPlugin/javasrc/net/sourceforge/asneditor/model/grammar ASN1.g,1.8,1.9,
Brought to you by:
bogdans10
From: Bogdan S. <bog...@us...> - 2005-05-06 14:42:35
|
Update of /cvsroot/asneditor/ASN1EditorPlugin/javasrc/net/sourceforge/asneditor/model/grammar In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32405/javasrc/net/sourceforge/asneditor/model/grammar Modified Files: ASN1.g Log Message: added start and end info for module, imports, exports, values and types Index: ASN1.g =================================================================== RCS file: /cvsroot/asneditor/ASN1EditorPlugin/javasrc/net/sourceforge/asneditor/model/grammar/ASN1.g,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** ASN1.g 17 Apr 2005 22:34:57 -0000 1.8 --- ASN1.g 6 May 2005 14:42:22 -0000 1.9 *************** *** 1,1131 **** ! header { ! /** ! * Copyright (c) 2005 Bogdan Stanca. All rights reserved. ! * Based upon the grammar submitted by Vivek Gupta to antlr.org. ! * ! * This program is made available under the terms of the ! * Eclipse Public License v1.0 which accompanies this distribution, ! * and is available at http://www.eclipse.org/legal/epl-v10.html ! * ! * THIS SOFTWARE IS PROVIDED "AS-IS," [...2238 lines suppressed...] ! protected ! defined_value returns [AsnDefinedValue defval] ! {defval = new AsnDefinedValue(); } ! : ((up:UPPER {defval.moduleIdentifier = up.getText(); defval.setToken(up);} ! DOT {defval.isDotPresent=true;})? ! lid:LOWER { defval.name = lid.getText(); defval.setToken(lid);}) ! ; ! ! signed_number returns [AsnSignedNumber i] ! {i = new AsnSignedNumber() ; String s ; } ! : ((MINUS {i.positive=false;})? ! (n:NUMBER {s = n.getText(); i.num= new BigInteger(s); i.setToken(n); i.setToken(n);}) ) ! ; ! ! named_value returns [AsnNamedValue nameval] ! {nameval = new AsnNamedValue(); AsnValue val;} ! : (lid:LOWER {nameval.name = lid.getText(); nameval.setToken(lid);} ! val=value {nameval.value = val; nameval.setToken(lid); }) ! ; ! |