szszss / FDS

Hmmm... A homework?
MIT License
0 stars 0 forks source link

JavaCC与GWT的兼容问题 #1

Open fxzjshm opened 7 years ago

fxzjshm commented 7 years ago

我不知道JavaCC能不能用在GWT里……

szszss commented 7 years ago

卧槽,这个只是上学期软工课设时做的小程序,按说我应该结课后就删掉的...它本身基本没什么东西,除去那几个封装以外,核心程序就是生成数学公式以及解析用户输入(我用JavaCC写的公式解析器). (捂脸 我青睐JavaCC的原因之一就是它的"低科技",我印象中它用到的基本都是Java1.5时代的东西,应该不会有不兼容GWT的代码. 另外...我很好奇为啥你想用到这个 233333

fxzjshm commented 7 years ago

我只是担心Gwt(坑爹)的编译器解析不了javacc…… 不管怎样,哪天试试强行编译好了。 至于用途吗……我猜想“曲线拟合”应该用得上。 (逃……回去赶作业了……

fxzjshm commented 7 years ago
   Validating units:
      [ERROR] Errors in 'file:/Users/fxzjshm/Documents/workspace/Polyfiter/core/src/main/java/net/hakugyokurou/fds/node/RationalNode.java'
         [ERROR] Line 19: The method format(String, long) is undefined for the type String
         [ERROR] Line 19: The method format(String, double) is undefined for the type String
      [ERROR] Errors in 'file:/Users/fxzjshm/Documents/workspace/Polyfiter/core/src/main/javacc/net/hakugyokurou/fds/parser/MathExpressionParser.java'
         [ERROR] Line 59: No source code is available for type java.io.FileReader; did you forget to inherit a required module?
      [ERROR] Errors in 'file:/Users/fxzjshm/Documents/workspace/Polyfiter/core/src/main/javacc/net/hakugyokurou/fds/parser/ParseException.java'
         [ERROR] Line 26: The method getProperty(String) in the type System is not applicable for the arguments (String, String)
      [ERROR] Errors in 'file:/Users/fxzjshm/Documents/workspace/Polyfiter/core/src/main/java/net/hakugyokurou/fds/util/WeightedRandomPool.java'
         [ERROR] Line 14: No source code is available for type java.util.NavigableMap<K,V>; did you forget to inherit a required module?
         [ERROR] Line 14: Type mismatch: cannot convert from TreeMap<Float,E> to NavigableMap<Float,E>
   [ERROR] Aborting compile due to errors in some input files
:html:compileGwt FAILED