Page 1 of 1
Making console version of BlackBox in Windows
Posted: Fri Dec 05, 2014 9:41 pm
by Ivan Denisov
Small demo how to make console interpreter and compiler for Component Pascal on the base of BlackBox Component Builder.
http://youtu.be/3zFBDRwUxdE
Author of this solution is Alexander Shiryaev.
Re: Making console version of BlackBox in Windows
Posted: Tue Mar 01, 2016 10:04 am
by Romiras
Ivan Denisov wrote:Small demo how to make console interpreter and compiler for Component Pascal on the base of BlackBox Component Builder.
http://youtu.be/3zFBDRwUxdE
Author of this solution is Alexander Shiryaev.
On basis on "BlackBox Freenix" project I have built a more simple solution for running from console and easy for set-up. It's called
BlackBox-cli and available from
https://github.com/romiras/BlackBox-cli/releases
Commands can be interpreted and executed at run time similar to BlackBox Freenix.
One of distinctions is that DevCompiler is able to compile plain CP files too (encoded in UTF-8) in addition to ODC. For this purpose StdPlainDoc serves as helper module dynamically registering UTF-8 converter.
Code: Select all
echo "PrivHello.SayHello" | ./bbcli.exe
It will output
Code: Select all
Running as command interpreter. Waiting for input from stdin...
Hello from PrivHello!
A main modification was made in commit
https://github.com/romiras/BlackBox-cli ... d7fb1cf4a3, as you can see.