简体   繁体   English

如何将Valloy虚拟功能代码转换为Alloy脚本?

[英]How to translate a Valloy virtual function code into an Alloy script?

I am working on a project and found out an article about Valloy they give an example of a code both in Valloy and Alloy but the problem is that the syntax of the Alloy script is not recognised by the Alloy analyser. 我正在一个项目上,发现了一篇有关Valloy的文章,他们给出了Valloy和Alloy的代码示例,但问题是Alloy分析器无法识别Alloy脚本的语法。 Exp : Exp:

fun Object::equals(obj: Object) {
this.class = Object_Class => this..Object_equals(obj)
this.class = Dimension_Class => this..Dimension_equals(obj)
this.class = Dimension3D_Class =>this..Dimension3D_equals(obj) } 

the analyser can't accept a function with no return type and does not know the ".." !! 分析器不能接受没有返回类型的函数,并且不知道“ ..”! can any one help with this ?!! 有人能帮忙吗 ?!!

Thank u in advance !! 预先谢谢你!

That syntax is not standard Alloy. 该语法不是标准的Alloy。 I'm not sure if VAlloy is still maintained or whether you can get it from the authors of that paper. 我不确定是否仍保留VAlloy,或者不确定是否可以从该论文的作者那里获得。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM