smiles

package
v0.0.0-...-4c43aeb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Example
package main

import (
	"bramp.net/antlr4/smiles"

	"fmt"
	"github.com/antlr/antlr4/runtime/Go/antlr"
)

type exampleListener struct {
	*smiles.BasesmilesListener
}

func (l *exampleListener) EnterEveryRule(ctx antlr.ParserRuleContext) {
	fmt.Println(ctx.GetText())
}
func main() {
	// Setup the input
	is := antlr.NewInputStream("...some text to parse...")

	// Create the Lexer
	lexer := smiles.NewsmilesLexer(is)
	stream := antlr.NewCommonTokenStream(lexer, antlr.TokenDefaultChannel)

	// Create the Parser
	p := smiles.NewsmilesParser(stream)
	p.BuildParseTrees = true
	p.AddErrorListener(antlr.NewDiagnosticErrorListener(true))

	// Finally walk the tree
	tree := p.Smiles()
	antlr.ParseTreeWalkerDefault.Walk(&exampleListener{}, tree)
}
Output:

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewsmilesLexer

func NewsmilesLexer(input antlr.CharStream) *smilesLexer

func NewsmilesParser

func NewsmilesParser(input antlr.TokenStream) *smilesParser

Types

type Aliphatic_organicContext

type Aliphatic_organicContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewAliphatic_organicContext

func NewAliphatic_organicContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Aliphatic_organicContext

func NewEmptyAliphatic_organicContext

func NewEmptyAliphatic_organicContext() *Aliphatic_organicContext

func (*Aliphatic_organicContext) EnterRule

func (s *Aliphatic_organicContext) EnterRule(listener antlr.ParseTreeListener)

func (*Aliphatic_organicContext) ExitRule

func (s *Aliphatic_organicContext) ExitRule(listener antlr.ParseTreeListener)

func (*Aliphatic_organicContext) GetParser

func (s *Aliphatic_organicContext) GetParser() antlr.Parser

func (*Aliphatic_organicContext) GetRuleContext

func (s *Aliphatic_organicContext) GetRuleContext() antlr.RuleContext

func (*Aliphatic_organicContext) IsAliphatic_organicContext

func (*Aliphatic_organicContext) IsAliphatic_organicContext()

func (*Aliphatic_organicContext) ToStringTree

