|Quentin Barrand eff2117b5e Configured Doxygen to use README.md as the source for the main page.||5 years ago|
|.travis.yml||5 years ago|
|Dconfig.c||5 years ago|
|Dconfig.h||5 years ago|
|Ddictionary.c||5 years ago|
|Ddictionary.h||5 years ago|
|Dnode.c||5 years ago|
|Dnode.h||5 years ago|
|Doxyfile||5 years ago|
|Dword.c||5 years ago|
|DwordList.c||5 years ago|
|LICENSE||5 years ago|
|Makefile||5 years ago|
|README.md||5 years ago|
|application.c||5 years ago|
|application.h||5 years ago|
|commands.example||5 years ago|
|definitions.example||5 years ago|
|main.c||5 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.