source: trip-planner-front/node_modules/postcss-values-parser/lib/index.js@ 76712b2

Last change on this file since 76712b2 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.5 KB
Line 
1'use strict';
2
3const Parser = require('./parser');
4const AtWord = require('./atword');
5const Colon = require('./colon');
6const Comma = require('./comma');
7const Comment = require('./comment');
8const Func = require('./function');
9const Num = require('./number');
10const Operator = require('./operator');
11const Paren = require('./paren');
12const Str = require('./string');
13const UnicodeRange = require('./unicode-range');
14const Value = require('./value');
15const Word = require('./word');
16
17let parser = function (source, options) {
18 return new Parser(source, options);
19};
20
21parser.atword = function (opts) {
22 return new AtWord(opts);
23};
24
25parser.colon = function (opts) {
26 return new Colon(Object.assign({ value: ':' }, opts));
27};
28
29parser.comma = function (opts) {
30 return new Comma(Object.assign({ value: ',' }, opts));
31};
32
33parser.comment = function (opts) {
34 return new Comment(opts);
35};
36
37parser.func = function (opts) {
38 return new Func(opts);
39};
40
41parser.number = function (opts) {
42 return new Num(opts);
43};
44
45parser.operator = function (opts) {
46 return new Operator(opts);
47};
48
49parser.paren = function (opts) {
50 return new Paren(Object.assign({ value: '(' }, opts));
51};
52
53parser.string = function (opts) {
54 return new Str(Object.assign({ quote: '\'' }, opts));
55};
56
57parser.value = function (opts) {
58 return new Value(opts);
59};
60
61parser.word = function (opts) {
62 return new Word(opts);
63};
64
65parser.unicodeRange = function (opts) {
66 return new UnicodeRange(opts);
67};
68
69module.exports = parser;
Note: See TracBrowser for help on using the repository browser.