Configuration-preserving preprocessor and configuration-preserving parser
AssigneeNew York University
InventorsPaul Gazzillo, Robert Grimm
Life of this patent
Estimating the term…
Loading patent…
AssigneeNew York University
InventorsPaul Gazzillo, Robert Grimm
Estimating the term…
Methods, systems, and apparatuses, including computer programs encoded on computer readable media, for generating a plurality of tokens from one or more source files that include source code in a first programming language. The source code includes one or more static conditionals that include a conditional expression and branch code that is operative when the conditional expression is true. Various configurations are possible based upon the conditionals. A first static conditional includes one or more nested static conditionals within the branch code associated with the first static conditional. Each of the one or more nested static conditionals is hoisted to a beginning of the branch code associated with the first static conditional. Each innermost branch code does not contain a static conditional and each possible configuration is preserved.
A system for configuration preserving parsing for a grammar of a language using a parser comprising one or more subparsers and one or more merged parsers, the system having a processor and memory comprising:
A method for configuration preserving parsing for a grammar of a language using a parser comprising one or more subparsers and one or more merged parsers, the method comprising:
The method of 5, further comprising:
A non-transitory computer-readable medium having instructions stored thereon, the instructions for configuration preserving parsing for a grammar of a language using a parser comprising one or more subparsers and one or more merged parsers, the instructions comprising:
Dependencies are inferred from the claim text.