6 months for this

Lines starting with > are commands, the other lines are messages from rubyk.

# Welcome to rubyk !
#
> v => p
# /v ? /p
> v = Value(4)
# <Value:/v value:4>
> p = Print(prefix:'yoba')
# <Print:/p prefix:"yoba">
# /v/out/value => /p/in/print
> v/value(7)
yoba: 7
# 7
> v/value
yoba: 7
# 7
> v || p
# /v/out/value || /p/in/print
> v/value
# 7
> q
#
# Bye...

What this does is:

  1. try to create a link between url ”/v” and ”/p” using relative url syntax
  2. create a Value node at url ”/v”
  3. create a Print node at url ”/p”. This operation creates the pending link v => p.
  4. set “value” of “v” to 7
  5. get “value” of node “v”
  6. unlink “v” and “p”
  7. get “value” method again
  8. quit

comments

  1. leave a comment