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

📄 ast.sa

📁 Java写的词法/语法分析器。可生成JAVA语言或者是C++的词法和语法分析器。并可产生语法分析树和对该树进行遍历
💻 SA
字号:
(*   ANTLR Translator Generator  Project led by Terence Parr at http://www.jGuru.com  Software rights: http://www.antlr.org/RIGHTS.html   $Id: //depot/code/org.antlr/release/antlr-2.7.0/lib/sather/Antlr/ast.sa#1 $*)abstract class $ANTLR_AST{ AST < $ANTLR_AST{AST} } is   equals( t : AST ) : BOOL;   equals_list( t : AST ) : BOOL ;   equals_list_partial( t : AST ) : BOOL;    equals_tree( t : AST) : BOOL ;   equals_tree_partial( t : AST ) : BOOL;   find_all( tree : AST ) : ARRAY{AST};   find_all_partial( subtree : AST ) : ARRAY{AST};      dup : AST;   create( t : INT, txt : STR ) : AST;   create_from_ast( t : AST ) : AST;   create_from_token( t : $ANTLR_TOKEN ) : AST;      -- add a (rightmost child to this node   add_child( c : AST );      -- Get the first child of this node; null if no children   first_child : AST;   -- Set the first child of a node.   first_child( c : AST );   -- Get the next sibling in line after this one   next_sibling : AST;   -- Set the next sibling after this one.   next_sibling( n : AST );   -- Get the token text for this node   text : STR;   -- Set the token text for this node   text( text : STR );   -- Get the token type for this node   ttype : INT;   -- Set the token type for this node   ttype( ttype : INT );   str : STR;   str_list : STR;   str_tree : STR;end;

⌨️ 快捷键说明

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