Immutable parsing
First Claim
Patent Images
1. An immutable parser system, comprising:
- a processor coupled to a memory, the processor configured to execute the following computer-executable components stored in the memory;
a first component configured to perform lexical analysis of an input sequence to produce a sequence of tokens; and
a second component configured to perform syntactic analysis on the tokens to determine a grammatical structure, at least one of the first and second components employ an immutable parser configuration including an immutable stack and an immutable input buffer.
2 Assignments
0 Petitions
Accused Products
Abstract
Immutable structures are employed to effect immutable parsing. In particular, an immutable parsing configuration, comprising a stack and lookahead buffer, is utilized by a parser to perform lexical and syntactical analysis of an input stream and optionally output an immutable parse tree or the like. Performance with respect to the immutable structures can be optimized utilizing sharing and lazy computation. In turn, immutability benefits are afforded with respect to parsing including safe sharing amongst services and/or across multiple threads as well as history preservation, among other things.
41 Citations
19 Claims
-
1. An immutable parser system, comprising:
-
a processor coupled to a memory, the processor configured to execute the following computer-executable components stored in the memory; a first component configured to perform lexical analysis of an input sequence to produce a sequence of tokens; and a second component configured to perform syntactic analysis on the tokens to determine a grammatical structure, at least one of the first and second components employ an immutable parser configuration including an immutable stack and an immutable input buffer. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A parsing method, comprising:
-
employing at least one processor configured to execute computer-executable instructions stored in memory to perform the following acts; parsing an input stream with one or more immutable parser configurations including an immutable stack and immutable lookahead buffer; and producing an immutable parse tree as a function of the parsing. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17)
-
-
18. A computer-readable storage medium having stored thereon instructions that when executed perform a method, the method comprising:
-
generating a second immutable token stream that shares tokens with a first immutable token stream by reference to at least a portion of the first immutable token stream after detecting a change in an input; and constructing a second immutable parse tree that shares nodes with a first immutable parse tree by reference to at least a portion of the first immutable parse tree as a function of the first and second immutable token streams generating the second immutable token stream with an immutable parser configuration including an immutable stack and immutable lookahead buffer. - View Dependent Claims (19)
-
Specification