IMMUTABLE PARSING
First Claim
Patent Images
1. An immutable parser system, comprising:
- a first component that performs lexical analysis of an input sequence to produce a sequence of tokens; and
a second component that performs syntactic analysis on the tokens to determine a grammatical structure, at least one of the first and second components employ immutable parsing configurations, each 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.
47 Citations
20 Claims
-
1. An immutable parser system, comprising:
-
a first component that performs lexical analysis of an input sequence to produce a sequence of tokens; and a second component that performs syntactic analysis on the tokens to determine a grammatical structure, at least one of the first and second components employ immutable parsing configurations, each 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:
-
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 medium having stored thereon a parser configuration, comprising:
-
an immutable look ahead buffer that includes a sequence of characters for processing; and an immutable stack that provides a historical account of processed characters. - View Dependent Claims (19, 20)
-
Specification