mirror of
https://github.com/danog/parser.git
synced 2024-12-02 17:38:16 +01:00
479f51913c
Signed-off-by: azjezz <azjezz@protonmail.com>
1301 lines
18 KiB
Plaintext
1301 lines
18 KiB
Plaintext
[
|
|
Token {
|
|
kind: OpenTag(
|
|
Full,
|
|
),
|
|
span: (
|
|
1,
|
|
1,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Identifier(
|
|
"define",
|
|
),
|
|
span: (
|
|
3,
|
|
1,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LeftParen,
|
|
span: (
|
|
3,
|
|
7,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LiteralString(
|
|
"a",
|
|
),
|
|
span: (
|
|
3,
|
|
8,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Comma,
|
|
span: (
|
|
3,
|
|
11,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LeftParen,
|
|
span: (
|
|
3,
|
|
13,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Variable(
|
|
"a",
|
|
),
|
|
span: (
|
|
3,
|
|
14,
|
|
),
|
|
},
|
|
Token {
|
|
kind: DoubleEquals,
|
|
span: (
|
|
3,
|
|
17,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Variable(
|
|
"b",
|
|
),
|
|
span: (
|
|
3,
|
|
20,
|
|
),
|
|
},
|
|
Token {
|
|
kind: RightParen,
|
|
span: (
|
|
3,
|
|
22,
|
|
),
|
|
},
|
|
Token {
|
|
kind: RightParen,
|
|
span: (
|
|
3,
|
|
23,
|
|
),
|
|
},
|
|
Token {
|
|
kind: SemiColon,
|
|
span: (
|
|
3,
|
|
24,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Identifier(
|
|
"define",
|
|
),
|
|
span: (
|
|
4,
|
|
1,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LeftParen,
|
|
span: (
|
|
4,
|
|
7,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LiteralString(
|
|
"a",
|
|
),
|
|
span: (
|
|
4,
|
|
8,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Comma,
|
|
span: (
|
|
4,
|
|
11,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LeftParen,
|
|
span: (
|
|
4,
|
|
13,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Variable(
|
|
"a",
|
|
),
|
|
span: (
|
|
4,
|
|
14,
|
|
),
|
|
},
|
|
Token {
|
|
kind: TripleEquals,
|
|
span: (
|
|
4,
|
|
17,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Variable(
|
|
"b",
|
|
),
|
|
span: (
|
|
4,
|
|
21,
|
|
),
|
|
},
|
|
Token {
|
|
kind: RightParen,
|
|
span: (
|
|
4,
|
|
23,
|
|
),
|
|
},
|
|
Token {
|
|
kind: RightParen,
|
|
span: (
|
|
4,
|
|
24,
|
|
),
|
|
},
|
|
Token {
|
|
kind: SemiColon,
|
|
span: (
|
|
4,
|
|
25,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Identifier(
|
|
"define",
|
|
),
|
|
span: (
|
|
5,
|
|
1,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LeftParen,
|
|
span: (
|
|
5,
|
|
7,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LiteralString(
|
|
"a",
|
|
),
|
|
span: (
|
|
5,
|
|
8,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Comma,
|
|
span: (
|
|
5,
|
|
11,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LeftParen,
|
|
span: (
|
|
5,
|
|
13,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Variable(
|
|
"a",
|
|
),
|
|
span: (
|
|
5,
|
|
14,
|
|
),
|
|
},
|
|
Token {
|
|
kind: BangEquals,
|
|
span: (
|
|
5,
|
|
17,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Variable(
|
|
"b",
|
|
),
|
|
span: (
|
|
5,
|
|
20,
|
|
),
|
|
},
|
|
Token {
|
|
kind: RightParen,
|
|
span: (
|
|
5,
|
|
22,
|
|
),
|
|
},
|
|
Token {
|
|
kind: RightParen,
|
|
span: (
|
|
5,
|
|
23,
|
|
),
|
|
},
|
|
Token {
|
|
kind: SemiColon,
|
|
span: (
|
|
5,
|
|
24,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Identifier(
|
|
"define",
|
|
),
|
|
span: (
|
|
6,
|
|
1,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LeftParen,
|
|
span: (
|
|
6,
|
|
7,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LiteralString(
|
|
"a",
|
|
),
|
|
span: (
|
|
6,
|
|
8,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Comma,
|
|
span: (
|
|
6,
|
|
11,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LeftParen,
|
|
span: (
|
|
6,
|
|
13,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Variable(
|
|
"a",
|
|
),
|
|
span: (
|
|
6,
|
|
14,
|
|
),
|
|
},
|
|
Token {
|
|
kind: BangDoubleEquals,
|
|
span: (
|
|
6,
|
|
17,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Variable(
|
|
"b",
|
|
),
|
|
span: (
|
|
6,
|
|
21,
|
|
),
|
|
},
|
|
Token {
|
|
kind: RightParen,
|
|
span: (
|
|
6,
|
|
23,
|
|
),
|
|
},
|
|
Token {
|
|
kind: RightParen,
|
|
span: (
|
|
6,
|
|
24,
|
|
),
|
|
},
|
|
Token {
|
|
kind: SemiColon,
|
|
span: (
|
|
6,
|
|
25,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Identifier(
|
|
"define",
|
|
),
|
|
span: (
|
|
7,
|
|
1,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LeftParen,
|
|
span: (
|
|
7,
|
|
7,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LiteralString(
|
|
"a",
|
|
),
|
|
span: (
|
|
7,
|
|
8,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Comma,
|
|
span: (
|
|
7,
|
|
11,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LeftParen,
|
|
span: (
|
|
7,
|
|
13,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Variable(
|
|
"a",
|
|
),
|
|
span: (
|
|
7,
|
|
14,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Plus,
|
|
span: (
|
|
7,
|
|
17,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Variable(
|
|
"b",
|
|
),
|
|
span: (
|
|
7,
|
|
19,
|
|
),
|
|
},
|
|
Token {
|
|
kind: RightParen,
|
|
span: (
|
|
7,
|
|
21,
|
|
),
|
|
},
|
|
Token {
|
|
kind: RightParen,
|
|
span: (
|
|
7,
|
|
22,
|
|
),
|
|
},
|
|
Token {
|
|
kind: SemiColon,
|
|
span: (
|
|
7,
|
|
23,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Identifier(
|
|
"define",
|
|
),
|
|
span: (
|
|
8,
|
|
1,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LeftParen,
|
|
span: (
|
|
8,
|
|
7,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LiteralString(
|
|
"a",
|
|
),
|
|
span: (
|
|
8,
|
|
8,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Comma,
|
|
span: (
|
|
8,
|
|
11,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LeftParen,
|
|
span: (
|
|
8,
|
|
13,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Variable(
|
|
"a",
|
|
),
|
|
span: (
|
|
8,
|
|
14,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Minus,
|
|
span: (
|
|
8,
|
|
17,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Variable(
|
|
"b",
|
|
),
|
|
span: (
|
|
8,
|
|
19,
|
|
),
|
|
},
|
|
Token {
|
|
kind: RightParen,
|
|
span: (
|
|
8,
|
|
21,
|
|
),
|
|
},
|
|
Token {
|
|
kind: RightParen,
|
|
span: (
|
|
8,
|
|
22,
|
|
),
|
|
},
|
|
Token {
|
|
kind: SemiColon,
|
|
span: (
|
|
8,
|
|
23,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Identifier(
|
|
"define",
|
|
),
|
|
span: (
|
|
9,
|
|
1,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LeftParen,
|
|
span: (
|
|
9,
|
|
7,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LiteralString(
|
|
"a",
|
|
),
|
|
span: (
|
|
9,
|
|
8,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Comma,
|
|
span: (
|
|
9,
|
|
11,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LeftParen,
|
|
span: (
|
|
9,
|
|
13,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Variable(
|
|
"a",
|
|
),
|
|
span: (
|
|
9,
|
|
14,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Slash,
|
|
span: (
|
|
9,
|
|
17,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Variable(
|
|
"b",
|
|
),
|
|
span: (
|
|
9,
|
|
19,
|
|
),
|
|
},
|
|
Token {
|
|
kind: RightParen,
|
|
span: (
|
|
9,
|
|
21,
|
|
),
|
|
},
|
|
Token {
|
|
kind: RightParen,
|
|
span: (
|
|
9,
|
|
22,
|
|
),
|
|
},
|
|
Token {
|
|
kind: SemiColon,
|
|
span: (
|
|
9,
|
|
23,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Identifier(
|
|
"define",
|
|
),
|
|
span: (
|
|
10,
|
|
1,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LeftParen,
|
|
span: (
|
|
10,
|
|
7,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LiteralString(
|
|
"a",
|
|
),
|
|
span: (
|
|
10,
|
|
8,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Comma,
|
|
span: (
|
|
10,
|
|
11,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LeftParen,
|
|
span: (
|
|
10,
|
|
13,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Variable(
|
|
"a",
|
|
),
|
|
span: (
|
|
10,
|
|
14,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Caret,
|
|
span: (
|
|
10,
|
|
17,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Variable(
|
|
"b",
|
|
),
|
|
span: (
|
|
10,
|
|
19,
|
|
),
|
|
},
|
|
Token {
|
|
kind: RightParen,
|
|
span: (
|
|
10,
|
|
21,
|
|
),
|
|
},
|
|
Token {
|
|
kind: RightParen,
|
|
span: (
|
|
10,
|
|
22,
|
|
),
|
|
},
|
|
Token {
|
|
kind: SemiColon,
|
|
span: (
|
|
10,
|
|
23,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Identifier(
|
|
"define",
|
|
),
|
|
span: (
|
|
11,
|
|
1,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LeftParen,
|
|
span: (
|
|
11,
|
|
7,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LiteralString(
|
|
"a",
|
|
),
|
|
span: (
|
|
11,
|
|
8,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Comma,
|
|
span: (
|
|
11,
|
|
11,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LeftParen,
|
|
span: (
|
|
11,
|
|
13,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Variable(
|
|
"a",
|
|
),
|
|
span: (
|
|
11,
|
|
14,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Asterisk,
|
|
span: (
|
|
11,
|
|
17,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Variable(
|
|
"b",
|
|
),
|
|
span: (
|
|
11,
|
|
19,
|
|
),
|
|
},
|
|
Token {
|
|
kind: RightParen,
|
|
span: (
|
|
11,
|
|
21,
|
|
),
|
|
},
|
|
Token {
|
|
kind: RightParen,
|
|
span: (
|
|
11,
|
|
22,
|
|
),
|
|
},
|
|
Token {
|
|
kind: SemiColon,
|
|
span: (
|
|
11,
|
|
23,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Identifier(
|
|
"define",
|
|
),
|
|
span: (
|
|
12,
|
|
1,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LeftParen,
|
|
span: (
|
|
12,
|
|
7,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LiteralString(
|
|
"a",
|
|
),
|
|
span: (
|
|
12,
|
|
8,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Comma,
|
|
span: (
|
|
12,
|
|
11,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LeftParen,
|
|
span: (
|
|
12,
|
|
13,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Variable(
|
|
"a",
|
|
),
|
|
span: (
|
|
12,
|
|
14,
|
|
),
|
|
},
|
|
Token {
|
|
kind: RightShift,
|
|
span: (
|
|
12,
|
|
17,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Variable(
|
|
"b",
|
|
),
|
|
span: (
|
|
12,
|
|
20,
|
|
),
|
|
},
|
|
Token {
|
|
kind: RightParen,
|
|
span: (
|
|
12,
|
|
22,
|
|
),
|
|
},
|
|
Token {
|
|
kind: RightParen,
|
|
span: (
|
|
12,
|
|
23,
|
|
),
|
|
},
|
|
Token {
|
|
kind: SemiColon,
|
|
span: (
|
|
12,
|
|
24,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Identifier(
|
|
"define",
|
|
),
|
|
span: (
|
|
13,
|
|
1,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LeftParen,
|
|
span: (
|
|
13,
|
|
7,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LiteralString(
|
|
"a",
|
|
),
|
|
span: (
|
|
13,
|
|
8,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Comma,
|
|
span: (
|
|
13,
|
|
11,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LeftParen,
|
|
span: (
|
|
13,
|
|
13,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Variable(
|
|
"a",
|
|
),
|
|
span: (
|
|
13,
|
|
14,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LeftShift,
|
|
span: (
|
|
13,
|
|
17,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Variable(
|
|
"b",
|
|
),
|
|
span: (
|
|
13,
|
|
20,
|
|
),
|
|
},
|
|
Token {
|
|
kind: RightParen,
|
|
span: (
|
|
13,
|
|
22,
|
|
),
|
|
},
|
|
Token {
|
|
kind: RightParen,
|
|
span: (
|
|
13,
|
|
23,
|
|
),
|
|
},
|
|
Token {
|
|
kind: SemiColon,
|
|
span: (
|
|
13,
|
|
24,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Identifier(
|
|
"define",
|
|
),
|
|
span: (
|
|
14,
|
|
1,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LeftParen,
|
|
span: (
|
|
14,
|
|
7,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LiteralString(
|
|
"a",
|
|
),
|
|
span: (
|
|
14,
|
|
8,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Comma,
|
|
span: (
|
|
14,
|
|
11,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LeftParen,
|
|
span: (
|
|
14,
|
|
13,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Variable(
|
|
"a",
|
|
),
|
|
span: (
|
|
14,
|
|
14,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Pipe,
|
|
span: (
|
|
14,
|
|
17,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Variable(
|
|
"b",
|
|
),
|
|
span: (
|
|
14,
|
|
19,
|
|
),
|
|
},
|
|
Token {
|
|
kind: RightParen,
|
|
span: (
|
|
14,
|
|
21,
|
|
),
|
|
},
|
|
Token {
|
|
kind: RightParen,
|
|
span: (
|
|
14,
|
|
22,
|
|
),
|
|
},
|
|
Token {
|
|
kind: SemiColon,
|
|
span: (
|
|
14,
|
|
23,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Identifier(
|
|
"define",
|
|
),
|
|
span: (
|
|
15,
|
|
1,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LeftParen,
|
|
span: (
|
|
15,
|
|
7,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LiteralString(
|
|
"a",
|
|
),
|
|
span: (
|
|
15,
|
|
8,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Comma,
|
|
span: (
|
|
15,
|
|
11,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LeftParen,
|
|
span: (
|
|
15,
|
|
13,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Variable(
|
|
"a",
|
|
),
|
|
span: (
|
|
15,
|
|
14,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Ampersand,
|
|
span: (
|
|
15,
|
|
17,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Variable(
|
|
"b",
|
|
),
|
|
span: (
|
|
15,
|
|
19,
|
|
),
|
|
},
|
|
Token {
|
|
kind: RightParen,
|
|
span: (
|
|
15,
|
|
21,
|
|
),
|
|
},
|
|
Token {
|
|
kind: RightParen,
|
|
span: (
|
|
15,
|
|
22,
|
|
),
|
|
},
|
|
Token {
|
|
kind: SemiColon,
|
|
span: (
|
|
15,
|
|
23,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Echo,
|
|
span: (
|
|
17,
|
|
1,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LeftParen,
|
|
span: (
|
|
17,
|
|
6,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Variable(
|
|
"a",
|
|
),
|
|
span: (
|
|
17,
|
|
7,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Plus,
|
|
span: (
|
|
17,
|
|
10,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Variable(
|
|
"b",
|
|
),
|
|
span: (
|
|
17,
|
|
12,
|
|
),
|
|
},
|
|
Token {
|
|
kind: RightParen,
|
|
span: (
|
|
17,
|
|
14,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Asterisk,
|
|
span: (
|
|
17,
|
|
16,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LeftParen,
|
|
span: (
|
|
17,
|
|
18,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Variable(
|
|
"c",
|
|
),
|
|
span: (
|
|
17,
|
|
19,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Slash,
|
|
span: (
|
|
17,
|
|
22,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Variable(
|
|
"d",
|
|
),
|
|
span: (
|
|
17,
|
|
24,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Minus,
|
|
span: (
|
|
17,
|
|
27,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Dollar,
|
|
span: (
|
|
17,
|
|
29,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LeftBrace,
|
|
span: (
|
|
17,
|
|
30,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LiteralString(
|
|
"foo",
|
|
),
|
|
span: (
|
|
17,
|
|
31,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Dot,
|
|
span: (
|
|
17,
|
|
37,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Variable(
|
|
"c",
|
|
),
|
|
span: (
|
|
17,
|
|
39,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Question,
|
|
span: (
|
|
17,
|
|
42,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LiteralInteger(
|
|
4,
|
|
),
|
|
span: (
|
|
17,
|
|
44,
|
|
),
|
|
},
|
|
Token {
|
|
kind: Colon,
|
|
span: (
|
|
17,
|
|
46,
|
|
),
|
|
},
|
|
Token {
|
|
kind: LiteralInteger(
|
|
3,
|
|
),
|
|
span: (
|
|
17,
|
|
48,
|
|
),
|
|
},
|
|
Token {
|
|
kind: RightBrace,
|
|
span: (
|
|
17,
|
|
49,
|
|
),
|
|
},
|
|
Token {
|
|
kind: RightParen,
|
|
span: (
|
|
17,
|
|
50,
|
|
),
|
|
},
|
|
Token {
|
|
kind: SemiColon,
|
|
span: (
|
|
17,
|
|
51,
|
|
),
|
|
},
|
|
]
|