parser.html

来自「数据挖掘的最常用工具。由于开源」· HTML 代码 · 共 617 行 · 第 1/2 页

HTML
617
字号
<A NAME="parser(weka.core.parser.java_cup.runtime.Scanner)"><!-- --></A><H3>parser</H3><PRE>public <B>parser</B>(<A HREF="../../../../weka/core/parser/java_cup/runtime/Scanner.html" title="interface in weka.core.parser.java_cup.runtime">Scanner</A>&nbsp;s)</PRE><DL><DD>Constructor which sets the default scanner.<P></DL><HR><A NAME="parser(weka.core.parser.java_cup.runtime.Scanner, weka.core.parser.java_cup.runtime.SymbolFactory)"><!-- --></A><H3>parser</H3><PRE>public <B>parser</B>(<A HREF="../../../../weka/core/parser/java_cup/runtime/Scanner.html" title="interface in weka.core.parser.java_cup.runtime">Scanner</A>&nbsp;s,              <A HREF="../../../../weka/core/parser/java_cup/runtime/SymbolFactory.html" title="interface in weka.core.parser.java_cup.runtime">SymbolFactory</A>&nbsp;sf)</PRE><DL><DD>Constructor which sets the default scanner.<P></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="production_table()"><!-- --></A><H3>production_table</H3><PRE>public short[][] <B>production_table</B>()</PRE><DL><DD>Access to production table.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../weka/core/parser/java_cup/runtime/lr_parser.html#production_table()">production_table</A></CODE> in class <CODE><A HREF="../../../../weka/core/parser/java_cup/runtime/lr_parser.html" title="class in weka.core.parser.java_cup.runtime">lr_parser</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="action_table()"><!-- --></A><H3>action_table</H3><PRE>public short[][] <B>action_table</B>()</PRE><DL><DD>Access to parse-action table.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../weka/core/parser/java_cup/runtime/lr_parser.html#action_table()">action_table</A></CODE> in class <CODE><A HREF="../../../../weka/core/parser/java_cup/runtime/lr_parser.html" title="class in weka.core.parser.java_cup.runtime">lr_parser</A></CODE></DL></DD><DD><DL><DT><B>See Also:</B><DD><CODE>java_cup.runtime.lr_parser#get_action</CODE></DL></DD></DL><HR><A NAME="reduce_table()"><!-- --></A><H3>reduce_table</H3><PRE>public short[][] <B>reduce_table</B>()</PRE><DL><DD>Access to <code>reduce_goto</code> table.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../weka/core/parser/java_cup/runtime/lr_parser.html#reduce_table()">reduce_table</A></CODE> in class <CODE><A HREF="../../../../weka/core/parser/java_cup/runtime/lr_parser.html" title="class in weka.core.parser.java_cup.runtime">lr_parser</A></CODE></DL></DD><DD><DL><DT><B>See Also:</B><DD><CODE>java_cup.runtime.lr_parser#get_reduce</CODE></DL></DD></DL><HR><A NAME="do_action(int, weka.core.parser.java_cup.runtime.lr_parser, java.util.Stack, int)"><!-- --></A><H3>do_action</H3><PRE>public <A HREF="../../../../weka/core/parser/java_cup/runtime/Symbol.html" title="class in weka.core.parser.java_cup.runtime">Symbol</A> <B>do_action</B>(int&nbsp;act_num,                        <A HREF="../../../../weka/core/parser/java_cup/runtime/lr_parser.html" title="class in weka.core.parser.java_cup.runtime">lr_parser</A>&nbsp;parser,                        java.util.Stack&nbsp;stack,                        int&nbsp;top)                 throws java.lang.Exception</PRE><DL><DD>Invoke a user supplied parse action.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../weka/core/parser/java_cup/runtime/lr_parser.html#do_action(int, weka.core.parser.java_cup.runtime.lr_parser, java.util.Stack, int)">do_action</A></CODE> in class <CODE><A HREF="../../../../weka/core/parser/java_cup/runtime/lr_parser.html" title="class in weka.core.parser.java_cup.runtime">lr_parser</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>act_num</CODE> - the internal index of the action to be performed.<DD><CODE>parser</CODE> - the parser object we are acting for.<DD><CODE>stack</CODE> - the parse stack of that object.<DD><CODE>top</CODE> - the index of the top element of the parse stack.<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE></DL></DD></DL><HR><A NAME="start_state()"><!-- --></A><H3>start_state</H3><PRE>public int <B>start_state</B>()</PRE><DL><DD>Indicates start state.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../weka/core/parser/java_cup/runtime/lr_parser.html#start_state()">start_state</A></CODE> in class <CODE><A HREF="../../../../weka/core/parser/java_cup/runtime/lr_parser.html" title="class in weka.core.parser.java_cup.runtime">lr_parser</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="start_production()"><!-- --></A><H3>start_production</H3><PRE>public int <B>start_production</B>()</PRE><DL><DD>Indicates start production.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../weka/core/parser/java_cup/runtime/lr_parser.html#start_production()">start_production</A></CODE> in class <CODE><A HREF="../../../../weka/core/parser/java_cup/runtime/lr_parser.html" title="class in weka.core.parser.java_cup.runtime">lr_parser</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="EOF_sym()"><!-- --></A><H3>EOF_sym</H3><PRE>public int <B>EOF_sym</B>()</PRE><DL><DD><code>EOF</code> Symbol index.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../weka/core/parser/java_cup/runtime/lr_parser.html#EOF_sym()">EOF_sym</A></CODE> in class <CODE><A HREF="../../../../weka/core/parser/java_cup/runtime/lr_parser.html" title="class in weka.core.parser.java_cup.runtime">lr_parser</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="error_sym()"><!-- --></A><H3>error_sym</H3><PRE>public int <B>error_sym</B>()</PRE><DL><DD><code>error</code> Symbol index.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../weka/core/parser/java_cup/runtime/lr_parser.html#error_sym()">error_sym</A></CODE> in class <CODE><A HREF="../../../../weka/core/parser/java_cup/runtime/lr_parser.html" title="class in weka.core.parser.java_cup.runtime">lr_parser</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="user_init()"><!-- --></A><H3>user_init</H3><PRE>public void <B>user_init</B>()               throws java.lang.Exception</PRE><DL><DD>User initialization code.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../weka/core/parser/java_cup/runtime/lr_parser.html#user_init()">user_init</A></CODE> in class <CODE><A HREF="../../../../weka/core/parser/java_cup/runtime/lr_parser.html" title="class in weka.core.parser.java_cup.runtime">lr_parser</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE></DL></DD></DL><HR><A NAME="scan()"><!-- --></A><H3>scan</H3><PRE>public <A HREF="../../../../weka/core/parser/java_cup/runtime/Symbol.html" title="class in weka.core.parser.java_cup.runtime">Symbol</A> <B>scan</B>()            throws java.lang.Exception</PRE><DL><DD>Scan to get the next Symbol.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../weka/core/parser/java_cup/runtime/lr_parser.html#scan()">scan</A></CODE> in class <CODE><A HREF="../../../../weka/core/parser/java_cup/runtime/lr_parser.html" title="class in weka.core.parser.java_cup.runtime">lr_parser</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE></DL></DD></DL><HR><A NAME="report_fatal_error(java.lang.String, java.lang.Object)"><!-- --></A><H3>report_fatal_error</H3><PRE>public void <B>report_fatal_error</B>(java.lang.String&nbsp;message,                               java.lang.Object&nbsp;info)</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../../../weka/core/parser/java_cup/runtime/lr_parser.html#report_fatal_error(java.lang.String, java.lang.Object)">lr_parser</A></CODE></B></DD><DD>Report a fatal error.  This method takes a  message string and an   additional object (to be used by specializations implemented in   subclasses).  Here in the base class a very simple implementation   is provided which reports the error then throws an exception.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../weka/core/parser/java_cup/runtime/lr_parser.html#report_fatal_error(java.lang.String, java.lang.Object)">report_fatal_error</A></CODE> in class <CODE><A HREF="../../../../weka/core/parser/java_cup/runtime/lr_parser.html" title="class in weka.core.parser.java_cup.runtime">lr_parser</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>message</CODE> - an error message.<DD><CODE>info</CODE> - an extra object reserved for use by specialized subclasses.</DL></DD></DL><HR><A NAME="report_error(java.lang.String, java.lang.Object)"><!-- --></A><H3>report_error</H3><PRE>public void <B>report_error</B>(java.lang.String&nbsp;message,                         java.lang.Object&nbsp;info)</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../../../weka/core/parser/java_cup/runtime/lr_parser.html#report_error(java.lang.String, java.lang.Object)">lr_parser</A></CODE></B></DD><DD>Report a non fatal error (or warning).  This method takes a message   string and an additional object (to be used by specializations   implemented in subclasses).  Here in the base class a very simple   implementation is provided which simply prints the message to   System.err.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../weka/core/parser/java_cup/runtime/lr_parser.html#report_error(java.lang.String, java.lang.Object)">report_error</A></CODE> in class <CODE><A HREF="../../../../weka/core/parser/java_cup/runtime/lr_parser.html" title="class in weka.core.parser.java_cup.runtime">lr_parser</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>message</CODE> - an error message.<DD><CODE>info</CODE> - an extra object reserved for use by specialized subclasses.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="http://www.cs.waikato.ac.nz/ml/weka/" target="_blank"><FONT CLASS="NavBarFont1"><B>Weka's home</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../weka/core/parser/java_cup/parse_reduce_table.html" title="class in weka.core.parser.java_cup"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../weka/core/parser/java_cup/production.html" title="class in weka.core.parser.java_cup"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../index.html?weka/core/parser/java_cup/parser.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="parser.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_weka.core.parser.java_cup.runtime.lr_parser">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>

⌨️ 快捷键说明

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