viperscape / lichen

Scripting DSL with Rust interpreter
Apache License 2.0
32 stars 4 forks source link

Pipe/Chain functions #16

Open viperscape opened 7 years ago

viperscape commented 7 years ago

Being able to chain functions would be a big plus

def sword
  damage 2
;

def root
  @player.sword new sword -> damage + 5  # build new sword and also increase its damage
;