Package com.semedy.reasoner.api.parser
Class SyntaxColorer
java.lang.Object
com.semedy.reasoner.api.parser.SyntaxColorer
separate syntax checker for facts and rules
- Author:
- angele
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcolorSyntax(InputStream input, List<ColorRange> ranges) color the syntax of rules, queries and facts in input streamvoidcolorSyntax(Reader input, List<ColorRange> ranges) color the syntax of rules, queries and facts in input readervoidcolorSyntax(StringReader input, List<ColorRange> ranges) color the syntax of rules, queries and facts in string readervoidcolorSyntax(String input, List<ColorRange> ranges) check the syntax of rules, queries and facts in input string
-
Constructor Details
-
SyntaxColorer
public SyntaxColorer()
-
-
Method Details
-
colorSyntax
public void colorSyntax(InputStream input, List<ColorRange> ranges) throws IOException, SimpleParseException color the syntax of rules, queries and facts in input stream- Parameters:
ranges- , the output is stores hereinput- , input stream- Throws:
IOExceptionSimpleParseException
-
colorSyntax
public void colorSyntax(StringReader input, List<ColorRange> ranges) throws IOException, SimpleParseException color the syntax of rules, queries and facts in string reader- Parameters:
input- , string readerranges- , the output is stores here- Throws:
IOExceptionSimpleParseException
-
colorSyntax
public void colorSyntax(Reader input, List<ColorRange> ranges) throws IOException, SimpleParseException color the syntax of rules, queries and facts in input reader- Parameters:
input- , input readerranges- , the output is stores here- Throws:
IOExceptionSimpleParseException
-
colorSyntax
check the syntax of rules, queries and facts in input string- Parameters:
input- , input stringranges- , the output is stores here- Throws:
SimpleParseException
-