Ebase/SQL is a stand-alone program that takes SQL statements from the standard input. It manipulates database according to the SQL statements. It prints the result to the standard output.
By default, it runs interactively. If you redirect the standard input from a file or a pipe, it can run in a batch mode.
It has a couple of output modes. The default is verbose mode, suitable for interactive execution. It has another mode which generates Perl-friendly output.
The lexical scanner code and the grammar parsing code are C code and are generated by flex and bison. The program has a C++ file that interfaces with the Ebase library which is written in C++.