bool

Програм за тестирање логичких израза
git clone https://git.sr.ht/~strahinja/bool
Дневник | Датотеке | Референце | ПРОЧИТАЈМЕ | ЛИЦЕНЦА

чување df6ffef1bf66f5745df2b3c82778abcc2100f166
родитељ 74b372c21dc72f0d56c7000da89b095347c73bf6
Аутор: Страхиња Радић <sr@strahinja.org>
Датум:   Mon, 19 Jan 2026 00:16:57 +0100

INSTALL, README: New files

Diffstat:
AINSTALL | 48++++++++++++++++++++++++++++++++++++++++++++++++
AREADME | 32++++++++++++++++++++++++++++++++
измењених датотека: 2, додавања: 80(+), брисања: 0(-)

diff --git a/INSTALL b/INSTALL @@ -0,0 +1,48 @@ +Prerequisites +============= + +* C compiler - defaults in config.mk + + +Install +------- + + $ git clone https://git.sr.ht/~strahinja/bool + $ cd bool + $ su + # make install + +With got[1]: + + $ got clone https://git.sr.ht/~strahinja/bool + $ got checkout bool.git + $ cd bool + $ su + # make install + + +Persistent build configuration file +----------------------------------- + +The file config.mk will be sourced when building targets which also accept +configuration through environment variables. For example, CPPFLAGS and PREFIX +are specified in config.mk. + + +OpenBSD +------- + +Before running make(1), comment the CPPFLAGS definition in config.mk above the +line with the "OpenBSD" comment and uncomment the one below it: + + #CPPFLAGS = -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L \ + # -D_XOPEN_SOURCE=700 + # OpenBSD + CPPFLAGS = -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L \ + -D_XOPEN_SOURCE=700 -D_BSD_SOURCE + +Also, do the same for MANPREFIX: + + #MANPREFIX = $(DESTDIR)$(PREFIX)/share/man + # OpenBSD + MANPREFIX = $(DESTDIR)$(PREFIX)/man diff --git a/README b/README @@ -0,0 +1,32 @@ +bool +==== + +Logical expression tester + +For installation instructions, see the file INSTALL. + + +Description +----------- + +The first version of this program I wrote in November 1999 as a +freshman on my university, in C++. I recently rediscovered it, shaking +digital dust off a batch of my old files. Unfortunately, the original +source doesn't compile under modern C++ compilers, so I decided to +rewrite it, this time using yacc/flex. + +Its main idea is to take a logical expression, consisting of variable +names, brackets and logical operators, and for each combination of +values of different variables output the value of the expression. + + +License +------- + +bool - Logical expression tester +Copyright (C) 2026 Страхиња Радић + +This program is free software: you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the +Free Software Foundation, either version 3 of the License, or (at your +option) any later version.