bootstrap_bison.git
5 years agoMinor consistency fixes wrt. piyacc.git commit 6558f0b master
Nick Downing [Mon, 21 Jan 2019 06:20:27 +0000 (17:20 +1100)]
Minor consistency fixes wrt. piyacc.git commit 6558f0b

5 years agoPut </AST_Production_GroupElement> after the closing parenthesis of the group
Nick Downing [Mon, 21 Jan 2019 00:28:26 +0000 (11:28 +1100)]
Put </AST_Production_GroupElement> after the closing parenthesis of the group

5 years agoAllow value and stack references in action text of (?{...}...) element groups
Nick Downing [Sun, 20 Jan 2019 05:44:15 +0000 (16:44 +1100)]
Allow value and stack references in action text of (?{...}...) element groups

5 years agoFix some old-style function definitions to ANSI C, update for later system flex
Nick Downing [Mon, 14 Jan 2019 09:33:31 +0000 (20:33 +1100)]
Fix some old-style function definitions to ANSI C, 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:28 +0000 (13:36 +1100)]
Add aclocal, etc instructions to n.sh, rerun with automake 1.15

5 years agoAdd %space (extension syntax) origin/master
Nick Downing [Thu, 27 Sep 2018 05:14:39 +0000 (15:14 +1000)]
Add %space (extension syntax)

5 years agoAdd element groups (extension syntax)
Nick Downing [Wed, 26 Sep 2018 12:11:09 +0000 (22:11 +1000)]
Add element groups (extension syntax)

5 years agoRename pyacc to piyacc, rename PYACC object and prefix to AST
Nick Downing [Tue, 11 Sep 2018 05:37:47 +0000 (15:37 +1000)]
Rename pyacc to piyacc, rename PYACC object and prefix to AST

