Documentation
¶
Index ¶
- Constants
- Variables
- func Main()
- func NewACmd(s *Sed, line []byte, addr *address) (*a_cmd, error)
- func NewBCmd(pieces [][]byte, addr *address) (*b_cmd, error)
- func NewCCmd(s *Sed, line []byte, addr *address) (*c_cmd, error)
- func NewDCmd(pieces [][]byte, addr *address) (*d_cmd, error)
- func NewEqlCmd(pieces [][]byte, addr *address) (*eql_cmd, error)
- func NewGCmd(pieces [][]byte, addr *address) (*g_cmd, error)
- func NewHCmd(pieces [][]byte, addr *address) (*h_cmd, error)
- func NewICmd(s *Sed, line []byte, addr *address) (*i_cmd, error)
- func NewNCmd(pieces [][]byte, addr *address) (*n_cmd, error)
- func NewPCmd(pieces [][]byte, addr *address) (*p_cmd, error)
- func NewQCmd(pieces [][]byte, addr *address) (c *q_cmd, err error)
- func NewRCmd(line []byte, addr *address) (*r_cmd, error)
- func NewSCmd(pieces [][]byte, addr *address) (c *s_cmd, err error)
- type Address
- type Cmd
- type Sed
Constants ¶
View Source
const ( ADDRESS_LINE = iota ADDRESS_RANGE ADDRESS_TO_END_OF_FILE ADDRESS_LAST_LINE ADDRESS_REGEX )
Variables ¶
View Source
var ( WrongNumberOfCommandParameters error = errors.New("Wrong number of parameters for command") UnknownScriptCommand error = errors.New("Unknown script command") InvalidSCommandFlag error = errors.New("Invalid flag for s command") RegularExpressionExpected error = errors.New("Expected a regular expression, got zero length string") UnterminatedRegularExpression error = errors.New("Unterminated regular expression") NoSupportForTwoAddress error = errors.New("This command doesn't support an address range or to end of file") NotImplemented error = errors.New("This command command hasn't been implemented yet") )
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.