Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

[[ Bug 23149 ]] Replace mode syntax factory functions #7544

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Commits on Apr 4, 2021

  1. [[ 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.
    runrevmark committed Apr 4, 2021
    Configuration menu
    Copy the full SHA
    4e8ac6a View commit details
    Browse the repository at this point in the history