All Classes and Interfaces
Class
Description
The AstVisitor allows to visit some desired AstNode.
the parser is in charge to construct an abstract syntax tree (AST) which is a tree representation of the abstract syntactic structure of
source code.
Specific Ast node types that can tell whether they should be skipped from being attached to the AST or not.
Each AST Node has a type which can be for instance the Rule of a Grammar, a language keyword or a language special token like a WORD.
Deprecated.
in 1.22
Allows to skip characters, which match given regular expression.
Ignores all BOM characters.
This class is a special CodeReaderFilter that uses Channels to filter the character stream before it is passed to the main channels
declared for the CodeReader.
Base class to visit an AST (Abstract Syntactic Tree) generated by a parser.
Extension point to execute custom rules in the SonarSource COBOL analyzer.
Constants linked to the COBOL language.
The CodeBuffer class provides all the basic features required to manipulate a source code character stream.
The CodeReader class provides some advanced features to read a source code.
Configuration parameters used by a CodeReader to handle some specificities.
This class can be extended to provide filtering capabilities for the CodeReader class.
Creates comment trivia from characters, which match given regular expression.
Utility class to manipulate comment tokens
Rule, which can be compiled by
MutableGrammarCompiler.AstSelect which contains no elements.Use
LexerfulGrammarBuilder to create instances of this class.Indicates problem with definition of grammar.
Deprecated.
in 1.19, use
LexerfulGrammarBuilder instead.Deprecated.
in 1.19, use
LexerlessGrammarBuilder instead.This interface contains methods used to describe rule of grammar.
A marker interface for key of grammar rule.
Input text to be parsed.
Instruction dedicated for predicates.
This class allows to ensure forward compatibility with SSLR 1.9.
This class is not intended to be instantiated or subclassed by clients.
A builder for creating Parsing Expression Grammars for lexerful parsing.
Use
LexerlessGrammarBuilder to create instances of this class.A builder for creating Parsing Expression Grammars for lexerless parsing.
AstSelect which contains more than one element.Duplicates corresponding class from SSLR to improve:
Performance in case of parsing list of tokens multiple times, but with different starting positions.
This interface is not intended to be implemented by clients.
Deprecated.
since 4.2
Loosely modeled after
Optional.Describes an error, which is occurred during parse.
Formats
ParseError to readable form.Node of a parse tree.
Duplicates corresponding class from SSLR to provide Cobol-specific changes:
added
Parser.getLexerOutput()
Adapts
ParseRunner to be used as Parser.Performs parsing of a given grammar rule on a given input text.
Parsing expression.
Parsing result.
Deprecated.
in 1.20, use your own preprocessor API instead.
Deprecated.
in 1.20, use your own preprocessor API instead.
A Preprocessor can be used to modify the content of the LexerOuput before launching the parser.
Deprecated.
in 1.20, use your own preprocessor API instead.
This class is not intended to be instantiated or subclassed by clients.
The RegexChannel can be used to be called each time the next characters in the character stream match a regular expression
Creates token of specified type from characters, which match given regular expression.
This interface is not intended to be implemented by clients.
This class is not intended to be instantiated or subclassed by clients.
Extension point to define custom COBOL rules inside the same SonarQube rule repository as the standard rules.
AstSelect which contains exactly one element.FIXME actually not an API of Cobol Plugin
Tokens are string of character like an identifier, a literal, an integer, ... which are produced by the lexer to feed the parser.
Creates token with type
GenericTokenType.UNKNOWN_CHAR for any character.