|Quentin Barrand eff2117b5e||6 years ago|
|.travis.yml||6 years ago|
|Dconfig.c||6 years ago|
|Dconfig.h||6 years ago|
|Ddictionary.c||6 years ago|
|Ddictionary.h||6 years ago|
|Dnode.c||6 years ago|
|Dnode.h||6 years ago|
|Doxyfile||6 years ago|
|Dword.c||6 years ago|
|DwordList.c||6 years ago|
|LICENSE||6 years ago|
|Makefile||6 years ago|
|README.md||6 years ago|
|application.c||6 years ago|
|application.h||6 years ago|
|commands.example||6 years ago|
|definitions.example||6 years ago|
|main.c||6 years ago|
The subject was to implement a dictionary based on a 26-ary tree, with each word having references to its bases, synonyms and derivatives. The data structure should be imported from a definitions file, and the user should be offered a prompt allowing him to make various requests to the data structure.
Finally, the program should not have any memory leak.
Very simply, using make :
If you want to get all the debug features and symbols, just call the
target instead :
$ make dev.
$ ./dictionary [options] <definitions file>
-h Prints help and exits.
-d For each request, prints the number of dictionary cases we've been through.
-p Prints the data structure.
-if <commands file> Path to a commands file. See next section.
A list of commands that should be executed before the program starts and interactive prompt. See next section.
This argument is obligatory. It contains a list of words that should be inserted into the dictionary, with their bases and synonyms. See the included example.
This argument is optional. It contains a list of commands, separated by a
newline character (
\0). These commands are executed before the interactive
mode is started.
See the included example.
After all the options (and the commands included in the commands file, if
applicable) have been processed, the user is offered a command prompt.
You can use the following commands :
BASE <word> Prints all the base words for the specified word.
DERI <word> Prints all the derivative words for the specified word.
SYNO <word> Prints all the synonyms of the specified word.
INFO <regex> Prints all the words matching the specified regular expression.
You can then quit the application using the
The documentation for this project is made using Doxygen. It is available here.