[ { "cmd": "#", "line": 1, "x": { "comment": " Addresses" } }, { "a1": { "addr_number": 11, "addr_type": 3 }, "cmd": "p", "line": 2 }, { "a1": { "addr_number": 21, "addr_type": 3 }, "a2": { "addr_number": 22, "addr_type": 3 }, "cmd": "p", "line": 3 }, { "a1": { "addr_number": 31, "addr_step": 32, "addr_type": 4 }, "cmd": "p", "line": 4 }, { "a1": { "addr_number": 41, "addr_type": 3 }, "a2": { "addr_number": 0, "addr_step": 42, "addr_type": 6 }, "cmd": "p", "line": 5 }, { "a1": { "addr_number": 51, "addr_type": 3 }, "a2": { "addr_number": 0, "addr_step": 52, "addr_type": 5 }, "cmd": "p", "line": 6 }, { "a1": { "addr_type": 7 }, "cmd": "p", "line": 7 }, { "a1": { "addr_regex": { "pattern": "regex-without-flags", "slash": "/" }, "addr_type": 2 }, "cmd": "p", "line": 8 }, { "a1": { "addr_regex": { "flags": "IM", "pattern": "regex-with-flags", "slash": "/" }, "addr_type": 2 }, "cmd": "p", "line": 9 }, { "a1": { "addr_regex": { "slash": "/" }, "addr_type": 2 }, "cmd": "p", "line": 10 }, { "cmd": "\n", "line": 11 }, { "cmd": "#", "line": 12, "x": { "comment": " Bang to invert addresses" } }, { "a1": { "addr_type": 7 }, "addr_bang": true, "cmd": "p", "line": 13 }, { "cmd": "\n", "line": 14 }, { "cmd": "#", "line": 15, "x": { "comment": " Commands with no arguments" } }, { "cmd": "=", "line": 16 }, { "cmd": "b", "line": 17 }, { "cmd": "d", "line": 18 }, { "cmd": "D", "line": 19 }, { "cmd": "F", "line": 20 }, { "cmd": "g", "line": 21 }, { "cmd": "G", "line": 22 }, { "cmd": "h", "line": 23 }, { "cmd": "H", "line": 24 }, { "cmd": "l", "line": 25 }, { "cmd": "L", "line": 26 }, { "cmd": "n", "line": 27 }, { "cmd": "N", "line": 28 }, { "cmd": "p", "line": 29 }, { "cmd": "P", "line": 30 }, { "cmd": "q", "line": 31 }, { "cmd": "Q", "line": 32 }, { "cmd": "t", "line": 33 }, { "cmd": "T", "line": 34 }, { "cmd": "x", "line": 35 }, { "cmd": "z", "line": 36 }, { "cmd": "\n", "line": 37 }, { "cmd": "#", "line": 38, "x": { "comment": " Commands with numeric argument" } }, { "cmd": "q", "line": 39, "x": { "int_arg": 1 } }, { "cmd": "Q", "line": 40, "x": { "int_arg": 22 } }, { "cmd": "l", "line": 41, "x": { "int_arg": 333 } }, { "cmd": "L", "line": 42, "x": { "int_arg": 4444 } }, { "cmd": "\n", "line": 43 }, { "cmd": "#", "line": 44, "x": { "comment": " Commands with labels" } }, { "cmd": ":", "line": 45, "x": { "label_name": "label" } }, { "cmd": "b", "line": 46, "x": { "label_name": "label_b" } }, { "cmd": "t", "line": 47, "x": { "label_name": "label_t" } }, { "cmd": "T", "line": 48, "x": { "label_name": "label_T" } }, { "cmd": "\n", "line": 49 }, { "cmd": "#", "line": 50, "x": { "comment": " Command v (label-like)" } }, { "cmd": "v", "line": 51, "x": { "label_name": "4.2" } }, { "cmd": "\n", "line": 52 }, { "cmd": "#", "line": 53, "x": { "comment": " Commands with files" } }, { "cmd": "r", "line": 54, "x": { "fname": "file_r" } }, { "cmd": "R", "line": 55, "x": { "fname": "file_R" } }, { "cmd": "w", "line": 56, "x": { "fname": "file_w" } }, { "cmd": "W", "line": 57, "x": { "fname": "file_W" } }, { "cmd": "\n", "line": 58 }, { "cmd": "#", "line": 59, "x": { "comment": " Commands with text" } }, { "cmd": "a", "line": 60, "x": { "cmd_txt": { "text": [ "t", "e", "x", "t", "_", "a", "\n" ] } } }, { "cmd": "i", "line": 61, "x": { "cmd_txt": { "text": [ "t", "e", "x", "t", "_", "i", "\n" ] } } }, { "cmd": "c", "line": 63, "x": { "cmd_txt": { "text": [ "t", "e", "x", "t", "_", "c", "1", " ", "\\", "\n", "t", "e", "x", "t", "_", "c", "2", "\n" ] } } }, { "cmd": "\n", "line": 66 }, { "cmd": "#", "line": 67, "x": { "comment": " Command e (text-like)" } }, { "cmd": "e", "line": 68, "x": { "cmd_txt": { "text": [ "d", "a", "t", "e", "\n" ] } } }, { "cmd": "\n", "line": 69 }, { "cmd": "#", "line": 70, "x": { "comment": " Command y" } }, { "cmd": "y", "line": 71, "x": { "cmd_subst": { "regx": { "pattern": "abc", "slash": "/" }, "replacement": { "text": "123" } } } }, { "cmd": "y", "line": 72, "x": { "cmd_subst": { "regx": { "pattern": "abc", "slash": "@" }, "replacement": { "text": "123" } } } }, { "cmd": "\n", "line": 73 }, { "cmd": "#", "line": 74, "x": { "comment": " Command s" } }, { "cmd": "s", "line": 75, "x": { "cmd_subst": { "regx": { "slash": "/" } } } }, { "cmd": "s", "line": 76, "x": { "cmd_subst": { "regx": { "flags": "3", "slash": "|" } } } }, { "cmd": "s", "line": 77, "x": { "cmd_subst": { "outf": { "name": "filew" }, "regx": { "flags": "gipw", "pattern": "patt", "slash": "/" }, "replacement": { "text": "repl" } } } }, { "cmd": "\n", "line": 78 }, { "cmd": "#", "line": 79, "x": { "comment": " Blocks" } }, { "a1": { "addr_type": 7 }, "cmd": "{", "line": 80 }, { "cmd": "p", "line": 81 }, { "cmd": "}", "line": 82 } ]