Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
50 most recent check-ins
2009-09-18
| ||
08:02 | Added test for a simple arithmetic parser. This test is not fully functional, because the generated parser is not tested. Leaf check-in: a13decd30f user: wolf tags: trunk | |
2009-09-05
| ||
20:06 | Added tests for ifdef / ifndef special directive and forgot to commit test description for fallback special directive. check-in: 6ba26bfaf5 user: wolf tags: trunk | |
19:43 | Added test for code and include special directives. check-in: 9226817eb6 user: wolf tags: trunk | |
19:20 | Test for error case where the start symbol occurs on the right side of a rule check-in: 7c2f23d21e user: wolf tags: trunk | |
19:19 | Added test for start_symbol special directive. check-in: fd2cbbf516 user: wolf tags: trunk | |
2009-09-04
| ||
17:30 | removed include special directive from embedded actions test. It is to be tested on its own. check-in: 55c69f7ffb user: wolf tags: trunk | |
17:28 | Added test for embedded actions. check-in: fe6ff36567 user: wolf tags: trunk | |
2009-09-03
| ||
16:30 | improved error diagnostics message check-in: c058314432 user: wolf tags: trunk | |
16:26 | Added test for parse_failure special directive. check-in: 24411274f6 user: wolf tags: trunk | |
15:57 | Added test for special directive parse_accept. check-in: 31ef469821 user: wolf tags: trunk | |
15:56 |
Major changes:
test-files can now contain a 3 tuple describing a test run; test_runner
recognizes this tuples automatically and interprets the 3rd field of
the tuple as output which is expected from argscanner
match_output rewritten to be more stable and easier Minor changes: Some additional logging/debug output. check-in: 263a6138cc user: wolf tags: trunk | |
15:35 | Added functionality to accumulate a string which is written to stdout if not empty after the token stream was feed to the parser. check-in: ba7d63db3d user: wolf tags: trunk | |
2009-08-21
| ||
13:20 | Minor code layout thing in argscanner.c fixed (no functional change). Some info output and corrections for the usage message of test_runner.py check-in: 40fc4fd927 user: wolf tags: trunk | |
2009-08-18
| ||
12:36 | Added standard python logging to test_runner, with possibility to enable logging output via command line. check-in: 52dde5cb53 user: wolf tags: trunk | |
10:27 | Added some helpfull help messages to optparse. Accessible via -h check-in: 7b10f03268 user: wolf tags: trunk | |
10:21 | Now it is possible to specify a single test to be run from the command line for test_runner via the -t switch. check-in: 6cc0ec9726 user: wolf tags: trunk | |
10:17 | test_runner now uses optparse. Right now this didn't add any functionality, but clears the road to run specific tests and log messages. check-in: 0dec62929a user: wolf tags: trunk | |
2009-08-17
| ||
21:51 | Added some more tests for Lemon. check-in: cfa5649a47 user: wolf tags: trunk | |
2009-07-27
| ||
09:55 | Added options for compiling lemon with support for gcov. check-in: aa42b57175 user: wolf tags: trunk | |
2009-07-07
| ||
22:08 | Importet the current lempar.c from SQLite. Added an include statement for assert to lempar.c. Edited main.mk to delete all grammar files in build directory. check-in: 425d9991f0 user: wolf tags: trunk | |
21:23 | Imported the 'original' lemon.c from SQLite CVS and deleted the splited source files of lemon to reunite the trunks. Also modified main.mk to reflect this change. check-in: 94ef7973d8 user: wolf tags: trunk | |
2009-06-22
| ||
15:17 | Added an odf spreadsheet which lists all special directives in alphabetical order. For every special directive with a description in the doc.html file, the description was copied over to get an tabular overview of what descriptions are there and which are missing. Missing are descriptions for: fallback ifdef/ifndef/endif syntax_error wildcard These descriptions will be added. check-in: dd5dd210a0 user: wolf tags: trunk | |
2009-06-16
| ||
10:29 |
argscanner.c now exits with 2 to signal a 'key' failure in the lookup function.
In test_runner was a small bug with the logic for running argscanner and and signaling an error condition: It was only checked for known error conditions, in all other cases no error was signaled. Now, test_runner only checks for the known success conditions after argscanner is ran, all else should raise an exception. check-in: 3eca90ea1d user: wolf tags: trunk | |
2009-06-15
| ||
15:47 | test_runner now runs the argscanner program via data from the testdrives attribut in the test case. the single_terminal test case and zero_or_many test case use and present this feature. check-in: b29721ac98 user: wolf tags: trunk | |
15:25 | The definition of the LOOKUPTABLE macro which is passed trough to gcc for compilation of the argscanner program is now computed from the actual value of the lookuptable attribute in the test case. check-in: f814bd9a28 user: wolf tags: trunk | |
15:00 |
test_runner now builds the argscanner program, if it is needed for the testcase.
The need is determined by the presence of the lookuptable attribute in the test case module. single_terminal is the first test case to use this feature. Also added a comment into the main Makefile main.mk, because there is also an argscanner target which is handy for quick and dirty argscanner tests, but is not used by test_runner. check-in: 3c02f9fa10 user: wolf tags: trunk | |
14:23 | Cleaned up and simplified run_lemon; it doesn't exit on the first encountered error, instead it accumulates error messages and throws an exeception with all error messages. Also deleted unnecessary variables and statements. check-in: 0fce5c9682 user: wolf tags: trunk | |
14:08 | Modularized the test procedure to prepare test_runner for compiling and running tests with the argscanner program. check-in: 0d7054d5a2 user: wolf tags: trunk | |
13:29 | Added TODO item to test_runner.py check-in: 8ecfa55788 user: wolf tags: trunk | |
12:50 | Modified argscanner to return 0 if a sequence of tokens is a word from the grammar and 1 otherwise. Also added a comment to the top of argscanner.c to point this out. check-in: 69bc7a477d user: wolf tags: trunk | |
11:12 | Last step in normalizing file/directory names for lemon. test_runner is modified to find the grammars under the new directory name. check-in: c06305c866 user: wolf tags: trunk | |
11:06 | Removed files under testgrammar directory which was renamed to test_grammar directory. This is an ugly workaround because I don't figured out how to rename a directory in fossil. (fossil rename didn't work as I expected.) check-in: 6f38676c6f user: wolf tags: trunk | |
11:03 | (no comment) check-in: 02cd2302e7 user: wolf tags: trunk | |
2009-06-12
| ||
17:02 | The test_runner now takes as argument a path to the base lemon source directory. This was modified because test grammars are taken from the testgrammar subdirectory. To archive this, instead of a grammar the grammar attribute of the tests now holds the name of a grammar which resides in the testgrammar directory. test_runner copies for a test case with a grammar the file which is given via the grammar attribute to the local directory and deletes all generated files after running lemon. check-in: 6bdadfea63 user: wolf tags: trunk | |
16:24 | argscanner now issues an error message to stderr if it encounters a character which isn't present in the character lookuptable. check-in: 4991373868 user: wolf tags: trunk | |
16:03 | Compiler uses now uses -Wextra flag to show additional warnings. check-in: a317175366 user: wolf tags: trunk | |
16:01 | Removed -Wall flag from LDFLAGS; As far as I understand the gcc manual the flags are only usefull for the compiling stage, not the linking stage. check-in: 0d347798ae user: wolf tags: trunk | |
2009-06-11
| ||
16:29 |
Added a directory for testgrammars and filled it with some simple test grammars.
argscanner.c now looks for a macro called LOOKUPTABLE which should have the form like {'a',A},{'b',B}, where a and b are character literals which the argscanner should recognice and map to tokens values for the lemon parsr. In this example a is mapped to A and b to B. The intention is to use argscanner as kind of driver program for testing grammars. The Makefile now also uses two Variables which are to be provided on the command line: GRAMMAR and LOOKUPTABLE. GRAMMAR is the full path to a grammar which is given to lemon to produce grammar.{c,h} for the argscanner program. LOOKUPTABLE is the LOOKUPTABLE described above for argscanner.c, which is simply handed to gcc unaltered. check-in: f76c2c1379 user: wolf tags: trunk | |
2009-06-04
| ||
15:52 | Just some visual separators for the output of the Makefile to improve feedback. check-in: 48db0aec07 user: wolf tags: trunk | |
15:36 | argscanner.c now includes a file lookup. This file is supposed to map characters to its numerical values for the parser generated by lemon. check-in: 985117a680 user: wolf tags: trunk | |
13:46 | Added note for dependencies in Readme check-in: 91745d9706 user: wolf tags: trunk | |
13:38 | main.mk - the Makefile for Linux check-in: 9aeb897610 user: wolf tags: trunk | |
13:36 | tests now run in separate build directory check-in: fe14f0b4c2 user: wolf tags: trunk | |
10:36 | modified build system to be useable in a separate directory check-in: d25d96e64c user: wolf tags: trunk | |
10:02 | removed the unistd.h include statement from lemon.c check-in: 69740883cf user: wolf tags: trunk | |
2009-05-27
| ||
14:53 | added kind of commandline string scanner for parser generated by Lemon. Not finished yet. check-in: 372823ecf8 user: wolf tags: trunk | |
11:58 | Progress output from test_runner. check-in: 8254c626fc user: wolf tags: trunk | |
10:14 | single terminal missing dot test check-in: 712fda59d4 user: wolf tags: trunk | |
09:43 | started tests with wrong grammars as input check-in: e37c47db09 user: wolf tags: trunk | |
2009-05-26
| ||
14:03 | First draft of blackbox tests and a test driver program. check-in: 4bf77d9563 user: wolf tags: trunk | |