Package cs1302.tracer
Class SourceDelimiters
java.lang.Object
cs1302.tracer.SourceDelimiters
Linear recognition of comment delimiters in multi-file source streams.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA delimiter with offsets excluding its line terminator. -
Method Summary
Modifier and TypeMethodDescriptionstatic List<SourceDelimiters.Delimiter> scan(CharSequence source) Finds file delimiters with work bounded by the input length.
-
Method Details
-
scan
Finds file delimiters with work bounded by the input length.- Parameters:
source- Source stream.- Returns:
- Delimiters in source order.
-