func (s *Aliphatic_organicContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type Aromatic_organicContext

type Aromatic_organicContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewAromatic_organicContext

func NewAromatic_organicContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Aromatic_organicContext

func NewEmptyAromatic_organicContext

func NewEmptyAromatic_organicContext() *Aromatic_organicContext

func (*Aromatic_organicContext) EnterRule

func (s *Aromatic_organicContext) EnterRule(listener antlr.ParseTreeListener)

func (*Aromatic_organicContext) ExitRule

func (s *Aromatic_organicContext) ExitRule(listener antlr.ParseTreeListener)

func (*Aromatic_organicContext) GetParser

func (s *Aromatic_organicContext) GetParser() antlr.Parser

func (*Aromatic_organicContext) GetRuleContext

func (s *Aromatic_organicContext) GetRuleContext() antlr.RuleContext

func (*Aromatic_organicContext) IsAromatic_organicContext

func (*Aromatic_organicContext) IsAromatic_organicContext()

func (*Aromatic_organicContext) ToStringTree

func (s *Aromatic_organicContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type Aromatic_symbolsContext

type Aromatic_symbolsContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewAromatic_symbolsContext

func NewAromatic_symbolsContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Aromatic_symbolsContext

func NewEmptyAromatic_symbolsContext

func NewEmptyAromatic_symbolsContext() *Aromatic_symbolsContext

func (*Aromatic_symbolsContext) EnterRule

func (s *Aromatic_symbolsContext) EnterRule(listener antlr.ParseTreeListener)

func (*Aromatic_symbolsContext) ExitRule

func (s *Aromatic_symbolsContext) ExitRule(listener antlr.ParseTreeListener)

func (*Aromatic_symbolsContext) GetParser

func (s *Aromatic_symbolsContext) GetParser() antlr.Parser

func (*Aromatic_symbolsContext) GetRuleContext

func (s *Aromatic_symbolsContext) GetRuleContext() antlr.RuleContext

func (*Aromatic_symbolsContext) IsAromatic_symbolsContext

func (*Aromatic_symbolsContext) IsAromatic_symbolsContext()

func (*Aromatic_symbolsContext) ToStringTree

func (s *Aromatic_symbolsContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type AtomContext

type AtomContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewAtomContext

func NewAtomContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *AtomContext

func NewEmptyAtomContext

func NewEmptyAtomContext() *AtomContext

func (*AtomContext) Aliphatic_organic

func (s *AtomContext) Aliphatic_organic() IAliphatic_organicContext

func (*AtomContext) Aromatic_organic

func (s *AtomContext) Aromatic_organic() IAromatic_organicContext

func (*AtomContext) Bracket_atom

func (s *AtomContext) Bracket_atom() IBracket_atomContext

func (*AtomContext) EnterRule

func (s *AtomContext) EnterRule(listener antlr.ParseTreeListener)

func (*AtomContext) ExitRule

func (s *AtomContext) ExitRule(listener antlr.ParseTreeListener)

func (*AtomContext) GetParser

func (s *AtomContext) GetParser() antlr.Parser

func (*AtomContext) GetRuleContext

func (s *AtomContext) GetRuleContext() antlr.RuleContext

func (*AtomContext) IsAtomContext

func (*AtomContext) IsAtomContext()

func (*AtomContext) ToStringTree

func (s *AtomContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type BasesmilesListener

type BasesmilesListener struct{}

BasesmilesListener is a complete listener for a parse tree produced by smilesParser.

func (*BasesmilesListener) EnterAliphatic_organic

func (s *BasesmilesListener) EnterAliphatic_organic(ctx *Aliphatic_organicContext)

EnterAliphatic_organic is called when production aliphatic_organic is entered.

func (*BasesmilesListener) EnterAromatic_organic

func (s *BasesmilesListener) EnterAromatic_organic(ctx *Aromatic_organicContext)

EnterAromatic_organic is called when production aromatic_organic is entered.

func (*BasesmilesListener) EnterAromatic_symbols

func (s *BasesmilesListener) EnterAromatic_symbols(ctx *Aromatic_symbolsContext)

EnterAromatic_symbols is called when production aromatic_symbols is entered.

func (*BasesmilesListener) EnterAtom

func (s *BasesmilesListener) EnterAtom(ctx *AtomContext)

EnterAtom is called when production atom is entered.

func (*BasesmilesListener) EnterBond

func (s *BasesmilesListener) EnterBond(ctx *BondContext)

EnterBond is called when production bond is entered.

func (*BasesmilesListener) EnterBracket_atom

func (s *BasesmilesListener) EnterBracket_atom(ctx *Bracket_atomContext)

EnterBracket_atom is called when production bracket_atom is entered.

func (*BasesmilesListener) EnterBranch

func (s *BasesmilesListener) EnterBranch(ctx *BranchContext)

EnterBranch is called when production branch is entered.

func (*BasesmilesListener) EnterBranched_atom

func (s *BasesmilesListener) EnterBranched_atom(ctx *Branched_atomContext)

EnterBranched_atom is called when production branched_atom is entered.

func (*BasesmilesListener) EnterChain

func (s *BasesmilesListener) EnterChain(ctx *ChainContext)

EnterChain is called when production chain is entered.

func (*BasesmilesListener) EnterCharge

func (s *BasesmilesListener) EnterCharge(ctx *ChargeContext)

EnterCharge is called when production charge is entered.

func (*BasesmilesListener) EnterChiral

func (s *BasesmilesListener) EnterChiral(ctx *ChiralContext)

EnterChiral is called when production chiral is entered.

func (*BasesmilesListener) EnterClass_

func (s *BasesmilesListener) EnterClass_(ctx *Class_Context)

EnterClass_ is called when production class_ is entered.

func (*BasesmilesListener) EnterElement_symbols

func (s *BasesmilesListener) EnterElement_symbols(ctx *Element_symbolsContext)

EnterElement_symbols is called when production element_symbols is entered.

func (*BasesmilesListener) EnterEveryRule

func (s *BasesmilesListener) EnterEveryRule(ctx antlr.ParserRuleContext)

EnterEveryRule is called when any rule is entered.

func (*BasesmilesListener) EnterHcount

func (s *BasesmilesListener) EnterHcount(ctx *HcountContext)

EnterHcount is called when production hcount is entered.

func (*BasesmilesListener) EnterIsotope

func (s *BasesmilesListener) EnterIsotope(ctx *IsotopeContext)

EnterIsotope is called when production isotope is entered.

func (*BasesmilesListener) EnterRingbond

func (s *BasesmilesListener) EnterRingbond(ctx *RingbondContext)

EnterRingbond is called when production ringbond is entered.

func (*BasesmilesListener) EnterSmiles

func (s *BasesmilesListener) EnterSmiles(ctx *SmilesContext)

EnterSmiles is called when production smiles is entered.

func (*BasesmilesListener) EnterSymbol

func (s *BasesmilesListener) EnterSymbol(ctx *SymbolContext)

EnterSymbol is called when production symbol is entered.

func (*BasesmilesListener) EnterTerminator

func (s *BasesmilesListener) EnterTerminator(ctx *TerminatorContext)

EnterTerminator is called when production terminator is entered.

func (*BasesmilesListener) ExitAliphatic_organic

func (s *BasesmilesListener) ExitAliphatic_organic(ctx *Aliphatic_organicContext)

ExitAliphatic_organic is called when production aliphatic_organic is exited.

func (*BasesmilesListener) ExitAromatic_organic

func (s *BasesmilesListener) ExitAromatic_organic(ctx *Aromatic_organicContext)

ExitAromatic_organic is called when production aromatic_organic is exited.

func (*BasesmilesListener) ExitAromatic_symbols

func (s *BasesmilesListener) ExitAromatic_symbols(ctx *Aromatic_symbolsContext)

ExitAromatic_symbols is called when production aromatic_symbols is exited.

func (*BasesmilesListener) ExitAtom

func (s *BasesmilesListener) ExitAtom(ctx *AtomContext)

ExitAtom is called when production atom is exited.

func (*BasesmilesListener) ExitBond

func (s *BasesmilesListener) ExitBond(ctx *BondContext)

ExitBond is called when production bond is exited.

func (*BasesmilesListener) ExitBracket_atom

func (s *BasesmilesListener) ExitBracket_atom(ctx *Bracket_atomContext)

ExitBracket_atom is called when production bracket_atom is exited.

func (*BasesmilesListener) ExitBranch

func (s *BasesmilesListener) ExitBranch(ctx *BranchContext)

ExitBranch is called when production branch is exited.

func (*BasesmilesListener) ExitBranched_atom

func (s *BasesmilesListener) ExitBranched_atom(ctx *Branched_atomContext)

ExitBranched_atom is called when production branched_atom is exited.

func (*BasesmilesListener) ExitChain

func (s *BasesmilesListener) ExitChain(ctx *ChainContext)

ExitChain is called when production chain is exited.

func (*BasesmilesListener) ExitCharge

func (s *BasesmilesListener) ExitCharge(ctx *ChargeContext)

ExitCharge is called when production charge is exited.

func (*BasesmilesListener) ExitChiral

func (s *BasesmilesListener) ExitChiral(ctx *ChiralContext)

ExitChiral is called when production chiral is exited.

func (*BasesmilesListener) ExitClass_

func (s *BasesmilesListener) ExitClass_(ctx *Class_Context)

ExitClass_ is called when production class_ is exited.

func (*BasesmilesListener) ExitElement_symbols

func (s *BasesmilesListener) ExitElement_symbols(ctx *Element_symbolsContext)

ExitElement_symbols is called when production element_symbols is exited.

func (*BasesmilesListener) ExitEveryRule

func (s *BasesmilesListener) ExitEveryRule(ctx antlr.ParserRuleContext)

ExitEveryRule is called when any rule is exited.

func (*BasesmilesListener) ExitHcount

func (s *BasesmilesListener) ExitHcount(ctx *HcountContext)

ExitHcount is called when production hcount is exited.

func (*BasesmilesListener) ExitIsotope

func (s *BasesmilesListener) ExitIsotope(ctx *IsotopeContext)

ExitIsotope is called when production isotope is exited.

func (*BasesmilesListener) ExitRingbond

func (s *BasesmilesListener) ExitRingbond(ctx *RingbondContext)

ExitRingbond is called when production ringbond is exited.

func (*BasesmilesListener) ExitSmiles

func (s *BasesmilesListener) ExitSmiles(ctx *SmilesContext)

ExitSmiles is called when production smiles is exited.

func (*BasesmilesListener) ExitSymbol

func (s *BasesmilesListener) ExitSymbol(ctx *SymbolContext)

ExitSymbol is called when production symbol is exited.

func (*BasesmilesListener) ExitTerminator

func (s *BasesmilesListener) ExitTerminator(ctx *TerminatorContext)

ExitTerminator is called when production terminator is exited.

func (*BasesmilesListener) VisitErrorNode

func (s *BasesmilesListener) VisitErrorNode(node antlr.ErrorNode)

VisitErrorNode is called when an error node is visited.

func (*BasesmilesListener) VisitTerminal

func (s *BasesmilesListener) VisitTerminal(node antlr.TerminalNode)

VisitTerminal is called when a terminal node is visited.

type BondContext

type BondContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewBondContext

func NewBondContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *BondContext

func NewEmptyBondContext

func NewEmptyBondContext() *BondContext

func (*BondContext) EnterRule

func (s *BondContext) EnterRule(listener antlr.ParseTreeListener)

func (*BondContext) ExitRule

func (s *BondContext) ExitRule(listener antlr.ParseTreeListener)

func (*BondContext) GetParser

func (s *BondContext) GetParser() antlr.Parser

func (*BondContext) GetRuleContext

func (s *BondContext) GetRuleContext() antlr.RuleContext

func (*BondContext) IsBondContext

func (*BondContext) IsBondContext()

func (*BondContext) ToStringTree

func (s *BondContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type Bracket_atomContext

type Bracket_atomContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewBracket_atomContext

func NewBracket_atomContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Bracket_atomContext

func NewEmptyBracket_atomContext

func NewEmptyBracket_atomContext() *Bracket_atomContext

func (*Bracket_atomContext) Charge

func (s *Bracket_atomContext) Charge() IChargeContext

func (*Bracket_atomContext) Chiral

func (s *Bracket_atomContext) Chiral() IChiralContext

func (*Bracket_atomContext) Class_

func (s *Bracket_atomContext) Class_() IClass_Context

func (*Bracket_atomContext) EnterRule

func (s *Bracket_atomContext) EnterRule(listener antlr.ParseTreeListener)

func (*Bracket_atomContext) ExitRule

func (s *Bracket_atomContext) ExitRule(listener antlr.ParseTreeListener)

func (*Bracket_atomContext) GetParser

func (s *Bracket_atomContext) GetParser() antlr.Parser

func (*Bracket_atomContext) GetRuleContext

func (s *Bracket_atomContext) GetRuleContext() antlr.RuleContext

func (*Bracket_atomContext) Hcount

func (s *Bracket_atomContext) Hcount() IHcountContext

func (*Bracket_atomContext) IsBracket_atomContext

func (*Bracket_atomContext) IsBracket_atomContext()

func (*Bracket_atomContext) Isotope

func (s *Bracket_atomContext) Isotope() IIsotopeContext

func (*Bracket_atomContext) Symbol

func (s *Bracket_atomContext) Symbol() ISymbolContext

func (*Bracket_atomContext) ToStringTree

func (s *Bracket_atomContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type BranchContext

type BranchContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewBranchContext

func NewBranchContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *BranchContext

func NewEmptyBranchContext

func NewEmptyBranchContext() *BranchContext

func (*BranchContext) Bond

func (s *BranchContext) Bond() IBondContext

func (*BranchContext) Chain

func (s *BranchContext) Chain() IChainContext

func (*BranchContext) DOT

func (s *BranchContext) DOT() antlr.TerminalNode

func (*BranchContext) EnterRule

func (s *BranchContext) EnterRule(listener antlr.ParseTreeListener)

func (*BranchContext) ExitRule

func (s *BranchContext) ExitRule(listener antlr.ParseTreeListener)

func (*BranchContext) GetParser

func (s *BranchContext) GetParser() antlr.Parser

func (*BranchContext) GetRuleContext

func (s *BranchContext) GetRuleContext() antlr.RuleContext

func (*BranchContext) IsBranchContext

func (*BranchContext) IsBranchContext()

func (*BranchContext) ToStringTree

func (s *BranchContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type Branched_atomContext

type Branched_atomContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewBranched_atomContext

func NewBranched_atomContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Branched_atomContext

func NewEmptyBranched_atomContext

func NewEmptyBranched_atomContext() *Branched_atomContext

func (*Branched_atomContext) AllBranch

func (s *Branched_atomContext) AllBranch() []IBranchContext

func (*Branched_atomContext) AllRingbond

func (s *Branched_atomContext) AllRingbond() []IRingbondContext

func (*Branched_atomContext) Atom

func (*Branched_atomContext) Branch

func (*Branched_atomContext) EnterRule

func (s *Branched_atomContext) EnterRule(listener antlr.ParseTreeListener)

func (*Branched_atomContext) ExitRule

func (s *Branched_atomContext) ExitRule(listener antlr.ParseTreeListener)

func (*Branched_atomContext) GetParser

func (s *Branched_atomContext) GetParser() antlr.Parser

func (*Branched_atomContext) GetRuleContext

func (s *Branched_atomContext) GetRuleContext() antlr.RuleContext

func (*Branched_atomContext) IsBranched_atomContext

func (*Branched_atomContext) IsBranched_atomContext()

func (*Branched_atomContext) Ringbond

func (s *Branched_atomContext) Ringbond(i int) IRingbondContext

func (*Branched_atomContext) ToStringTree

func (s *Branched_atomContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type ChainContext

type ChainContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewChainContext

func NewChainContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ChainContext

func NewEmptyChainContext

func NewEmptyChainContext() *ChainContext

func (*ChainContext) Bond

func (s *ChainContext) Bond() IBondContext

func (*ChainContext) Branched_atom

func (s *ChainContext) Branched_atom() IBranched_atomContext

func (*ChainContext) Chain

func (s *ChainContext) Chain() IChainContext

func (*ChainContext) DOT

func (s *ChainContext) DOT() antlr.TerminalNode

func (*ChainContext) EnterRule

func (s *ChainContext) EnterRule(listener antlr.ParseTreeListener)

func (*ChainContext) ExitRule

func (s *ChainContext) ExitRule(listener antlr.ParseTreeListener)

func (*ChainContext) GetParser

func (s *ChainContext) GetParser() antlr.Parser

func (*ChainContext) GetRuleContext

func (s *ChainContext) GetRuleContext() antlr.RuleContext

func (*ChainContext) IsChainContext

func (*ChainContext) IsChainContext()

func (*ChainContext) ToStringTree

func (s *ChainContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type ChargeContext

type ChargeContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewChargeContext

func NewChargeContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ChargeContext

func NewEmptyChargeContext

func NewEmptyChargeContext() *ChargeContext

func (*ChargeContext) DIGIT

func (s *ChargeContext) DIGIT() antlr.TerminalNode

func (*ChargeContext) EnterRule

func (s *ChargeContext) EnterRule(listener antlr.ParseTreeListener)

func (*ChargeContext) ExitRule

func (s *ChargeContext) ExitRule(listener antlr.ParseTreeListener)

func (*ChargeContext) GetParser

func (s *ChargeContext) GetParser() antlr.Parser

func (*ChargeContext) GetRuleContext

func (s *ChargeContext) GetRuleContext() antlr.RuleContext

func (*ChargeContext) IsChargeContext

func (*ChargeContext) IsChargeContext()

func (*ChargeContext) ToStringTree

func (s *ChargeContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type ChiralContext

type ChiralContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewChiralContext

func NewChiralContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ChiralContext

func NewEmptyChiralContext

func NewEmptyChiralContext() *ChiralContext

func (*ChiralContext) EnterRule

func (s *ChiralContext) EnterRule(listener antlr.ParseTreeListener)

func (*ChiralContext) ExitRule

func (s *ChiralContext) ExitRule(listener antlr.ParseTreeListener)

func (*ChiralContext) GetParser

func (s *ChiralContext) GetParser() antlr.Parser

func (*ChiralContext) GetRuleContext

func (s *ChiralContext) GetRuleContext() antlr.RuleContext

func (*ChiralContext) IsChiralContext

func (*ChiralContext) IsChiralContext()

func (*ChiralContext) ToStringTree

func (s *ChiralContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type Class_Context

type Class_Context struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewClass_Context

func NewClass_Context(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Class_Context

func NewEmptyClass_Context

func NewEmptyClass_Context() *Class_Context

func (*Class_Context) EnterRule

func (s *Class_Context) EnterRule(listener antlr.ParseTreeListener)

func (*Class_Context) ExitRule

func (s *Class_Context) ExitRule(listener antlr.ParseTreeListener)

func (*Class_Context) GetParser

func (s *Class_Context) GetParser() antlr.Parser

func (*Class_Context) GetRuleContext

func (s *Class_Context) GetRuleContext() antlr.RuleContext

func (*Class_Context) IsClass_Context

func (*Class_Context) IsClass_Context()

func (*Class_Context) NUMBER

func (s *Class_Context) NUMBER() antlr.TerminalNode

func (*Class_Context) ToStringTree

func (s *Class_Context) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type Element_symbolsContext

type Element_symbolsContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewElement_symbolsContext

func NewElement_symbolsContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Element_symbolsContext

func NewEmptyElement_symbolsContext

func NewEmptyElement_symbolsContext() *Element_symbolsContext

func (*Element_symbolsContext) EnterRule

func (s *Element_symbolsContext) EnterRule(listener antlr.ParseTreeListener)

func (*Element_symbolsContext) ExitRule

func (s *Element_symbolsContext) ExitRule(listener antlr.ParseTreeListener)

func (*Element_symbolsContext) GetParser

func (s *Element_symbolsContext) GetParser() antlr.Parser

func (*Element_symbolsContext) GetRuleContext

func (s *Element_symbolsContext) GetRuleContext() antlr.RuleContext

func (*Element_symbolsContext) IsElement_symbolsContext

func (*Element_symbolsContext) IsElement_symbolsContext()

func (*Element_symbolsContext) ToStringTree

func (s *Element_symbolsContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type HcountContext

type HcountContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyHcountContext

func NewEmptyHcountContext() *HcountContext

func NewHcountContext

func NewHcountContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *HcountContext

func (*HcountContext) DIGIT

func (s *HcountContext) DIGIT() antlr.TerminalNode

func (*HcountContext) EnterRule

func (s *HcountContext) EnterRule(listener antlr.ParseTreeListener)

func (*HcountContext) ExitRule

func (s *HcountContext) ExitRule(listener antlr.ParseTreeListener)

func (*HcountContext) GetParser

func (s *HcountContext) GetParser() antlr.Parser

func (*HcountContext) GetRuleContext

func (s *HcountContext) GetRuleContext() antlr.RuleContext

func (*HcountContext) IsHcountContext

func (*HcountContext) IsHcountContext()

func (*HcountContext) ToStringTree

func (s *HcountContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type IAliphatic_organicContext

type IAliphatic_organicContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsAliphatic_organicContext differentiates from other interfaces.
	IsAliphatic_organicContext()
}

IAliphatic_organicContext is an interface to support dynamic dispatch.

type IAromatic_organicContext

type IAromatic_organicContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsAromatic_organicContext differentiates from other interfaces.
	IsAromatic_organicContext()
}

IAromatic_organicContext is an interface to support dynamic dispatch.

type IAromatic_symbolsContext

type IAromatic_symbolsContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsAromatic_symbolsContext differentiates from other interfaces.
	IsAromatic_symbolsContext()
}

IAromatic_symbolsContext is an interface to support dynamic dispatch.

type IAtomContext

type IAtomContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsAtomContext differentiates from other interfaces.
	IsAtomContext()
}

IAtomContext is an interface to support dynamic dispatch.

type IBondContext

type IBondContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsBondContext differentiates from other interfaces.
	IsBondContext()
}

IBondContext is an interface to support dynamic dispatch.

type IBracket_atomContext

type IBracket_atomContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsBracket_atomContext differentiates from other interfaces.
	IsBracket_atomContext()
}

IBracket_atomContext is an interface to support dynamic dispatch.

type IBranchContext

type IBranchContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsBranchContext differentiates from other interfaces.
	IsBranchContext()
}

IBranchContext is an interface to support dynamic dispatch.

type IBranched_atomContext

type IBranched_atomContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsBranched_atomContext differentiates from other interfaces.
	IsBranched_atomContext()
}

IBranched_atomContext is an interface to support dynamic dispatch.

type IChainContext

type IChainContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsChainContext differentiates from other interfaces.
	IsChainContext()
}

IChainContext is an interface to support dynamic dispatch.

type IChargeContext

type IChargeContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsChargeContext differentiates from other interfaces.
	IsChargeContext()
}

IChargeContext is an interface to support dynamic dispatch.

type IChiralContext

type IChiralContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsChiralContext differentiates from other interfaces.
	IsChiralContext()
}

IChiralContext is an interface to support dynamic dispatch.

type IClass_Context

type IClass_Context interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsClass_Context differentiates from other interfaces.
	IsClass_Context()
}

IClass_Context is an interface to support dynamic dispatch.

type IElement_symbolsContext

type IElement_symbolsContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsElement_symbolsContext differentiates from other interfaces.
	IsElement_symbolsContext()
}

IElement_symbolsContext is an interface to support dynamic dispatch.

type IHcountContext

type IHcountContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsHcountContext differentiates from other interfaces.
	IsHcountContext()
}

