Role extensions for programming languages
AssigneeZoho Corporation Private Limited
InventorsSridhar Vembu, Akshhayaa S
Life of this patent
Estimating the term…
Abstract
A programming language and compiler support inheritance and type extensions. Program code defines user-defined independent and dependent-link data types. Elements of an independent data type can be inherited by a dependent-link data type that can extend the scope of the independent data type and the scope of one or more elements of the independent data type. Data types and type extensions are instantiated in memory as uniquely identified objects that reference one another in a manner that controls inter-object access.
Claims21
A method of parsing statements of programming code, the method comprising:
- parsing a first of the statements naming a first data type, the first data type having:
- a first-data-type name;
- an extensibility indicator indicating the first data type is extensible;
- and
- a first-data-type element;
- and
- parsing a second of the statements naming a second data type referencing the first data type, the second data type having:
- a second-data-type element associated with an extension indicator, the second-data-type element referencing at least one of the first data type and the first-data-type element.
A non-transitory, computer-readable medium comprising:
- first statements defining a first data type having:
- a first-data-type scope;
- and
- a first-data-type element having a first-data-type-element scope;
- and
- second statements defining a second data type referencing the first data type and having a second-data-type scope that includes the first-data-type scope, the second statements including at least one of:
- a first scope-extension statement extending the second-data-type scope beyond the first-data-type scope;
- and
- a second scope-extension statement extending the second-data-type scope beyond the first-data-type-element scope.
A system comprising:
- at least one processor;
- a memory connected to the at least one processor:
- and
- a compiler that when loaded into the at least one processor causes the at least one processor to:
- parse first statements of programming code naming a first data type, the first data type having:
- a first-data-type name;
- an extensibility indicator indicating the first data type is extensible;
- and
- a first-data-type element;
- and
- parse second statements of the programming code, the second statements naming a second data type referencing the first data type, the second data type having:
- a second-data-type element associated with an extension indicator, the second-data-type element referencing at least one of the first data type and the first-data-type element.
21-43. (canceled)
Dependencies are inferred from the claim text.