parser.html

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

HTML
616
字号
<PRE>public <B>Parser</B>()</PRE><DL><DD>Default constructor.<P></DL><HR><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="setSymbols(java.util.HashMap)"><!-- --></A><H3>setSymbols</H3><PRE>public void <B>setSymbols</B>(java.util.HashMap&nbsp;value)</PRE><DL><DD>Sets the variable - value relation to use.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - the variable-value relation</DL></DD></DL><HR><A NAME="getSymbols()"><!-- --></A><H3>getSymbols</H3><PRE>public java.util.HashMap <B>getSymbols</B>()</PRE><DL><DD>Returns the current variable - value relation in use.<P><DD><DL><DT><B>Returns:</B><DD>the variable-value relation</DL></DD></DL><HR><A NAME="setResult(java.lang.Double)"><!-- --></A><H3>setResult</H3><PRE>public void <B>setResult</B>(java.lang.Double&nbsp;value)</PRE><DL><DD>Sets the result of the evaluation.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - the result</DL></DD></DL><HR><A NAME="getResult()"><!-- --></A><H3>getResult</H3><PRE>public java.lang.Double <B>getResult</B>()</PRE><DL><DD>Returns the result of the evaluation.<P><DD><DL><DT><B>Returns:</B><DD>the result</DL></DD></DL><HR><A NAME="main(java.lang.String[])"><!-- --></A><H3>main</H3><PRE>public static void <B>main</B>(java.lang.String[]&nbsp;args)                 throws java.lang.Exception</PRE><DL><DD>Runs the parser from commandline. Either reads lines from System.in or from a provided file (line by line). With  <code>-symbols <semi-colon separated list of variable/value pairs></code> as first parameter one can provide predefined variable values. E.g.: <code>-symbols "Y=10;X=3" "X+Y"</code><P><DD><DL><DT><B>Parameters:</B><DD><CODE>args</CODE> - the commandline arguments<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if something goes wrong</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;PREV CLASS&nbsp;&nbsp;<A HREF="../../../weka/core/mathematicalexpression/Scanner.html" title="class in weka.core.mathematicalexpression"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html?weka/core/mathematicalexpression/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 + -
显示快捷键?