5 years agoPut PYACC.Text inside PYACC.BracedCode excluding the braces, except for the action...
Nick Downing [Fri, 3 Aug 2018 07:07:46 +0000 (17:07 +1000)]
Put PYACC.Text inside PYACC.BracedCode excluding the braces, except for the action text where this is too difficult (so we'll work around it in ast.py for now)

5 years agoAdd extra bootstrapping step in src/o.sh where bootstrap_pyacc.py builds bison
Nick Downing [Sun, 29 Jul 2018 11:54:22 +0000 (21:54 +1000)]
Add extra bootstrapping step in src/o.sh where bootstrap_pyacc.py builds bison

5 years agoRemove %<flag> stuff in favour of explicit Section1.Debug|Locations|PureParser
Nick Downing [Sun, 29 Jul 2018 09:46:47 +0000 (19:46 +1000)]
Remove %<flag> stuff in favour of explicit Section1.Debug|Locations|PureParser

5 years agoPut a PYACC.SymbolRef inside PYACC.Production.SymbolRef to do the heavy lifting
Nick Downing [Sun, 29 Jul 2018 01:28:25 +0000 (11:28 +1000)]
Put a PYACC.SymbolRef inside PYACC.Production.SymbolRef to do the heavy lifting

5 years agoCombine PYACC.TerminalRef and PYACC.NonterminalRef into PYACC.SymbolRef (relying...
Nick Downing [Sun, 29 Jul 2018 00:09:07 +0000 (10:09 +1000)]
Combine PYACC.TerminalRef and PYACC.NonterminalRef into PYACC.SymbolRef (relying on information passed in from the surrounding context to set the symbol type)

5 years agoGet rid of TaggedSymbols, just put tags/symbols inside Section1.Type or similar
Nick Downing [Sat, 28 Jul 2018 23:41:30 +0000 (09:41 +1000)]
Get rid of TaggedSymbols, just put tags/symbols inside Section1.Type or similar

5 years agoFix Define to Defines, type to _type, and remove Int object in favour of value=
Nick Downing [Sat, 28 Jul 2018 02:22:43 +0000 (12:22 +1000)]
Fix Define to Defines, type to _type, and remove Int object in favour of value=

5 years agoAdd extra bootstrapping step in src/n.sh where bootstrap_plex.py builds bison
Nick Downing [Thu, 26 Jul 2018 11:32:02 +0000 (21:32 +1000)]
Add extra bootstrapping step in src/n.sh where bootstrap_plex.py builds bison

5 years agoMoving most of the (code|gram)_piece_* stuff out of *.c.patch and into *.[ly]
Nick Downing [Thu, 26 Jul 2018 11:03:22 +0000 (21:03 +1000)]
Moving most of the (code|gram)_piece_* stuff out of *.c.patch and into *.[ly]

5 years agoFix missing braces and contents for PYACC.Text.ValueReference etc, add tag_name
Nick Downing [Fri, 20 Jul 2018 12:02:58 +0000 (22:02 +1000)]
Fix missing braces and contents for PYACC.Text.ValueReference etc, add tag_name

5 years agoRationalize PYACC.Text so it occurs only once inside containers like PYACC.Char,...
Nick Downing [Thu, 19 Jul 2018 13:27:11 +0000 (23:27 +1000)]
Rationalize PYACC.Text so it occurs only once inside containers like PYACC.Char, and so that embedded references like PYACC.Escape now become PYACC.Text.Escape and occur inside PYACC.Text instead of being interspersed with PYACC.Text nodes

5 years agoFix serialization so that nodes (e.g. PYACC.Production) can be parented within the...
Nick Downing [Thu, 19 Jul 2018 12:38:44 +0000 (22:38 +1000)]
Fix serialization so that nodes (e.g. PYACC.Production) can be parented within the main document and also be referenced (e.g. from the list PYACC.productions)

5 years agoRename PYACC.Production.Symbol to PYACC.Production.SymbolRef
Nick Downing [Thu, 19 Jul 2018 00:18:43 +0000 (10:18 +1000)]
Rename PYACC.Production.Symbol to PYACC.Production.SymbolRef

5 years agoFix bug in integer encoding of associativities in PYACC.Section1Or2.Precedence
Nick Downing [Wed, 18 Jul 2018 23:40:27 +0000 (09:40 +1000)]
Fix bug in integer encoding of associativities in PYACC.Section1Or2.Precedence

5 years agoSplit out PYACC.Section1Or2.Symbol into PYACC.TerminalRef, PYACC.NonterminalRef
Nick Downing [Wed, 18 Jul 2018 12:45:45 +0000 (22:45 +1000)]
Split out PYACC.Section1Or2.Symbol into PYACC.TerminalRef, PYACC.NonterminalRef

5 years agoRename Section2.Rules.RHS to Production, and apply several small optimizations
Nick Downing [Tue, 17 Jul 2018 13:31:49 +0000 (23:31 +1000)]
Rename Section2.Rules.RHS to Production, and apply several small optimizations

5 years agoRework how tag/symbol lists from the parser are handled
Nick Downing [Tue, 17 Jul 2018 02:15:19 +0000 (12:15 +1000)]
Rework how tag/symbol lists from the parser are handled

5 years agoAdd markup in scan-code.l scanner, add extra piece vector and copying scheme to overl...
Nick Downing [Fri, 6 Jul 2018 04:47:59 +0000 (14:47 +1000)]
Add markup in scan-code.l scanner, add extra piece vector and copying scheme to overlay the scanned code over that which is returned by scan-gram.l scanner

5 years agoMinor changes to PYACC_Text bracketing of actions and section 3
Nick Downing [Thu, 5 Jul 2018 23:08:16 +0000 (09:08 +1000)]
Minor changes to PYACC_Text bracketing of actions and section 3

5 years agoRemove RHSes (just put RHSes after the LHS), change Escape char= to character=
Nick Downing [Wed, 4 Jul 2018 12:32:26 +0000 (22:32 +1000)]
Remove RHSes (just put RHSes after the LHS), change Escape char= to character=

5 years agoMinor fixes to markup of rules, actions and strings
Nick Downing [Tue, 3 Jul 2018 00:18:53 +0000 (10:18 +1000)]
Minor fixes to markup of rules, actions and strings

5 years agoHuge changes to markup, to match first cut at bootstrap_pyacc.py
Nick Downing [Mon, 2 Jul 2018 12:27:03 +0000 (22:27 +1000)]
Huge changes to markup, to match first cut at bootstrap_pyacc.py

5 years agoChange the generated output, to make it readable by element.deserialize()
Nick Downing [Tue, 26 Jun 2018 04:07:38 +0000 (14:07 +1000)]
Change the generated output, to make it readable by element.deserialize()

5 years agoMinor change for consistency with latest bootstrap_flex.git (append function)
Nick Downing [Sat, 23 Jun 2018 04:59:08 +0000 (14:59 +1000)]
Minor change for consistency with latest bootstrap_flex.git (append function)

5 years agoMinor change for consistency with latest bootstrap_flex.git (slower but easier)
Nick Downing [Sat, 23 Jun 2018 01:00:57 +0000 (11:00 +1000)]
Minor change for consistency with latest bootstrap_flex.git (slower but easier)

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

5 years agoImproved and more comprehensive markup
Nick Downing [Fri, 15 Jun 2018 13:36:29 +0000 (23:36 +1000)]
Improved and more comprehensive markup

5 years agoReasonable first cut at adding XML markup around bison tokens and grammar rules
Nick Downing [Thu, 14 Jun 2018 23:54:18 +0000 (09:54 +1000)]
Reasonable first cut at adding XML markup around bison tokens and grammar rules

5 years agoPristine copy of bison-3.0.5
Nick Downing [Wed, 13 Jun 2018 06:06:33 +0000 (16:06 +1000)]
Pristine copy of bison-3.0.5