public class SchemeIndentationCorrector
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SchemeIndentationCorrector.Level |
static class |
SchemeIndentationCorrector.Tokenizer |
Constructor and Description |
---|
SchemeIndentationCorrector() |
Modifier and Type | Method and Description |
---|---|
static int |
calculateIndentLength(java.util.Collection<java.lang.String> lispWords,
java.util.ArrayDeque<SchemeIndentationCorrector.Level> stack) |
static java.lang.String |
calculateIndentSize(java.lang.String text,
int pos,
java.util.Collection<java.lang.String> lispWords) |
static java.lang.String |
calculateIndentSizeO(java.lang.String text,
int pos,
java.util.Collection<java.lang.String> lispWords) |
static java.lang.String |
correctIndentation(java.util.Collection<java.lang.String> lispWords,
java.lang.String text) |
static java.util.ArrayDeque<SchemeIndentationCorrector.Level> |
createStack() |
static void |
main(java.lang.String[] args) |
static void |
semiExecute(java.util.ArrayDeque<SchemeIndentationCorrector.Level> stack,
kawapad.SchemeIndentationCorrector.Tokenized tokenized) |
static kawapad.SchemeIndentationCorrector.Tokenized |
tokenize(java.lang.String text,
int lineNo) |
public static kawapad.SchemeIndentationCorrector.Tokenized tokenize(java.lang.String text, int lineNo)
public static java.lang.String correctIndentation(java.util.Collection<java.lang.String> lispWords, java.lang.String text)
public static java.util.ArrayDeque<SchemeIndentationCorrector.Level> createStack()
public static int calculateIndentLength(java.util.Collection<java.lang.String> lispWords, java.util.ArrayDeque<SchemeIndentationCorrector.Level> stack)
public static void semiExecute(java.util.ArrayDeque<SchemeIndentationCorrector.Level> stack, kawapad.SchemeIndentationCorrector.Tokenized tokenized)
public static java.lang.String calculateIndentSizeO(java.lang.String text, int pos, java.util.Collection<java.lang.String> lispWords)
public static java.lang.String calculateIndentSize(java.lang.String text, int pos, java.util.Collection<java.lang.String> lispWords)
public static void main(java.lang.String[] args)