IHcountContext is an interface to support dynamic dispatch.

type IIsotopeContext

type IIsotopeContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsIsotopeContext differentiates from other interfaces.
	IsIsotopeContext()
}

IIsotopeContext is an interface to support dynamic dispatch.

type IRingbondContext

type IRingbondContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsRingbondContext differentiates from other interfaces.
	IsRingbondContext()
}

IRingbondContext is an interface to support dynamic dispatch.

type ISmilesContext

type ISmilesContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsSmilesContext differentiates from other interfaces.
	IsSmilesContext()
}

ISmilesContext is an interface to support dynamic dispatch.

type ISymbolContext

type ISymbolContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsSymbolContext differentiates from other interfaces.
	IsSymbolContext()
}

ISymbolContext is an interface to support dynamic dispatch.

type ITerminatorContext

type ITerminatorContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsTerminatorContext differentiates from other interfaces.
	IsTerminatorContext()
}

ITerminatorContext is an interface to support dynamic dispatch.

type IsotopeContext

type IsotopeContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyIsotopeContext

func NewEmptyIsotopeContext() *IsotopeContext

func NewIsotopeContext

func NewIsotopeContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *IsotopeContext

func (*IsotopeContext) EnterRule

func (s *IsotopeContext) EnterRule(listener antlr.ParseTreeListener)

func (*IsotopeContext) ExitRule

func (s *IsotopeContext) ExitRule(listener antlr.ParseTreeListener)

func (*IsotopeContext) GetParser

func (s *IsotopeContext) GetParser() antlr.Parser

func (*IsotopeContext) GetRuleContext

func (s *IsotopeContext) GetRuleContext() antlr.RuleContext

func (*IsotopeContext) IsIsotopeContext

func (*IsotopeContext) IsIsotopeContext()

func (*IsotopeContext) NUMBER

func (s *IsotopeContext) NUMBER() antlr.TerminalNode

func (*IsotopeContext) ToStringTree

func (s *IsotopeContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type RingbondContext

type RingbondContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyRingbondContext

func NewEmptyRingbondContext() *RingbondContext

func NewRingbondContext

func NewRingbondContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *RingbondContext

func (*RingbondContext) AllDIGIT

func (s *RingbondContext) AllDIGIT() []antlr.TerminalNode

func (*RingbondContext) Bond

func (s *RingbondContext) Bond() IBondContext

func (*RingbondContext) DIGIT

func (s *RingbondContext) DIGIT(i int) antlr.TerminalNode

func (*RingbondContext) EnterRule

func (s *RingbondContext) EnterRule(listener antlr.ParseTreeListener)

func (*RingbondContext) ExitRule

func (s *RingbondContext) ExitRule(listener antlr.ParseTreeListener)

func (*RingbondContext) GetParser

func (s *RingbondContext) GetParser() antlr.Parser

func (*RingbondContext) GetRuleContext

func (s *RingbondContext) GetRuleContext() antlr.RuleContext

func (*RingbondContext) IsRingbondContext

func (*RingbondContext) IsRingbondContext()

func (*RingbondContext) ToStringTree

func (s *RingbondContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type SmilesContext

type SmilesContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptySmilesContext

func NewEmptySmilesContext() *SmilesContext

func NewSmilesContext

func NewSmilesContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *SmilesContext

func (*SmilesContext) Chain

func (s *SmilesContext) Chain() IChainContext

func (*SmilesContext) EnterRule

func (s *SmilesContext) EnterRule(listener antlr.ParseTreeListener)

func (*SmilesContext) ExitRule

func (s *SmilesContext) ExitRule(listener antlr.ParseTreeListener)

func (*SmilesContext) GetParser

func (s *SmilesContext) GetParser() antlr.Parser

func (*SmilesContext) GetRuleContext

func (s *SmilesContext) GetRuleContext() antlr.RuleContext

func (*SmilesContext) IsSmilesContext

func (*SmilesContext) IsSmilesContext()

func (*SmilesContext) Terminator

func (s *SmilesContext) Terminator() ITerminatorContext

func (*SmilesContext) ToStringTree

func (s *SmilesContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type SymbolContext

type SymbolContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptySymbolContext

func NewEmptySymbolContext() *SymbolContext

func NewSymbolContext

func NewSymbolContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *SymbolContext

func (*SymbolContext) Aromatic_symbols

func (s *SymbolContext) Aromatic_symbols() IAromatic_symbolsContext

func (*SymbolContext) Element_symbols

func (s *SymbolContext) Element_symbols() IElement_symbolsContext

func (*SymbolContext) EnterRule

func (s *SymbolContext) EnterRule(listener antlr.ParseTreeListener)

func (*SymbolContext) ExitRule

func (s *SymbolContext) ExitRule(listener antlr.ParseTreeListener)

func (*SymbolContext) GetParser

func (s *SymbolContext) GetParser() antlr.Parser

func (*SymbolContext) GetRuleContext

func (s *SymbolContext) GetRuleContext() antlr.RuleContext

func (*SymbolContext) IsSymbolContext

func (*SymbolContext) IsSymbolContext()

func (*SymbolContext) ToStringTree

func (s *SymbolContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type TerminatorContext

type TerminatorContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyTerminatorContext

func NewEmptyTerminatorContext() *TerminatorContext

func NewTerminatorContext

func NewTerminatorContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *TerminatorContext

func (*TerminatorContext) CARRIAGE_RETURN

func (s *TerminatorContext) CARRIAGE_RETURN() antlr.TerminalNode

func (*TerminatorContext) EnterRule

func (s *TerminatorContext) EnterRule(listener antlr.ParseTreeListener)

func (*TerminatorContext) ExitRule

func (s *TerminatorContext) ExitRule(listener antlr.ParseTreeListener)

func (*TerminatorContext) GetParser

func (s *TerminatorContext) GetParser() antlr.Parser

func (*TerminatorContext) GetRuleContext

func (s *TerminatorContext) GetRuleContext() antlr.RuleContext

func (*TerminatorContext) IsTerminatorContext

func (*TerminatorContext) IsTerminatorContext()

func (*TerminatorContext) LINEFEED

func (s *TerminatorContext) LINEFEED() antlr.TerminalNode

func (*TerminatorContext) SPACE

func (*TerminatorContext) TAB

func (*TerminatorContext) ToStringTree

func (s *TerminatorContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL