Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- main:
- ask 'sup: ' # (action)
- show it # (action)
- it`s 'hi' # (assertion)
- x = it or 'bye' # (assignment (conditional))
- again # (action (last))
- ^[main]->x # call main as a protected function, save it to x
- # it is a keyword which is a pointer to last thing referenced
- # x = 5
- # it is 5 (true)
- # it isnt 5 (false)
- # it`s 5 (true)
- # isn`t 5 (false)
- # it`s 5, ^do_when_true or ^something_else
- # show is the default action?
- # opposite of it`s is isn`t
- # ` is used to make the call more intended
- # benefit of assertion is that it's always the last assertion
- # this means instead of needing to wrap an entire thing inside an if
- # you can use the ternary until you make a new assertion
- # if you do want to get a form of wrapping, you should make function calls
- # instead, inside the ternary
- # allow for ^ask_show = main[1], it`s \d+
- # ask_show:
- # ask 'sup: ', it`s \d+ ^
- # allow preventing of auto assignment to it
- # as line]
- # bracket on inside to represent inside protection
- # allow preventing of line pulling
- # as [line
- # bracket on outside to represent outside protection
- #
- # do both as [line]
- #
- # or whole function as [function]:
- # @10, ^main # for it = each of 10, ^main
- # ^main, @it, ^it, @it, ^x
- # another benefit of it is that you don't need to pass variables to functions
- # you can instead create what you want and then access it at the top
- # allow for inline c++
- # c++:
- # custom:
- # #include <thing>
- # std::string x;
- # ...
- # ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement