Invention Grant
- Patent Title: Contraction aware parsing system for domain-specific languages
-
Application No.: US15409788Application Date: 2017-01-19
-
Publication No.: US10552534B2Publication Date: 2020-02-04
- Inventor: Jean-Michel G. B. Bernelas , Ulrich M. Junker , Stephane Mery
- Applicant: International Business Machines Corporation
- Applicant Address: US NY Armonk
- Assignee: International Business Machines Corporation
- Current Assignee: International Business Machines Corporation
- Current Assignee Address: US NY Armonk
- Agent Daniel R. Simek
- Main IPC: G06F9/45
- IPC: G06F9/45 ; G06F17/27 ; G06F8/30 ; G06F8/34 ; G06F8/41 ; G06F17/24

Abstract:
Aspects of the present invention disclose a method, computer program product, and system for parsing a domain-specific language (DSL) statement. The method includes one or more processors accessing a DSL statement that includes contracted phrases. The method further includes one or more processors identifying one or more contracted phrases in the DSL statement utilizing an annotated domain vocabulary for a DSL associated with the DSL statement and grammar rules for the DSL. The method further includes one or more processors determining expanded phrases corresponding to the identified one or more contracted phrases based on the annotated domain vocabulary and the grammar rules. The method further includes one or more processors creating an expanded abstract syntax tree (AST) that is representative of the DSL statement with the determined expanded phrases replacing the identified one or more contracted phrases.
Public/Granted literature
- US20170132201A1 CONTRACTION AWARE PARSING SYSTEM FOR DOMAIN-SPECIFIC LANGUAGES Public/Granted day:2017-05-11
Information query