📄 sisters_expander.dsl
字号:
#Thats a dsl for sisters ruleThere exists a Person with name of {name}=Person(name=="{name}")[when]Person is at least {age} years old and lives in {location}=Person(age > {age}, location=="{location}")[then]Log {message}=System.out.println("{message}");[when]There is a Person=$person1 : Person ( )[when]There is a second Person and they are sisters=$person2 : Person ( ) eval( $person2.hasSister($person1) )[then]Tell the world they are sisters=System.out.println($person1.getName() + " and " + $person2.getName() +" are sisters");[then]Leave a comment in the WorkingMemory=assert( $person1.getName() + " and " + $person2.getName() +" are sisters");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -