Documentation
¶
Overview ¶
package parser contains information for parsing the tokens in the input file
Index ¶
- Constants
- type Handler
- type Parser
- func (c Parser) ColNo() int
- func (c *Parser) NewCol()
- func (c *Parser) NewRow()
- func (c Parser) PrintRow()
- func (c *Parser) Process(filename string, tablename string)
- func (c *Parser) ProcessingTable(token html.Token) error
- func (c *Parser) ResetRowCounters()
- func (c Parser) RowNo() int
- func (c *Parser) SaveRow()
- func (c *Parser) SetText(token html.Token)
- func (c *Parser) SetVerbose()
- func (c *Parser) WaitingForDetails(token html.Token) error
- func (c *Parser) WaitingForTable(token html.Token) error
- type TokenHistory
Constants ¶
View Source
const (
// TokenHistorySize represents the size of the token history we remember
TokenHistorySize = 15
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser contains information about the context we are processing
func (*Parser) NewRow ¶
func (c *Parser) NewRow()
NewRow increments the row count and sets the column number to 0
func (*Parser) Process ¶
Process parses the file consuming tokens and finally returning the SQL statements to build a table
func (*Parser) ProcessingTable ¶
ProcessingTable process the content of the main table
func (*Parser) ResetRowCounters ¶
func (c *Parser) ResetRowCounters()
ResetRowCounters resets the row counters
func (*Parser) WaitingForDetails ¶
WaitingForDetails processes the token while waiting for details
Click to show internal directories.
Click to hide internal directories.