⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 javadoc.g

📁 antlr最新版本V3源代码
💻 G
字号:
grammar Javadoc;options {    language=Python;}comment : ( author )* ;author  : '@author' ID {print "author "+$ID.text} ;ID      : ('a'..'z'|'A'..'Z')+        ;SIMPLE  :   '{'            {print "enter embedded Simple escape"import SimpleLexerimport SimpleParserlex = SimpleLexer.SimpleLexer(self.input)tokens = antlr3.CommonTokenStream(lex)parser = SimpleParser.SimpleParser(tokens)parser.statement()            }            {$channel=HIDDEN}        ;/** When the javadoc parser sees end-of-comment it just says 'I'm done', which *  consumes the tokens and forces this javadoc parser (feeding *  off the input stream currently) to exit.  It returns from *  method comment(), which was called from JAVADOC action in the *  Simple parser's lexer. */END     : '*/' {self.token = antlr3.EOF_TOKEN}          {print "exit javadoc"}        ;WS      : (' '|'\t'|'\n')+        ;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -