This repository has been archived by the owner on Aug 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[[ Bug 23149 ]] Replace mode syntax factory functions
This patch replaces the current mode syntax factory functions: `MCModeNewCommand` and `MCModeNewFunction` with a more general mechanism based around instantiating a class as a global-variable, constructed using a syntax factory function pointer. There are three global classes which can be instantiated in this manner - `MCNewStatementFactory`, `MCNewFunctionFactory` and `MCNewOperatorFactory` - corresponding to the top-level factory functions `MCN_new_statement`, `MCN_new_function` and `MCN_new_operator`. The classes 'hide' a linked list of factory functions, which are invoked in turn if the top-level functions do not recognise an id.
- Loading branch information
1 parent
9d4dc77
commit 67a9f89
Showing
7 changed files
with
150 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters