Skip to content

Commit

Permalink
tutorial & demo
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszcz committed Oct 2, 2021
1 parent 1559715 commit bedd90d
Show file tree
Hide file tree
Showing 6 changed files with 438 additions and 461 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,11 @@ ALLPASFILES := $(patsubst %.pas.mcp, %.pas, $(wildcard *.pas.mcp))
ADTUNITS := $(patsubst %.pas, %$(obj_suffix), $(ALLPASFILES))
TESTPROGS := $(patsubst %.pas, %$(prog_suffix), $(wildcard tests/*.pas))
TESTUNITS := $(patsubst %.pas, %$(obj_suffix), $(wildcard tests/units/*.pas))
DEMOPROGS := $(patsubst %.pas, %$(prog_suffix), $(wildcard demo/customer/*.pas))

TOOLSDEPS := $(wildcard tools/*.pas tools/*.c tools/*.h)

.PHONY : test install static dynamic smart all units tests debug windows docs clean cleandocs cleanprogs fastclean tools check
.PHONY : test install static dynamic smart all units tests debug demo windows docs clean cleandocs cleanprogs fastclean tools check

all : units tests

Expand All @@ -138,6 +139,8 @@ tests : units $(TESTPROGS) $(TESTUNITS)

debug : units tests

demo : units $(DEMOPROGS)

windows : units

tools : tools.dep
Expand Down
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
PascalAdt is a library of data structures and algorithms for Free
Pascal and Delphi, inspired by the C++ STL library.
[PascalAdt](https://pascaladt.github.io) is a library of data
structures and algorithms for Free Pascal inspired by the C++ STL
library.

Features
--------
Expand Down Expand Up @@ -28,12 +29,15 @@ Installation and usage
----------------------
* Compilation: `make`
* Tests: `make test`
* Installation `make install`
* Installation: `make install`
* [Demo](demo/customer/customer.pas) compilation: `make demo`

Documentation
-------------

See [docsrc/tutorial.txt](docsrc/tutorial.txt) and [demo/customer/customer.pas](demo/customer/customer.pas).
[PascalAdt documentation](https://pascaladt.github.io/pascaladt-docs/index.html) is available at the [PascalAdt webpage](https://pascaladt.github.io/). It includes a tutorial and the API documentation auto-generated from sources with the [SrcDoc](https://github.com/lukaszcz/srcdoc/) program.

See also [docsrc/tutorial.txt](docsrc/tutorial.txt) and [demo/customer/customer.pas](demo/customer/customer.pas).

Copyright and license
---------------------
Expand Down
1 change: 1 addition & 0 deletions adtstralgs.pas.mcp
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ begin
tab := KmpReverseComputeTable(str2);

len := Length(str2);
Result := nil;
SetLength(Result, len + 2);
filler := len + 2;
for i := 0 to len do
Expand Down
5 changes: 1 addition & 4 deletions cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,7 @@ if [ "$REPLY" = "yes" ]; then
cd units
rm -f `ls -1 | grep '~'`
rm -f `ls -1 | egrep -v "${FILES_TO_RETAIN}"'|(cpu)'`;
cd cpu
rm -f `ls -1 | grep '~'`
rm -f `ls -1 | egrep -v "${FILES_TO_RETAIN}"'|(license.txt)'`;
cd ../../../demo
cd ../../demo
rm -f `ls -1 | grep '~'`
rm -f `ls -1 | egrep -v "${FILES_TO_RETAIN}"'|(customer)|(Makefile)'`;
cd customer
Expand Down
Loading

0 comments on commit bedd90d

Please sign in to comment.