IP Library Granted Patent US 9,038,036
Granted Patent B2
US 9,038,036 · App. 13/458,408 · Granted May 19, 2015

Generation of source code and executable code from formal descriptions

Inventors: Wolfgang Gellerich (Boeblingen, DE); Andreas Krebbel (Stuttgart, DE)
Assignee: International Business Machines Corporation
G06F8/37
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,038,036
App. No.
13/458,408
Granted
May 19, 2015
Kind
B2
Abstract

A method of generating an executable that operates as a compiler includes: receiving a unified input description containing syntax rules for both regular and context-free expressions and interspersed code; generating a common internal representation from the unified input description; checking regular expressions in the common internal representation; checking context-free expressions in the common representation; checking the interspersed code; and outputting the executable.

Claims (12)

1. A method comprising:

receiving at an input compiler scanning and parsing module of a computing device a unified input description containing syntax rules for both regular and context-free expressions and interspersed code;

generating with the computing device a common internal representation from the unified input description, wherein the common internal representation stores information on every attribute used in a grammar rule;

checking regular expressions in the common internal representation with a regular expression checker of the computing device;

checking context-free expressions in the common representation with context-free expression checker of the computing device;

checking the interspersed code, checking including checking the interspersed code and usage of the attributes for correctness or violations and violations are reported as error messages; and

outputting from a code generator of the computing device an executable, formed from the unified input description, the executable operating as a compiler.

2. The method of claim 1 , further comprising:

optimizing the common internal representation in the event that no error messages are present.

3. The method of claim 1 , further comprising:

generating a regular expression error message in the event that a regular expression error is detected; and

generating a context-free error message in the event that a context-free expression error is detected.

Continuity (2)
Continuation 12331620 · Dec 10, 2008
Related Publication 20120216178A1 · Aug 23, 2012