bootstrap_flex.git
5 years agoMinor consistency changes for latest pilex.git/bootstrap Python scanner master
Nick Downing [Sat, 19 Jan 2019 12:53:22 +0000 (23:53 +1100)]
Minor consistency changes for latest pilex.git/bootstrap Python scanner

5 years agoFix minor case inversion issue in the XML marked up output
Nick Downing [Tue, 15 Jan 2019 01:58:23 +0000 (12:58 +1100)]
Fix minor case inversion issue in the XML marked up output

5 years agoFix an old-style function definition to ANSI C
Nick Downing [Mon, 14 Jan 2019 14:50:00 +0000 (01:50 +1100)]
Fix an old-style function definition to ANSI C

5 years agoImprove whitespace handling before <, ^, <<EOF>>, update for later system flex
Nick Downing [Sat, 12 Jan 2019 13:08:45 +0000 (00:08 +1100)]
Improve whitespace handling before <, ^, <<EOF>>, update for later system flex

5 years agoAdd aclocal, etc instructions to n.sh, rerun with automake 1.15
Nick Downing [Fri, 26 Oct 2018 02:36:14 +0000 (13:36 +1100)]
Add aclocal, etc instructions to n.sh, rerun with automake 1.15

5 years agoChange action groups, (?{code}expr) to (?A{code}expr), to match (?E{code}expr) origin/master
Nick Downing [Wed, 26 Sep 2018 09:19:53 +0000 (19:19 +1000)]
Change action groups, (?{code}expr) to (?A{code}expr), to match (?E{code}expr)

5 years agoAdd element groups, uniquify the internal tokens for action and element groups
Nick Downing [Wed, 26 Sep 2018 07:12:21 +0000 (17:12 +1000)]
Add element groups, uniquify the internal tokens for action and element groups

5 years agoImplement un-numbered, numbered, named and action groups (extension syntax)
Nick Downing [Sun, 23 Sep 2018 03:57:05 +0000 (13:57 +1000)]
Implement un-numbered, numbered, named and action groups (extension syntax)

5 years agoRename plex to pilex, rename PLex object and prefix to AST
Nick Downing [Tue, 11 Sep 2018 05:17:31 +0000 (15:17 +1000)]
Rename plex to pilex, rename PLex object and prefix to AST

5 years agoTidying up
Nick Downing [Thu, 26 Jul 2018 10:43:12 +0000 (20:43 +1000)]
Tidying up

5 years agoSimilarly, move most piece_* stuff from parse.c.patch into parse.y, and tidy up
Nick Downing [Thu, 26 Jul 2018 01:35:38 +0000 (11:35 +1000)]
Similarly, move most piece_* stuff from parse.c.patch into parse.y, and tidy up

5 years agoTidy up the piece_*() functions, make flush() a function piece_flush(size_t n)
Nick Downing [Thu, 26 Jul 2018 01:15:26 +0000 (11:15 +1000)]
Tidy up the piece_*() functions, make flush() a function piece_flush(size_t n)

5 years agoMove as much as possible out of scan.c.patch and stage1scan.c.patch into scan.l
Nick Downing [Thu, 26 Jul 2018 01:06:03 +0000 (11:06 +1000)]
Move as much as possible out of scan.c.patch and stage1scan.c.patch into scan.l

5 years agoImprove handling of %option and %array/%pointer, implement %option prefix=
Nick Downing [Wed, 25 Jul 2018 15:07:11 +0000 (01:07 +1000)]
Improve handling of %option and %array/%pointer, implement %option prefix=

5 years agoAdd extra bootstrapping step in src/o.sh where bootstrap_pyacc.py builds flex
Nick Downing [Tue, 24 Jul 2018 09:41:22 +0000 (19:41 +1000)]
Add extra bootstrapping step in src/o.sh where bootstrap_pyacc.py builds flex

5 years agoAdd extra bootstrapping step in src/n.sh where bootstrap_plex.py builds flex
Nick Downing [Tue, 24 Jul 2018 02:13:29 +0000 (12:13 +1000)]
Add extra bootstrapping step in src/n.sh where bootstrap_plex.py builds flex

5 years agoAdd continued actions, fix bogus definitions of [[:blank:]] and [[:space:]]
Nick Downing [Tue, 24 Jul 2018 01:23:51 +0000 (11:23 +1000)]
Add continued actions, fix bogus definitions of [[:blank:]] and [[:space:]]

5 years agoChanges for caseless scanners, allow build system to rebuild texinfo/manpage
Nick Downing [Mon, 23 Jul 2018 05:31:00 +0000 (15:31 +1000)]
Changes for caseless scanners, allow build system to rebuild texinfo/manpage

