io.joern.rubysrc2cpg.parser

Members list

Type members

Classlikes

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
class AntlrParser(filename: String)

A consumable wrapper for the RubyParser class used to parse the given file and be disposed thereafter.

A consumable wrapper for the RubyParser class used to parse the given file and be disposed thereafter.

Value parameters

filename

the file path to the file to be parsed.

Attributes

Supertypes
class Object
trait Matchable
class Any
object AstPrinter

General purpose ANTLR parse tree printer.

General purpose ANTLR parse tree printer.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
AstPrinter.type

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
Self type

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
Self type
class ResourceManagedParser(clearLimit: Double) extends AutoCloseable

A re-usable parser object that clears the ANTLR DFA-cache if it determines that the memory usage is becoming large. Once this parser is closed, the whole cache is evicted.

A re-usable parser object that clears the ANTLR DFA-cache if it determines that the memory usage is becoming large. Once this parser is closed, the whole cache is evicted.

This is done in this way since clearing the cache after each file is inefficient, since the cache must be re-built every time, but the cache can become unnecessarily large at times. The cache also does not evict itself at the end of parsing.

Value parameters

clearLimit

the percentage of used heap to clear the DFA-cache on.

Attributes

Supertypes
trait AutoCloseable
class Object
trait Matchable
class Any

Aggregates auxiliary features to RubyLexer in a single place.

Aggregates auxiliary features to RubyLexer in a single place.

Attributes

Supertypes
class Lexer
trait TokenSource
class Recognizer[Integer, LexerATNSimulator]
class Object
trait Matchable
class Any
Show all

Simplifies the token stream obtained from RubyLexer.

Simplifies the token stream obtained from RubyLexer.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
class RubyNodeCreator extends RubyParserBaseVisitor[RubyNode]

Converts an ANTLR Ruby Parse Tree into the intermediate Ruby AST.

Converts an ANTLR Ruby Parse Tree into the intermediate Ruby AST.

Attributes

Supertypes
class RubyParserBaseVisitor[RubyNode]
trait RubyParserVisitor[RubyNode]
class AbstractParseTreeVisitor[RubyNode]
trait ParseTreeVisitor[RubyNode]
class Object
trait Matchable
class Any
Show all