- All Implemented Interfaces:
- public class QuasiFeeder
- extends Object
- implements LineFeeder
Untamed: Like LineFeeder, but collapses @@ to @ and $$ to $. For use as input to
the E lexer/parser used as a quasi-parser.
- Mark S. Miller
Enabled: Like LineFeeder.optNextLine, but collapses every doubled @ or $ to a
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
private final LineFeeder myWrapped
public QuasiFeeder(LineFeeder wrapped)
public Twine optNextLine(boolean atTop,
- Enabled: Like LineFeeder.optNextLine, but collapses every doubled @ or $ to a
- Specified by:
optNextLine in interface
atTop - Is this the beginning of a top-level unit (typically, a
quoted - Will this next line be taken as literal text? If so,
then it should not be trimmed or indented. 'quoted' is
true between double quotes, or between quasi-quotes when
not inside a $ or @ hole.
indent - The suggested indentation level for the next line,
unless the next line begins with closer.
closer - The character that would close the most recent unclosed
closeIndent - The suggested indentation level for the next line
if it does begin (after trimming) with closer.