objeck / objeck-lang

Objeck is a modern object-oriented programming language with functional features tailored for machine learning. It emphasizes expression, simplicity, portability, and scalability. The programming environment consists of a compiler, virtual machine, REPL shell, and command line debugger with IDE plugins.
https://objeck.org
Other
157 stars 11 forks source link

[Suggestion] `-e` switch for `obi` #265

Closed ghost closed 1 year ago

ghost commented 1 year ago

Inspired by scripting languages like lua, e.g: lua -e 'print(1/3)'

Should also work if pass via stdin, e.g: echo 'print(1/3)' | lua

objeck commented 1 year ago

Added -src switch in commit 8b8b7ee.

On Windows: obi -src "\"Hello World!\"->PrintLine()"

ghost commented 1 year ago

Added -src switch in commit 8b8b7ee.

On Windows: obi -src "\"Hello World!\"->PrintLine()"

What about -lib? Or all libraries will be implicitly linked?

objeck commented 1 year ago

Done in commit b52fe28