parser.js 343 B

123456789101112131415
  1. var inherits = require('util').inherits
  2. var Parser = require('postcss/lib/parser')
  3. var tokenizer = require('./tokenize')
  4. inherits(InlineParser, Parser)
  5. module.exports = InlineParser
  6. function InlineParser(input) {
  7. Parser.call(this, input)
  8. }
  9. InlineParser.prototype.createTokenizer = function() {
  10. this.tokenizer = tokenizer(this.input)
  11. }