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 TypeMethodDescriptionvoid
colorSyntax
(InputStream input, List<ColorRange> ranges) color the syntax of rules, queries and facts in input streamvoid
colorSyntax
(Reader input, List<ColorRange> ranges) color the syntax of rules, queries and facts in input readervoid
colorSyntax
(StringReader input, List<ColorRange> ranges) color the syntax of rules, queries and facts in string readervoid
colorSyntax
(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:
IOException
SimpleParseException
-
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:
IOException
SimpleParseException
-
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:
IOException
SimpleParseException
-
colorSyntax
check the syntax of rules, queries and facts in input string- Parameters:
input
- , input stringranges
- , the output is stores here- Throws:
SimpleParseException
-