All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class lyon.surfer.Parser

java.lang.Object
   |
   +----lyon.surfer.Parser

public final class Parser
extends java.lang.Object
Parser.java version 1.0 Jun 16 1996 * Parser.java version 2.0 Aug 25 1996 * Parser.java version 2.1 Oct 14 1996 * Parser.java version 2.11 Oct 25 1996 * Parser.java version 2.2 Nov 8 1996 * * Copyright (c) 1996 Yanto Suryono. All Rights Reserved. * * Permission to use, copy, and distribute this software for NON-COMMERCIAL purposes * and without fee is hereby granted provided that this copyright notice appears in all * copies and this software is not modified in any way * * Please send bug reports and/or corrections/suggestions to * Yanto Suryono *


Variable Index

 o AND_CODE
 o character
 o CODE_DAMAGED
 o COMMA_EXPECTED
 o DEGTORAD
 o E_CODE
 o ENDIF
 o EQUAL
 o error
 o EXPRESSION_EXPECTED
 o EXT_FUNC_OFFSET
 o extfunc
 o FUNC_OFFSET
 o funcname
 o function
 o GREATER_EQUAL
 o GREATER_THAN
 o IF_CODE
 o INRELATION
 o INVALID_OPERAND
 o INVALID_OPERATOR
 o ISBOOLEAN
 o JUMP_CODE
 o LESS_EQUAL
 o LESS_THAN
 o LOG10
 o MAX_NUM
 o NO_ERROR
 o NO_EXT_FUNCS
 o NO_FUNCS
 o NOT_CODE
 o NOT_EQUAL
 o num
 o number
 o NUMERIC
 o OPERATOR_EXPECTED
 o OR_CODE
 o PAREN_EXPECTED
 o PAREN_NOT_MATCH
 o PI_CODE
 o position
 o postfixcode
 o radian
 o STACK_OVERFLOW
 o STACK_SIZE
 o start
 o SYNTAX_ERROR
 o TOO_MANY_CONSTS
 o UNCOMPILED_FUNCTION
 o UNKNOWN_IDENTIFIER
 o valid
 o VAR_OFFSET
 o varcount
 o varname
 o varvalue

Constructor Index

 o Parser(int)

Method Index

 o addcode(char)
 o boolean_level()
 o built_in_ext_function(int, double, double)
 o built_in_function(int, double)
 o debug()
 o define(String)
 o defineVariable(int, String)
 o evaluate()
 o get_next_character()
 o getErrorCode()
 o getErrorPosition()
 o getErrorString()
 o getidentifier()
 o level1()
 o level2()
 o level3()
 o parse()
 o relation_level()
 o scan_and_parse()
 o scan_number()
 o scan_variable_or_function()
 o setVariable(int, double)
 o setVariable(String, double)
 o skip_spaces()
 o useDegree()
 o useRadian()

Variables

 o varcount
 private int varcount
 o varname
 private java.lang.String varname[]
 o varvalue
 private double varvalue[]
 o number
 private double number[]
 o function
 private java.lang.String function
 o postfixcode
 private java.lang.String postfixcode
 o valid
 private boolean valid
 o error
 private int error
 o ISBOOLEAN
 private boolean ISBOOLEAN
 o INRELATION
 private boolean INRELATION
 o position
 private int position
 o start
 private int start
 o num
 private int num
 o character
 private char character
 o radian
 private boolean radian
 o MAX_NUM
 private static final int MAX_NUM
 o NO_FUNCS
 private static final int NO_FUNCS
 o NO_EXT_FUNCS
 private static final int NO_EXT_FUNCS
 o STACK_SIZE
 private static final int STACK_SIZE
 o DEGTORAD
 private static final double DEGTORAD
 o LOG10
 private static final double LOG10
 o NO_ERROR
 public static final int NO_ERROR
 o SYNTAX_ERROR
 public static final int SYNTAX_ERROR
 o PAREN_EXPECTED
 public static final int PAREN_EXPECTED
 o UNCOMPILED_FUNCTION
 public static final int UNCOMPILED_FUNCTION
 o EXPRESSION_EXPECTED
 public static final int EXPRESSION_EXPECTED
 o UNKNOWN_IDENTIFIER
 public static final int UNKNOWN_IDENTIFIER
 o OPERATOR_EXPECTED
 public static final int OPERATOR_EXPECTED
 o PAREN_NOT_MATCH
 public static final int PAREN_NOT_MATCH
 o CODE_DAMAGED
 public static final int CODE_DAMAGED
 o STACK_OVERFLOW
 public static final int STACK_OVERFLOW
 o TOO_MANY_CONSTS
 public static final int TOO_MANY_CONSTS
 o COMMA_EXPECTED
 public static final int COMMA_EXPECTED
 o INVALID_OPERAND
 public static final int INVALID_OPERAND
 o INVALID_OPERATOR
 public static final int INVALID_OPERATOR
 o FUNC_OFFSET
 public static final int FUNC_OFFSET
 o EXT_FUNC_OFFSET
 public static final int EXT_FUNC_OFFSET
 o VAR_OFFSET
 public static final int VAR_OFFSET
 o PI_CODE
 public static final char PI_CODE
 o E_CODE
 public static final char E_CODE
 o NUMERIC
 public static final char NUMERIC
 o JUMP_CODE
 public static final char JUMP_CODE
 o LESS_THAN
 public static final char LESS_THAN
 o GREATER_THAN
 public static final char GREATER_THAN
 o LESS_EQUAL
 public static final char LESS_EQUAL
 o GREATER_EQUAL
 public static final char GREATER_EQUAL
 o NOT_EQUAL
 public static final char NOT_EQUAL
 o EQUAL
 public static final char EQUAL
 o IF_CODE
 public static final char IF_CODE
 o ENDIF
 public static final char ENDIF
 o AND_CODE
 public static final char AND_CODE
 o OR_CODE
 public static final char OR_CODE
 o NOT_CODE
 public static final char NOT_CODE
 o funcname
 java.lang.String funcname[]
 o extfunc
 java.lang.String extfunc[]

Constructors

 o Parser
 Parser(int variablecount)

Methods

 o useRadian
 public void useRadian()
 o useDegree
 public void useDegree()
 o getErrorCode
 public int getErrorCode()
 o getErrorPosition
 public int getErrorPosition()
 o getErrorString
 public java.lang.String getErrorString()
 o defineVariable
 public void defineVariable(int index,
                            java.lang.String name)
 o setVariable
 public void setVariable(int index,
                         double value)
 o setVariable
 public void setVariable(java.lang.String name,
                         double value)
 o skip_spaces
 private void skip_spaces()
 o get_next_character
 private void get_next_character()
 o addcode
 private void addcode(char code)
 o scan_number
 private void scan_number()
 o scan_variable_or_function
 private void scan_variable_or_function()
 o getidentifier
 private void getidentifier()
 o level3
 private void level3()
 o level2
 private void level2()
 o level1
 private void level1()
 o relation_level
 private void relation_level()
 o boolean_level
 private void boolean_level()
 o scan_and_parse
 private void scan_and_parse()
 o parse
 public void parse()
 o define
 public void define(java.lang.String definition)
 o built_in_function
 private double built_in_function(int function,
                                  double parameter)
 o built_in_ext_function
 private double built_in_ext_function(int function,
                                      double param1,
                                      double param2)
 o evaluate
 public double evaluate()
 o debug
 public void debug()

All Packages  Class Hierarchy  This Package  Previous  Next  Index