first commit
This commit is contained in:
commit
b21727a3fe
20 changed files with 18126 additions and 0 deletions
153
tests/out_test_and.json
Normal file
153
tests/out_test_and.json
Normal file
|
@ -0,0 +1,153 @@
|
|||
{
|
||||
"root_node": {
|
||||
"type": "and",
|
||||
"children": [
|
||||
{
|
||||
"type": "and",
|
||||
"children": [
|
||||
{
|
||||
"type": "expr",
|
||||
"children": [
|
||||
{
|
||||
"type": "eq",
|
||||
"children": [
|
||||
{
|
||||
"type": "ID",
|
||||
"children": [],
|
||||
"lexeme": "ID",
|
||||
"start": 0,
|
||||
"end": 3
|
||||
},
|
||||
{
|
||||
"type": "EQ",
|
||||
"children": [],
|
||||
"lexeme": "EQ",
|
||||
"start": 4,
|
||||
"end": 6
|
||||
},
|
||||
{
|
||||
"type": "literal",
|
||||
"children": [
|
||||
{
|
||||
"type": "INTEGER_LITERAL",
|
||||
"children": [],
|
||||
"lexeme": "INTEGER_LITERAL",
|
||||
"start": 7,
|
||||
"end": 8
|
||||
}
|
||||
],
|
||||
"lexeme": null,
|
||||
"start": 0,
|
||||
"end": 0
|
||||
}
|
||||
],
|
||||
"lexeme": null,
|
||||
"start": 0,
|
||||
"end": 0
|
||||
}
|
||||
],
|
||||
"lexeme": null,
|
||||
"start": 0,
|
||||
"end": 0
|
||||
},
|
||||
{
|
||||
"type": "expr",
|
||||
"children": [
|
||||
{
|
||||
"type": "eq",
|
||||
"children": [
|
||||
{
|
||||
"type": "ID",
|
||||
"children": [],
|
||||
"lexeme": "ID",
|
||||
"start": 13,
|
||||
"end": 17
|
||||
},
|
||||
{
|
||||
"type": "EQ",
|
||||
"children": [],
|
||||
"lexeme": "EQ",
|
||||
"start": 18,
|
||||
"end": 20
|
||||
},
|
||||
{
|
||||
"type": "literal",
|
||||
"children": [
|
||||
{
|
||||
"type": "INTEGER_LITERAL",
|
||||
"children": [],
|
||||
"lexeme": "INTEGER_LITERAL",
|
||||
"start": 21,
|
||||
"end": 22
|
||||
}
|
||||
],
|
||||
"lexeme": null,
|
||||
"start": 0,
|
||||
"end": 0
|
||||
}
|
||||
],
|
||||
"lexeme": null,
|
||||
"start": 0,
|
||||
"end": 0
|
||||
}
|
||||
],
|
||||
"lexeme": null,
|
||||
"start": 0,
|
||||
"end": 0
|
||||
}
|
||||
],
|
||||
"lexeme": null,
|
||||
"start": 0,
|
||||
"end": 0
|
||||
},
|
||||
{
|
||||
"type": "expr",
|
||||
"children": [
|
||||
{
|
||||
"type": "eq",
|
||||
"children": [
|
||||
{
|
||||
"type": "ID",
|
||||
"children": [],
|
||||
"lexeme": "ID",
|
||||
"start": 28,
|
||||
"end": 31
|
||||
},
|
||||
{
|
||||
"type": "EQ",
|
||||
"children": [],
|
||||
"lexeme": "EQ",
|
||||
"start": 32,
|
||||
"end": 34
|
||||
},
|
||||
{
|
||||
"type": "literal",
|
||||
"children": [
|
||||
{
|
||||
"type": "INTEGER_LITERAL",
|
||||
"children": [],
|
||||
"lexeme": "INTEGER_LITERAL",
|
||||
"start": 35,
|
||||
"end": 36
|
||||
}
|
||||
],
|
||||
"lexeme": null,
|
||||
"start": 0,
|
||||
"end": 0
|
||||
}
|
||||
],
|
||||
"lexeme": null,
|
||||
"start": 0,
|
||||
"end": 0
|
||||
}
|
||||
],
|
||||
"lexeme": null,
|
||||
"start": 0,
|
||||
"end": 0
|
||||
}
|
||||
],
|
||||
"lexeme": null,
|
||||
"start": 0,
|
||||
"end": 0
|
||||
}
|
||||
}
|
69
tests/out_tree_address.json
Normal file
69
tests/out_tree_address.json
Normal file
|
@ -0,0 +1,69 @@
|
|||
{
|
||||
"root_node": {
|
||||
"type": "expr",
|
||||
"children": [
|
||||
{
|
||||
"type": "eq",
|
||||
"children": [
|
||||
{
|
||||
"type": "ID",
|
||||
"children": [],
|
||||
"lexeme": "ID",
|
||||
"start": 0,
|
||||
"end": 3
|
||||
},
|
||||
{
|
||||
"type": "EQ",
|
||||
"children": [],
|
||||
"lexeme": "EQ",
|
||||
"start": 4,
|
||||
"end": 6
|
||||
},
|
||||
{
|
||||
"type": "literal",
|
||||
"children": [
|
||||
{
|
||||
"type": "address_literal",
|
||||
"children": [
|
||||
{
|
||||
"type": "STRING_LITERAL",
|
||||
"children": [],
|
||||
"lexeme": "STRING_LITERAL",
|
||||
"start": 16,
|
||||
"end": 19
|
||||
},
|
||||
{
|
||||
"type": "STRING_LITERAL",
|
||||
"children": [],
|
||||
"lexeme": "STRING_LITERAL",
|
||||
"start": 21,
|
||||
"end": 24
|
||||
},
|
||||
{
|
||||
"type": "STRING_LITERAL",
|
||||
"children": [],
|
||||
"lexeme": "STRING_LITERAL",
|
||||
"start": 26,
|
||||
"end": 29
|
||||
}
|
||||
],
|
||||
"lexeme": null,
|
||||
"start": 0,
|
||||
"end": 0
|
||||
}
|
||||
],
|
||||
"lexeme": null,
|
||||
"start": 0,
|
||||
"end": 0
|
||||
}
|
||||
],
|
||||
"lexeme": null,
|
||||
"start": 0,
|
||||
"end": 0
|
||||
}
|
||||
],
|
||||
"lexeme": null,
|
||||
"start": 0,
|
||||
"end": 0
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue