Lines Matching defs:compiler

13 type compiler struct {  struct
14 moduleLoader ModuleLoader
15 environLoader func() []string
16 variables []string
17 customFuncs map[string]function
18 inputIter Iter
19 codes []*code
20 codeinfos []codeinfo
21 scopes []*scopeinfo
22 scopecnt int
123 func (c *compiler) compile(q *Query) error {
143 func (c *compiler) compileImport(i *Import) error {
197 func (c *compiler) compileModule(q *Query, alias string) error {
224 func (c *compiler) newVariable() [2]int {
228 func (c *compiler) pushVariable(name string) [2]int {
238 func (c *compiler) createVariable(name string) [2]int {
246 func (c *compiler) lookupVariable(name string) ([2]int, error) {
258 func (c *compiler) lookupFuncOrVariable(name string) (*funcinfo, *varinfo) {
277 func (c *compiler) newScope() *scopeinfo {
283 func (c *compiler) newScopeDepth() func() {
294 func (c *compiler) compileFuncDef(e *FuncDef, builtin bool) error {
357 func (c *compiler) compileQuery(e *Query) error {
426 func (c *compiler) compileComma(l, r *Query) error {
440 func (c *compiler) compileAlt(l, r *Query) error {
467 func (c *compiler) compileQueryUpdate(l, r *Query, op Operator) error {
520 func (c *compiler) compileBind(b *Bind) error {
559 func (c *compiler) compilePattern(p *Pattern) ([][2]int, error) {
636 func (c *compiler) compileIf(e *If) error {
686 func (c *compiler) compileTry(e *Try) error {
709 func (c *compiler) compileReduce(e *Reduce) error {
742 func (c *compiler) compileForeach(e *Foreach) error {
774 func (c *compiler) compileLabel(e *Label) error {
783 func (c *compiler) compileBreak(label string) error {
800 func (c *compiler) compileTerm(e *Term) error {
862 func (c *compiler) compileIndex(e *Term, x *Index) error {
882 func (c *compiler) compileFunc(e *Func) error {
995 func (c *compiler) funcBuiltins(interface{}, []interface{}) interface{} {
1037 func (c *compiler) funcInput(interface{}, []interface{}) interface{} {
1045 func (c *compiler) funcModulemeta(v interface{}, _ []interface{}) interface{} {
1103 func (c *compiler) compileObject(e *Object) error {
1140 func (c *compiler) compileObjectKeyVal(v [2]int, kv *ObjectKeyVal) error {
1191 func (c *compiler) compileObjectVal(e *ObjectVal) error {
1200 func (c *compiler) compileArray(e *Array) error {
1248 func (c *compiler) compileUnary(e *Unary) error {
1263 func (c *compiler) compileFormat(fmt string, str *String) error {
1302 func (c *compiler) compileString(s *String, f *Func) error {
1324 func (c *compiler) compileTermSuffix(e *Term, s *Suffix) error {
1357 func (c *compiler) compileCall(name string, args []*Query) error {
1373 func (c *compiler) compileCallPc(fn *funcinfo, args []*Query) error {
1377 func (c *compiler) compileCallInternal(
1438 func (c *compiler) append(code *code) {
1442 func (c *compiler) pc() int {
1446 func (c *compiler) lazy(f func() *code) func() {
1452 func (c *compiler) optimizeTailRec() {
1496 func (c *compiler) optimizeCodeOps() {