A minimal incremental interface has the following qualities:
- Treats a
WhileyFile instance as a sequence of bytes
- Supports modification through
Deltas.
- Propagates
Deltas through the internal structures.
- Can recompute all internal structures from scratch if necessary.
That means we need to incrementalise the internal structures. In essence, we have a few:
- (Lexer). This maps
u8 sequences to Token sequences.
- (Parser). This maps
Token sequences to SyntacticHeap instances.
- (Type Checker). This infers supplementary information from the
SyntacticHeap.
The starting point is perhaps to test out a simple mapping from byte sequences to tokens using delta_inc.
A minimal incremental interface has the following qualities:
WhileyFileinstance as a sequence of bytesDeltas.Deltas through the internal structures.That means we need to incrementalise the internal structures. In essence, we have a few:
u8sequences toTokensequences.Tokensequences toSyntacticHeapinstances.SyntacticHeap.The starting point is perhaps to test out a simple mapping from byte sequences to tokens using
delta_inc.