Olivier Teulière
90badeca21
- Fixed a bug in the parser, preventing to parse correctly some regular expressions with wide chars. The regular expressions seem now to work fine with a dictionary using polish words.
...
- More C++ in the automaton code
- Simplified the code in several places
2008-07-27 13:32:47 +00:00
Olivier Teulière
7ea51d2f23
Compilation fixes for some systems (missing headers)
2008-07-20 12:15:51 +00:00
Olivier Teulière
0bfcad6d58
Various little fixes to the regexp engine to support wide characters.
...
It now works fine on any dictionary using non-ASCII characters!
2008-07-13 07:55:47 +00:00
Olivier Teulière
11adaba410
- Added several tests for the regular expressions engine
...
- New regexp parser using Boost.Spirit. Lex and yacc are now gone.
The main advantage of this new parser, apart from being purely C++,
is that it can handle wide characters.
Currently, the new parser does the same as the previous one, but the
code is not yet ready to use regular expressions with non-ASCII
dictionaries.
2008-07-07 17:29:59 +00:00
Olivier Teulière
414baa8d7a
- Use vectors instead of lists to store the results of dictionary searches
...
- New parameter to most search functions, allowing to limit the number of results.
No interface uses it yet.
2008-03-02 18:45:10 +00:00
Olivier Teulière
099d531177
Indicate that the input of compdic should be sorted and without duplicate entries
2008-02-24 11:30:56 +00:00
Olivier Teulière
f19bc036f8
- Handle the BOM properly if it is present
...
- Ignore empty lines even if the file format is not the native one
2008-02-22 20:30:01 +00:00
Olivier Teulière
7d81fc5420
Fixed the crossword search (the new dictionary is more sensitive).
...
Anyway, this search is useless since the same can be done with a regexp...
2008-01-19 21:34:58 +00:00
Antoine Fraboulet
6c831c5534
- add compile-time dependences to compile erl.lpp and erl.ypp from a CVS checkout
2008-01-13 20:26:04 +00:00
Olivier Teulière
572b31c64e
- dic/encoding.cpp: simplification (this also removes a warning)
...
- game/rack.*: added a missing const
- game/game_io.cpp: fixed a compilation warning
2008-01-11 10:09:26 +00:00
Olivier Teulière
81e980104f
- Board::GetLetterMultiplier() and Board::GetWordMultiplier() are now static
...
- Added 2 convenient getters: Dictionary::getName() and Bag::getDic()
2008-01-09 10:48:19 +00:00
Olivier Teulière
ba230eda60
- Bumped version number to 1.6
...
- Used the -Wall option of automake, and fixed the reported warnings
- Updated french translation
2008-01-08 16:09:08 +00:00
Olivier Teulière
e7a8d01a8d
Merged the "cppdic" branch back into HEAD.
...
There are too many change to list properly, here is an overview of the main changes:
- the dictionary is now in C++
- the dictionary has a new format, where it is possible to specify the letters,
their points, their frequency, ... It is backwards compatible.
- Eliot now supports non-ASCII characters everywhere
- i18n of the compdic, listdic, regexpmain binaries
- i18n of the wxWidgets interface (now in english by default)
2008-01-08 13:52:32 +00:00
Antoine Fraboulet
d86bd2af4a
- 32/64 bits types
...
- unused function parameters
2007-08-04 20:01:27 +00:00
Antoine Fraboulet
33e5b23004
- automake 1.10 (ylwrap) naming system modification
2007-08-04 19:57:45 +00:00
Olivier Teulière
5a10ec911a
Fixed my previous commit
2006-10-14 10:19:12 +00:00
Olivier Teulière
ae67aa71ee
Do not perform any dictionary search on a zero-length intput. This was the case due to the Refresh methods in the wxWidgets interface, during a search.
...
What's more, since wxWidgets is very slow to handle the list of results (benjamins in particular), a search done with the search windows open seems more responsive.
2006-10-14 09:46:15 +00:00
Olivier Teulière
0683b6a516
Fixed more memory leaks of the same kind
2006-10-08 18:24:17 +00:00
Olivier Teulière
749db006f6
Fixed a memory leak
2006-10-08 18:12:17 +00:00
Olivier Teulière
ba11fc3be6
Removed another useless include
2006-09-30 22:19:17 +00:00
Olivier Teulière
8519a4d794
Removed useless includes
2006-09-30 22:11:56 +00:00
Antoine Fraboulet
86c65ebc4a
- add load dictionnary functions for bigendian arch
...
regression test is ok on linux/ppc
2006-04-16 11:27:19 +00:00
Olivier Teulière
77be2e9219
Backport of the 'multibyte' branch on HEAD.
2006-01-22 12:23:52 +00:00
Antoine Fraboulet
c44a16dc13
- small typo fix in comments
...
- add doxygen file description
- revert Dic_chr / board_search patch
returning the character instead of the code
was a HUGE performance penalty
The dictionary must use codes, the board must be
made to use codes instead of dic using tiles.
- add Dic_char and Dic_char_lookup as temporary
fixes for board_search. Should modify Board and Cross class
instead.
- create dic_code_t type
2006-01-01 19:51:00 +00:00
Olivier Teulière
96fe9f22b1
Dic_chr returns the actual char, not a code between 0 and 31.
...
Dic_lookup takes a string containing real chars, not codes.
The idea is to hide the internal representation of the characters from the
users of the dictionary, who don't care about it.
2005-12-24 18:42:44 +00:00
Olivier Teulière
a9e51998f8
Fixed a segfault
2005-12-24 16:49:26 +00:00
Olivier Teulière
b54b760677
Backported modifications in dic/
2005-11-05 17:56:22 +00:00
Olivier Teulière
fe13a5e627
Removed the $Id:$ lines on HEAD
2005-11-04 20:00:05 +00:00
Olivier Teulière
e3bc46b114
Updated licence text with FSF's new address.
2005-10-23 14:53:42 +00:00
Antoine Fraboulet
d0418c3e8d
commit to tag v1.5
2005-05-28 20:59:14 +00:00
Antoine Fraboulet
699f5fa205
fixed a typo for doxygen
2005-05-06 07:39:58 +00:00
Antoine Fraboulet
9cd294492e
adding untyped list type for use in automaton
2005-05-06 07:25:40 +00:00
Antoine Fraboulet
b9f9bd763e
- regexp are now complete and correct
...
- licence update in files header
2005-05-05 23:45:04 +00:00
Antoine Fraboulet
49a41bb311
- added + ? and [^xx] works in most of the cases, automata is no more
...
deterministic, I have to rewrite the automaton_build to correct this.
2005-04-27 17:35:03 +00:00
Antoine Fraboulet
e29aa11a75
lexer/parser function name changed yy* -> regexp*
2005-04-26 16:31:45 +00:00
Antoine Fraboulet
2b829c1768
doxygen doc changes
2005-04-26 07:37:55 +00:00
Antoine Fraboulet
70cbbedede
QMARK and PLUS are working, still a small thing to correct for QMARK (a[bc]?d)
2005-04-25 09:17:53 +00:00
Antoine Fraboulet
a0b083e83b
adding QMARK, PLUS
2005-04-25 08:18:24 +00:00
Antoine Fraboulet
c8dde79bc3
uint_t -> dic_elt_t for dictionary
2005-04-20 18:11:00 +00:00
Antoine Fraboulet
072afe50f8
fixed a memory leak when freeing automaton
2005-04-19 20:18:32 +00:00
Antoine Fraboulet
909a29a43d
minor changes
2005-04-19 20:02:55 +00:00
Antoine Fraboulet
473ef6d47f
DEBUG_RE removed
2005-04-19 18:09:44 +00:00
Antoine Fraboulet
9296520b64
correction for generated files derived from er.l and er.y
2005-04-19 18:07:14 +00:00
Antoine Fraboulet
120f342c5d
small typo fixed
2005-04-19 16:40:24 +00:00
Antoine Fraboulet
be0dea2a08
- documentation added for the dictionary
...
- regexp is now working (still needs some testing)
- regexp syntax error recovery is not implemented
2005-04-19 16:26:50 +00:00
Antoine Fraboulet
ad5b5963d5
*** empty log message ***
2005-04-18 17:40:36 +00:00
Antoine Fraboulet
59f7c6df9c
yyparser ok. must change things to have a unique prefix instead of yy*
2005-04-16 20:55:51 +00:00
Olivier Teulière
5b70753b50
Fixed a warning in Doxygen generation
2005-04-10 13:35:10 +00:00
Antoine Fraboulet
4f1420ed31
- minor dictionary .h changes
...
- starting integrating regexp into eliot
2005-04-09 19:16:09 +00:00
Olivier Teulière
6b025b9541
- Several fixes in the build system
...
- Added a bootstrap script to reduce manual work
- Added a --enable-debug configure switch to define the DEBUG variable
2005-04-03 21:12:03 +00:00