alex-ozdemir / algebra-dsl

A domain-specific-language for algebraic transformations
http://robocop.stanford.edu:8080
0 stars 0 forks source link

Multiple Commands in One Input #36

Open cmiddlemas opened 7 years ago

cmiddlemas commented 7 years ago

We don't have anything that could benefit from this now, but once we have queries of some sort, it might be useful. It's also possible that we only allow expression of these ideas in terms of function composition.

Example:

$ x^2 + x + 1 = 0

Then type:

get_indices(x)
map(replace_with(y),@)

where the @ symbol is understood to refer to the output of the last line. This would result in:

y^2 + y + 1 = 0.