Sha256: f07dfd44093212396c3a5d645011c3675a514dc94153ce3a345e6064cc059f30
Contents?: true
Size: 595 Bytes
Versions: 12
Compression:
Stored size: 595 Bytes
Contents
import {tokenizer, SourceLocation, tokTypes as tt} from ".." export function LooseParser(input, options) { this.toks = tokenizer(input, options) this.options = this.toks.options this.input = this.toks.input this.tok = this.last = {type: tt.eof, start: 0, end: 0} if (this.options.locations) { let here = this.toks.curPosition() this.tok.loc = new SourceLocation(this.toks, here, here) } this.ahead = []; // Tokens ahead this.context = []; // Indentation contexted this.curIndent = 0 this.curLineStart = 0 this.nextLineStart = this.lineEnd(this.curLineStart) + 1 }
Version data entries
12 entries across 12 versions & 4 rubygems