summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | More Go back end cleanup.Eric S. Raymond2020-11-191-91/+16
| | | | | | | | | | | | | | | | | | | | | | | | Remove the Bison-bdidge kludge. Rearrange yyguts_t so the public members are grouped together.
| * | | In the C99 and Go back ends, rearrange code...Eric S. Raymond2020-11-192-404/+404
| | | | | | | | | | | | | | | | ...to clean out a forward declaeation.
| * | | Improve type checking in c99 and Go back ends.Eric S. Raymond2020-11-192-5/+5
| | | |
| * | | In the Go back end, more moves towards Go-like names.Eric S. Raymond2020-11-192-335/+328
| | | | | | | | | | | | | | | | Not touching the public interface yet.
| * | | More massaging of the fake Go skeleton in the direction of Go.Eric S. Raymond2020-11-191-333/+333
| | | |
| * | | Stop emitting unbalanced markup in the skeleton.Eric S. Raymond2020-11-194-4/+3
| | | | | | | | | | | | | | | | | | | | It was fixed up by generating matcing unbalanced markuo in dfa.c, but a good idea this was not.
| * | | In C88 and Go back ends, remove remnant GENTABLES conditionals.Eric S. Raymond2020-11-192-146/+2
| | | |
| * | | Partial move of Go back end to Go canelCasing in names.Eric S. Raymond2020-11-192-343/+343
| | | | | | | | | | | | | | | | | | | | No publicly visible names are touched yet. This is all preep work. All tesrs pass.
| * | | Go back end: Change the prefix option to set Go package name...Eric S. Raymond2020-11-183-79/+18
| | | | | | | | | | | | | | | | ...presebtly commented out. All tests pass.
| * | | TYhis commit is a model for how to add a new back end.Eric S. Raymond2020-11-177-4/+2825
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Begin the Go back end. Right now it's a fake that generates C... ...but this commit puts all the build and testnmachinery in place for when it's not. All tests pass.
| * | | Improve cleanup of generated .txt after tests.Eric S. Raymond2020-11-172-2/+2
| | | |
| * | | Convert the debug test to be ruleset-based,Eric S. Raymond2020-11-178-167/+35
| | | |
| * | | Rename some rules files to make maintaining .gitignore simpler.Eric S. Raymond2020-11-174-31/+25
| | | | | | | | | | | | | | | | Due to some limitayions in git ignore wildcarding.
| * | | Fix error in testnmaker: shell case alternations evaluate easrky.Eric S. Raymond2020-11-161-4/+4
| | | |
| * | | Merge remote-tracking branch 'westes/master' into retargetingEric S. Raymond2020-11-160-0/+0
| |\ \ \ | |/ / / |/| | | | | | | All tests pass.
* | | | remove some gcc warningsgoEric S. Raymond2020-09-062-2/+2
| | | |
| * | | In C99, remove unneeded forward declarations.Eric S. Raymond2020-11-161-6/+0
| | | |
| * | | Up-gun a test to use the lineno code in the array+BOL case...Eric S. Raymond2020-11-163-3/+3
| | | | | | | | | | | | | | | | ...and fix the bug that turned up.
| * | | Remove now-unused parts of test/testwrapper.sh.Eric S. Raymond2020-11-161-2/+3
| | | |
| * | | Remove the ".one" category of tests; they've been replaced by rulesets.Eric S. Raymond2020-11-168-188/+4
| | | | | | | | | | | | | | | | | | | | This reduces the complexitry of the test machinery as well as making tests less backend-specific.
| * | | Remove now-unused SOURCES declarations.Eric S. Raymond2020-11-161-3/+0
| | | |
| * | | Improve instrumentation of test failures.Eric S. Raymond2020-11-162-7/+6
| | | | | | | | | | | | | | | | Also, yyinpt.txt is generated and does not need to be checked in.
| * | | Repair some bitrotted variable-trailing-context code.Eric S. Raymond2020-11-156-12/+91
| | | | | | | | | | | | | | | | | | | | It decayed because the test for this feature only exercised the nr back end. We add a ruleset--based test to verify on all back ends.
| * | | Fix typo revealed by Go porting work, and improve test coverage to match.Eric S. Raymond2020-11-1513-301/+248
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We a ruleset test for BOL matching and a test for the array case of yymore. Improve yymore testing by adding tests that require a BOL match in both array and pointer cases. Also, convert lineno sporadic test to be ruleset-based so it's applied on all back ends. No cide changes.
| * | | Minor build system fixes before starting the Go port.Eric S. Raymond2020-11-136-36/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove two dependencies that the C99 back end no longer has. Repair to force in-time building of skel.h files. This way of doing it reduces where a new skel dependency has to be declared in the vuilld recipe to the one spot where the flex.h file is made from the flex.skl file. The posixly correct test only needs to be done once, since it only affects how the tables are genetated rather than setting code conditionals in the back end. Also, some comment typo fixes.
| * | | In C99, more rearrangement to make public API calls visible in actions...Eric S. Raymond2020-11-121-179/+179
| | | | | | | | | | | | | | | | | | | | ..,without resorting to forward declarations. Last C99 cleanup before the Go port begins.
| * | | Documentation polishing.Eric S. Raymond2020-11-121-2/+3
| | | |
| * | | Clean up test/Makefile,am's EXTRA_DIST.Eric S. Raymond2020-11-121-8/+1
| | | |
| * | | Declare that rulset.am depends on *.rules files...Eric S. Raymond2020-11-122-4/+4
| | | | | | | | | | | | | | | | ...for automatic remake when a new one is added.
| * | | Fix another carnivorous typo.Eric S. Raymond2020-11-121-1/+1
| | | |
| * | | Clean out some small C dependencies.Eric S. Raymond2020-11-111-42/+40
| | | |
| * | | Booleanization.Eric S. Raymond2020-11-111-12/+12
| | | |
| * | | Typo fix.Eric S. Raymond2020-11-111-1/+1
| | | |
| * | | Fix two minor m4 errors found by Daniel Brooks.Eric S. Raymond2020-11-111-2/+2
| | | |
| * | | Eliminate almost all forward declarations from C99.Eric S. Raymond2020-11-112-821/+710
| | | | | | | | | | | | | | | | One less C-ism to deal wit h when porting to a new target languages.
| * | | Add a test for trailing conyext rules. Fix the bug it turned up.Eric S. Raymond2020-11-115-7/+65
| | | | | | | | | | | | | | | | | | | | Also, roperly condition some variables related to trailing contexts. Makes generated parsers ever so slightly smaller in this case.
| * | | Repair some markup damage in the manual.Eric S. Raymond2020-11-101-1/+1
| | | |
| * | | Add a trailing guard to the magic-rewrite recignizer.Eric S. Raymond2020-11-101-2/+2
| | | |
| * | | Successful elimination of preprocessor dependencies fromm C99 skeleton.Eric S. Raymond2020-11-103-26/+45
| | | | | | | | | | | | | | | | | | | | | | | | There's only one left. in the prefix code. We leave that in place because ity will be needed if we ever want to replace the default C back end with C99.
| * | | Change two member names to make rewite rules easier.Eric S. Raymond2020-11-091-11/+11
| | | |
| * | | Explain why 3 API functions don't have magic rewrite rules.Eric S. Raymond2020-11-092-48/+57
| | | | | | | | | | | | | | | | | | | | The functions are: yy_current_buffer(), yy_flush_current_buffer(), and yy_set_interactive().
| * | | yy_flex_debug -> yyflexdebug.Eric S. Raymond2020-11-083-18/+22
| | | |
| * | | Make the rewrite flag visible.Eric S. Raymond2020-11-081-0/+5
| | | |
| * | | Fully m4ize yymore()Eric S. Raymond2020-11-083-30/+29
| | | |
| * | | Add a test for yymore, and fix a bug it turned up.Eric S. Raymond2020-11-076-4/+55
| | | |
| * | | m4ize yyreject() handling.Eric S. Raymond2020-11-063-28/+23
| | | |
| * | | Fix errors that were masking problems with yyreject().Eric S. Raymond2020-11-043-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Ensure that derived skel.h includes are removed on every clean. Fix a bad shell line that prevented proper cleaming of derived *.c files from tests.
| * | | Revert "Successful m4ization of yyreject()."Eric S. Raymond2020-11-042-25/+24
| | | | | | | | | | | | | | | | | | | | | | | | There seems to be something in the build recipe or test system that makes the yyreject test unreliable. Reverting until I figure out what.
| * | | YY_AT_BOL() -> yyatbol(), yy_set_bol() -> yysetbol(), and make them magic.Eric S. Raymond2020-11-034-47/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The tradeoff is a bit delicate here; yy_set_bol() did not strictly speaking need to change. On the other hand, squeezing the underscores out of YY_AT_BOL() but not yy_set_bol() would have been exactly the kind of irregularity that people trip over and curse. The underlying issue is of course languages like Go and Python with validators that get upset by all caps and embedded underscores. On the one hand, we want to not be churning the Flex API gratuitously. On the other hand it is desirable if as few entry point names as possible need to change in different target languages. The approach I'm taking to deciding this question in individual cases is this: if an entry point name is likely to appear in actions, and must be recognized as magic by Flex itself in order to have a final context argument added or an object reference prepended, then it must be multilanguage-safe - not all-caps and no underscores. Any name that does *not* need to be wired into Flex can be left alone. Users may have to change it when they port.
| * | | Documentation polishing.Eric S. Raymond2020-11-031-12/+15
| | | |