| Issue 5: | Slotname not taken into account for regexp | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Consider this gzl file:
A: /a/;
hello -> .open="<" .value=A .close=">";
It compiles well.
However, when I run gzlparse on the the text "<a>", I get:
{"parse_tree":
{"rule":"hello", "start": 0, "line": 1, "column": 1, "children": [
{"terminal": "<", "slotname": "open", "slotnum": 0, "byte_offset": 0,
"line": 1, "column": 1, "len": 1, "text": "<"},
{"terminal": "A", "slotname": "A", "slotnum": 1, "byte_offset": 1,
"line": 1, "column": 2, "len": 1, "text": "a"},
{"terminal": ">", "slotname": "close", "slotnum": 2, "byte_offset": 2,
"line": 1, "column": 3, "len": 1, "text": ">"}
], "len": 3}
}
Please do note : {"terminal": "A", "slotname": "A"
Instead of:
{"parse_tree":
{"rule":"hello", "start": 0, "line": 1, "column": 1, "children": [
{"terminal": "<", "slotname": "open", "slotnum": 0, "byte_offset": 0,
"line": 1, "column": 1, "len": 1, "text": "<"},
{"terminal": "A", "slotname": "value", "slotnum": 1, "byte_offset": 1,
"line": 1, "column": 2, "len": 1, "text": "a"},
{"terminal": ">", "slotname": "close", "slotnum": 2, "byte_offset": 2,
"line": 1, "column": 3, "len": 1, "text": ">"}
], "len": 3}
}
Please do note : {"terminal": "A", "slotname": "value"
The slot name "value" is not taken into account.
Jan 31, 2009
Project Member
#1
jhaber...@gmail.com
Labels:
FixTarget-0.5
Jan 31, 2009
(No comment was entered for this change.)
Status:
Accepted
Owner: jhaberman |