Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ExtractorErrorType = rnt.Cal( rnt.TypeType, rnt.NewStr("ExtractorError"), rnt.NewTuple(rnt.ExceptionType), rnt.NewDict()).(rnt.Type)
ExtractorErrorType ..
View Source
var ExtractorRunner rnt.Object
ExtractorRunner ..
View Source
var Extractors = make(map[string]rnt.Object)
Extractors ..
View Source
var RegisterExtractor = rnt.NewSimpleFunction("RegisterExtractor", []string{"key", "class"}, func(args []rnt.Object) rnt.Object { key := args[0].(rnt.Str).Value() class := args[1] Extractors[key] = class return rnt.None })
RegisterExtractor registers a new extractor class
View Source
var SetExtractorRunner = rnt.NewSimpleFunction("SetExtractorRunner", []string{"runner"}, func(args []rnt.Object) rnt.Object { ExtractorRunner = args[0] return rnt.None })
SetExtractorRunner is called by the generated code to provide an entry point into it, usable by the fixe code.
Functions ¶
func NewStringlike ¶
NewStringlike builds a str or bytes object having val as value, depending on st (True->str, False->bytes).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.