Making console version of BlackBox in Windows

Usage of the framework, compiler and tools
Post Reply
User avatar
Ivan Denisov
Posts: 362
Joined: Tue Sep 17, 2013 12:21 am
Location: Krasnoyarsk, Russia

Making console version of BlackBox in Windows

Post 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.
Romiras
Posts: 35
Joined: Tue Sep 17, 2013 5:55 am
Location: Tel-Aviv

Re: Making console version of BlackBox in Windows

Post 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.
Post Reply