# US 2013/0159981 A1 · Extension mechanism for scripting language compiler

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2013/0159981 A1
- Document ID: US20130159981A1
- Status: Published application
- Kind: A1
- Application number: 13/327,532
- Filed: 2011-12-15
- Published: 2013-06-20
- Earliest claimed: 2011-12-15
- Assignees: Sap SE
- Inventors: Oliver Klemenz; Andreas Mueller; Anna Kabala; Lu Zhao
- Web page: https://patentgrep.com/patent/US20130159981A1

## CPC

- G06F 8/427: {Parsing}
- G06F 8/47: {Retargetable compilers}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method for forming an extension to a scripting language compiler is disclosed. A compiler of a machine receives a source code that has a new keyword to a scripting language of the compiler. An extension compiler module processes the source code to support the new keyword. The compiler and the extension compiler module generate an executable machine code based on a process of the extension compiler module and the compiler.

## Claims

### Claim 1

A computer-implemented method comprising:
receiving a source code at a compiler of a machine, the source code comprising a new keyword to a scripting language of the compiler;
processing, using a processor of the machine, the source code with an extension compiler module configured to support the new keyword; and
generating an executable machine code based on a process of the extension compiler module and the compiler.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein the compiler is configured to:
analyze a syntax of the source code;
analyze a semantic of the source code; and
generate the executable machine code based on the syntax and semantic of the source code.

### Claim 3 (depends on 2)

The computer-implemented method of claim 2, wherein the extension compiler module is configured to generate a new functionality from the new keyword in the compiler without modifying the syntax and the semantic of the source code.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein the extension compiler module is configured to bind a method to an arbitrary type with an extension method module.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein the extension compiler module is configured to model a definition of a snippet of a metadata and a signature with a snippet context module.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein the extension compiler module is configured to enable access to a plurality of access paths defined in a scripting language architecture with an access path module.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein the extension compiler module is configured to control a semantic analysis by specifying evaluation properties and restricting access to a scripting language architecture with a property handling module.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, wherein the extension compiler module is configured to access a centralized meta data repository with a buffered retrieval of data from the centralized meta data repository with a meta data access module.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, wherein the extension compiler module is configured to extend the scripting language of the compiler to new types with a type extension compiler module.

### Claim 10 (depends on 1)

The computer-implemented method of claim 1, wherein the source code comprises a business object.

### Claim 11

A system comprising:
a compiler of a machine configured to receive a source code comprising a new keyword to a scripting language of the compiler;
an extension compiler module coupled to the compiler, the extension compiler module configured to support the new keyword and process the source code,
the compiler and extension compiler module configured to generate an executable machine code based on the source code.

### Claim 12 (depends on 11)

The system of claim 11, wherein the compiler is configured to:
analyze a syntax of the source code;
analyze a semantic of the source code; and
generate the executable machine code based on the syntax and semantic of the source code, the source code comprising a business object.

### Claim 13 (depends on 12)

The system of claim 12, wherein the extension compiler module is configured to generate a new functionality from the new keyword in the compiler without modifying the syntax and the semantic of the source code.

### Claim 14 (depends on 11)

The system of claim 11, wherein the extension compiler module further comprises:
an extension method module configured to bind a method to an arbitrary type.

### Claim 15 (depends on 11)

The system of claim 11, wherein the extension compiler module further comprises:
a snippet context module configured to model a definition of a snippet of a metadata and a signature.

### Claim 16 (depends on 11)

The system of claim 11, wherein the extension compiler module further comprises:
an access path module configured to enable access to a plurality of access paths defined in a scripting language architecture.

### Claim 17 (depends on 11)

The system of claim 11, wherein the extension compiler module further comprises:
a property handling module configured to control a semantic analysis by specifying evaluation properties and restricting access to a scripting language architecture.

### Claim 18 (depends on 11)

The system of claim 11, wherein the extension compiler module further comprises:
a meta data access module configured to access a centralized meta data repository with a buffered retrieval of data from the centralized meta data repository.

### Claim 19 (depends on 11)

The system of claim 11, wherein the extension compiler module further comprises:
a type extension compiler module configured to extend the scripting language of the compiler to new types.

### Claim 20

A non-transitory machine readable medium embodying a set of instructions that, when executed by one or more processors, causes the processor to perform a method, the method comprising:
receiving a source code at a compiler of a machine, the source code comprising a new keyword to a scripting language of the compiler;
processing the source code with an extension compiler module configured to support the new keyword without having to modify the syntax and semantic of the source code; and
generating an executable machine code based on a process of the extension compiler module and the compiler.
