Want to make some Domain Specific Language(DSL) for practice, first idea it is to write interpreter or compiler of Brainfuck.
First idea was to override functions such as they will behave as Brainfuck commands: ">"
, "<"
, "+"
, "-"
, "."
, ","
, "["
, "]"
. Unfortunately you cannot decalare function as "."
.
Is there better solution to write it in Scala?