source: trunk/yao/share/antlr-2.7.7/examples/python/multiLexer/multilex_p.g @ 1

Last change on this file since 1 was 1, checked in by lnalod, 15 years ago

Initial import of YAO sources

File size: 453 bytes
Line 
1// This file is part of PyANTLR. See LICENSE.txt for license
2// details..........Copyright (C) Wolfgang Haefelinger, 2004.
3//
4// $Id$
5
6options {
7    language=Python;
8}
9
10class multilex_p extends Parser;
11options {
12        importVocab=Java;
13}
14
15input
16        :       ( (javadoc)? INT ID SEMI )+
17        ;
18
19javadoc
20        :       JAVADOC_OPEN
21                {
22            import javadoc_p
23            jdocparser = javadoc_p.Parser(self.getInputState())
24            jdocparser.content();
25                }
26                JAVADOC_CLOSE
27        ;
Note: See TracBrowser for help on using the repository browser.