資源簡介
實現了四則運算+,-,*,/,max,min,sin,cos四個內值函數。
還有求負和求冪運算。
實現了三元運算符?:
實現了邏輯運算& ! !
實現了比較運算符 > < >= <= = <>
可以單獨求布爾表達式的值。
java版。編譯原理作業
代碼片段和文件信息
/*
?*?DevidedByZeroException.java
?*
?*?Created?on?2009年4月23日?下午10:45
?*
?*?To?change?this?template?choose?Tools?|?Template?Manager
?*?and?open?the?template?in?the?editor.
?*/
package?exceptions;
/**
?*?@version?1.0?2009-4-23
?*?@author?Administrator
?*/
/**
?*0作為除數引起的異常。(當某個作為除數的表達式的值為0時拋出此異常)
?*/
public?class?DividedByZeroException?extends?SemanticException?{
/**?Creates?a?new?instance?of?DevidedByZeroException?*/
public?DividedByZeroException()?{
}
public?String?toString()?{
return?“語意錯誤:0不能做除數“;
}
public?String?getExceptionName()?{
return?“DevidedByZeroException“;
}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????310??2009-05-09?12:50??ExprEval(More)\.classpath
?????文件????????384??2009-05-10?12:37??ExprEval(More)\.project
?????文件????????565??2009-05-10?14:22??ExprEval(More)\bin\exceptions\DividedByZeroException.class
?????文件????????573??2009-05-10?14:22??ExprEval(More)\bin\exceptions\Emptyex
?????文件????????528??2009-05-10?14:22??ExprEval(More)\bin\exceptions\ex
?????文件????????621??2009-05-10?14:22??ExprEval(More)\bin\exceptions\FunctionCallException.class
?????文件????????578??2009-05-10?14:22??ExprEval(More)\bin\exceptions\IllegalDecimalException.class
?????文件????????579??2009-05-10?14:22??ExprEval(More)\bin\exceptions\IllegalIdentifierException.class
?????文件????????563??2009-05-10?14:22??ExprEval(More)\bin\exceptions\IllegalSymbolException.class
?????文件????????524??2009-05-10?14:22??ExprEval(More)\bin\exceptions\LexicalException.class
?????文件????????601??2009-05-10?14:22??ExprEval(More)\bin\exceptions\MissingLeftParenthesisException.class
?????文件????????569??2009-05-10?14:22??ExprEval(More)\bin\exceptions\MissingOperandException.class
?????文件????????573??2009-05-10?14:22??ExprEval(More)\bin\exceptions\MissingOperatorException.class
?????文件????????605??2009-05-10?14:22??ExprEval(More)\bin\exceptions\MissingRightParenthesisException.class
?????文件????????528??2009-05-10?14:22??ExprEval(More)\bin\exceptions\SemanticException.class
?????文件????????532??2009-05-10?14:22??ExprEval(More)\bin\exceptions\SyntacticException.class
?????文件????????586??2009-05-10?14:22??ExprEval(More)\bin\exceptions\TrinaryOperationException.class
?????文件????????583??2009-05-10?14:22??ExprEval(More)\bin\exceptions\TypeMismatchedException.class
?????文件????????738??2009-05-10?20:48??ExprEval(More)\bin\gui\exceptionWindow$1.class
?????文件????????752??2009-05-10?20:48??ExprEval(More)\bin\gui\exceptionWindow$2.class
?????文件???????2113??2009-05-10?20:48??ExprEval(More)\bin\gui\exceptionWindow.class
?????文件????????895??2009-05-10?14:31??ExprEval(More)\bin\gui\inputPanel.class
?????文件???????2255??2009-05-10?14:09??ExprEval(More)\bin\gui\inputPanel.form
?????文件????????761??2009-05-10?20:48??ExprEval(More)\bin\gui\keyboardWindow$1.class
?????文件????????773??2009-05-10?20:48??ExprEval(More)\bin\gui\keyboardWindow$2.class
?????文件???????1012??2009-05-10?20:48??ExprEval(More)\bin\gui\keyboardWindow$ActionHandler.class
?????文件???????2218??2009-05-10?20:48??ExprEval(More)\bin\gui\keyboardWindow.class
?????文件????????670??2009-05-11?00:15??ExprEval(More)\bin\gui\mainWindow$1.class
?????文件????????670??2009-05-10?21:51??ExprEval(More)\bin\gui\mainWindow$2.class
?????文件???????1392??2009-05-11?00:15??ExprEval(More)\bin\gui\mainWindow$ActionHandler.class
............此處省略159個文件信息
- 上一篇:JSP+J2EE+MVC模式的學生信息管理系統
- 下一篇:web作業簡單的CSS樣式
評論
共有 條評論