问题标签 [wml]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
68 浏览

regex - How do I test this WML parser?

So I had an assignment in which I was supposed to make a WML parser that obeys the following grammar rules:

Here are the gramma rules

The prof posted the solution and I'm trying to test inside intellij but it keeps giving me an error. here's the code:

It asks me to override the main method and when I do, I get this error:

objc[12857]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin/java (0x104e314c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x105e9c4e0). One of the two will be used. Which one is undefined. Exception in thread "main" scala.MatchError: [Ljava.lang.String;@3551a94 (of class [Ljava.lang.String;) at WML$.main(solution2.scala:176) at WML.main(solution2.scala)

Here is what I have on line 176:

case Array(fn) => Source.fromFile(fn, "UTF-8").mkString

Thanks.

0 投票
1 回答
42 浏览

ibm-cloud - 无法连接到 ibm WML

我正在尝试遵循 ibm 对象检测教程(https://cloud-annotations.github.io/training/object-detection/wml/),当我尝试连接到机器时遇到问题。这是凭据

当我粘贴用户名/密码和 instance_id 时,我收到下一个错误:

任何帮助都是极好的!谢谢!

0 投票
1 回答
84 浏览

reactjs - React-native yarn workspaces/wml 不加载包含已安装包的导入模块

我尝试使用工作区实现 react-native,以在移动和 Web 应用程序之间共享业务逻辑,它在 Web 上运行良好,但它不起作用,甚至无法在 react-native 上加载文件。我最终使用了 wml,但它无法从正在导入 axios 之类的包的共享包中加载文件……尽管这些包已经安装在那里,并且它在 web 上按预期工作。