5 years agoIntroduce PLex.Section2.Rule.FLexRule which is always a pair of (expr, trailing conte...
Nick Downing [Sun, 22 Jul 2018 14:02:59 +0000 (00:02 +1000)]
Introduce PLex.Section2.Rule.FLexRule which is always a pair of (expr, trailing context) rather than the old scheme which had an optional BOLRule inserted in

5 years agoChange char_set="..." to character_set="...", for use with the latest regex.py
Nick Downing [Sat, 21 Jul 2018 13:08:55 +0000 (23:08 +1000)]
Change char_set="..." to character_set="...", for use with the latest regex.py

5 years agoImprove markup of %{ %} actions and codeblocks, fix some minor related bugs
Nick Downing [Sat, 21 Jul 2018 11:47:02 +0000 (21:47 +1000)]
Improve markup of %{ %} actions and codeblocks, fix some minor related bugs

5 years agoChange bracketing of action text so that delimiters are captured within markup
Nick Downing [Mon, 2 Jul 2018 12:02:26 +0000 (22:02 +1000)]
Change bracketing of action text so that delimiters are captured within markup

5 years agoMove CodeBlocks class inside new Section1Or2 class (formerly SectionCodeBlocks)
Nick Downing [Mon, 2 Jul 2018 07:50:50 +0000 (17:50 +1000)]
Move CodeBlocks class inside new Section1Or2 class (formerly SectionCodeBlocks)

5 years agoFurther rearrangement to put everything inside the PLex class
Nick Downing [Sun, 1 Jul 2018 13:01:05 +0000 (23:01 +1000)]
Further rearrangement to put everything inside the PLex class

5 years agoRearrange AST class structure to use inner class definitions
Nick Downing [Sat, 30 Jun 2018 06:35:47 +0000 (16:35 +1000)]
Rearrange AST class structure to use inner class definitions

5 years agoChange how start conditions are represented in the syntax tree
Nick Downing [Sat, 30 Jun 2018 03:08:19 +0000 (13:08 +1000)]
Change how start conditions are represented in the syntax tree

5 years agoFix minor bugs (missing/misplaced markup)
Nick Downing [Sat, 30 Jun 2018 00:22:48 +0000 (10:22 +1000)]
Fix minor bugs (missing/misplaced markup)

5 years agoRemove RegexGroup markup around the expression to be matched, so that we simply gener...
Nick Downing [Wed, 27 Jun 2018 14:14:09 +0000 (00:14 +1000)]
Remove RegexGroup markup around the expression to be matched, so that we simply generate two expressions, the expression to be matched and the trailing context

5 years agoChange inner loops to use int not YY_CHAR, removing need for separate NUL table
Nick Downing [Mon, 25 Jun 2018 04:01:20 +0000 (14:01 +1000)]
Change inner loops to use int not YY_CHAR, removing need for separate NUL table

5 years agoChange the generated output, to make it readable by element.deserialize(), etc
Nick Downing [Sun, 24 Jun 2018 09:14:02 +0000 (19:14 +1000)]
Change the generated output, to make it readable by element.deserialize(), etc

5 years agoTighten up <Rule>...</Rule> so it does not pull in the inter-token space before
Nick Downing [Sat, 23 Jun 2018 04:53:39 +0000 (14:53 +1000)]
Tighten up <Rule>...</Rule> so it does not pull in the inter-token space before

5 years agoImplement proper options markup, tidy up <Rule>...<Action>...</Action</Rule>
Nick Downing [Sat, 23 Jun 2018 03:56:38 +0000 (13:56 +1000)]
Implement proper options markup, tidy up <Rule>...<Action>...</Action</Rule>

5 years agoModify so that the scanner inserts the <SectN>...</SectN> markup, make sect 3 have...
Nick Downing [Sat, 23 Jun 2018 00:58:16 +0000 (10:58 +1000)]
Modify so that the scanner inserts the <SectN>...</SectN> markup, make sect 3 have proper markup, and update the markup system from latest bootstrap_bison.git

5 years agoFix a bug of including extra yytext after isolated action (blank/comment line)
Nick Downing [Thu, 21 Jun 2018 14:43:43 +0000 (00:43 +1000)]
Fix a bug of including extra yytext after isolated action (blank/comment line)

5 years agoFix a bug in code that executes when <token value="NNN">...</token> is disabled
Nick Downing [Thu, 21 Jun 2018 13:31:16 +0000 (23:31 +1000)]
Fix a bug in code that executes when <token value="NNN">...</token> is disabled

5 years agoAdd a forgotten section of src/Makefile.patch
Nick Downing [Tue, 12 Jun 2018 11:23:54 +0000 (21:23 +1000)]
Add a forgotten section of src/Makefile.patch

5 years agoFirst cut at modified flex that operates normally but also writes a scanned, parsed...
Nick Downing [Tue, 12 Jun 2018 10:13:12 +0000 (20:13 +1000)]
First cut at modified flex that operates normally but also writes a scanned, parsed and marked up version of the input file to stderr in XML format (had to run autogen.sh for some reason so the configure, Makefile.in etc have also changed)

5 years agoImplement ./n.sh instead of ./configure which will auto-patch src/Makefile
Nick Downing [Tue, 12 Jun 2018 06:50:28 +0000 (16:50 +1000)]
Implement ./n.sh instead of ./configure which will auto-patch src/Makefile

5 years agoMake it buffer the pieces in memory (in a stack) and reduce it down to a single piece...
Nick Downing [Tue, 12 Jun 2018 05:46:55 +0000 (15:46 +1000)]
Make it buffer the pieces in memory (in a stack) and reduce it down to a single piece in the parser stage, so that the parser stage can also insert XML tags

5 years agoMake it add markup around code: <CodeBlock>, <Action> and <PercentBraceAction>
Nick Downing [Tue, 12 Jun 2018 01:17:38 +0000 (11:17 +1000)]
Make it add markup around code: <CodeBlock>, <Action> and <PercentBraceAction>

5 years agoModified flex-2.6.4 to output XML to stderr showing token values and boundaries
Nick Downing [Tue, 12 Jun 2018 00:29:05 +0000 (10:29 +1000)]
Modified flex-2.6.4 to output XML to stderr showing token values and boundaries

5 years agoPristine copy of flex-2.6.4
Nick Downing [Mon, 11 Jun 2018 22:24:57 +0000 (08:24 +1000)]
Pristine copy of flex-2.6.4