Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. rule A
  2. when
  3. Person()
  4. then
  5. say “hello”
  6. end
  7.  
  8. rule B
  9. when
  10. Person( name == “Toni” )
  11. then
  12. say “get out of here”
  13. end
  14.  
  15.  
  16. B overwrites A
  17.  
  18. We need to generate this:
  19.  
  20. rule A
  21. when
  22. Person( name != “Toni” )
  23. then
  24. say “hello”
  25. end
  26.  
  27. rule B
  28. when
  29. Person( name == “Toni” )
  30. then
  31. say “get out of here”
  32. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement