Upload experiments v1, v2-models-effort, v2-tests-configuration as on disk 2026-11-11 (part 51)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- v2-models-effort/runs/20261027-114410-shrill-dew/ported_implementation/integration_tests/generated/iteration/grammars.json +0 -0
- v2-models-effort/runs/20261027-114410-shrill-dew/ported_implementation/integration_tests/generated/iteration/grammars_test.py +23 -0
- v2-models-effort/runs/20261027-114410-shrill-dew/ported_implementation/integration_tests/generated/iteration/iteration.json +322 -0
- v2-models-effort/runs/20261027-114410-shrill-dew/ported_implementation/integration_tests/generated/iteration/iteration_test.py +15 -0
- v2-models-effort/runs/20261027-114410-shrill-dew/ported_implementation/integration_tests/generated/iteration/iteration_with_additional_strings.json +776 -0
- v2-models-effort/runs/20261027-114410-shrill-dew/ported_implementation/integration_tests/generated/iteration/iteration_with_additional_strings_test.py +39 -0
- v2-models-effort/runs/20261027-114410-shrill-dew/ported_implementation/integration_tests/generated/iteration/iteration_with_additional_strings_throws.json +267 -0
- v2-models-effort/runs/20261027-114410-shrill-dew/ported_implementation/integration_tests/generated/iteration/iteration_with_an_initial_string.json +1322 -0
- v2-models-effort/runs/20261027-114410-shrill-dew/ported_implementation/integration_tests/generated/iteration/iteration_with_an_initial_string_test.py +16 -0
- v2-models-effort/runs/20261027-114410-shrill-dew/ported_implementation/integration_tests/generated/validation/__pycache__/validate_grammar_test.cpython-314-pytest-9.1.1.pyc +0 -0
- v2-models-effort/runs/20261027-114410-shrill-dew/ported_implementation/integration_tests/generated/validation/__pycache__/validate_input_test.cpython-314-pytest-9.1.1.pyc +0 -0
- v2-models-effort/runs/20261027-114410-shrill-dew/ported_implementation/integration_tests/generated/validation/validate_grammar_invalid.json +42 -0
- v2-models-effort/runs/20261027-114410-shrill-dew/ported_implementation/integration_tests/generated/validation/validate_grammar_test.py +22 -0
- v2-models-effort/runs/20261027-114410-shrill-dew/ported_implementation/integration_tests/generated/validation/validate_grammar_valid.json +20 -0
- v2-models-effort/runs/20261027-114410-shrill-dew/ported_implementation/integration_tests/generated/validation/validate_input_invalid.json +337 -0
- v2-models-effort/runs/20261027-114410-shrill-dew/ported_implementation/integration_tests/generated/validation/validate_input_test.py +24 -0
- v2-models-effort/runs/20261027-114410-shrill-dew/ported_implementation/integration_tests/generated/validation/validate_input_valid.json +6 -0
- v2-models-effort/runs/20261027-114410-shrill-dew/ported_implementation/pyproject.toml +20 -0
- v2-models-effort/runs/20261027-114410-shrill-dew/proxy.log +12 -0
- v2-models-effort/runs/20261027-114410-shrill-dew/run.json +20 -0
- v2-models-effort/runs/20261027-114410-shrill-dew/stderr.log +36 -0
- v2-models-effort/runs/20261027-114410-shrill-dew/stderr.txt +0 -0
- v2-models-effort/runs/20261027-114410-shrill-dew/stdout.log +1 -0
- v2-models-effort/runs/20261027-114410-shrill-dew/transcript/.claude/projects/-target/47303612-8244-4a5d-b2c2-3a59c49f7dd5.jsonl +0 -0
- v2-models-effort/runs/20261027-114410-still-sound/credentials.log +38 -0
- v2-models-effort/runs/20261027-114410-still-sound/manifest.json +105 -0
- v2-models-effort/runs/20261027-114410-still-sound/memory.jsonl +240 -0
- v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/.gitignore +6 -0
- v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/.pytest_cache/.gitignore +2 -0
- v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/.pytest_cache/CACHEDIR.TAG +4 -0
- v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/.pytest_cache/README.md +8 -0
- v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/.pytest_cache/v/cache/lastfailed +4 -0
- v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/.pytest_cache/v/cache/nodeids +0 -0
- v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/__pycache__/conftest.cpython-314-pytest-9.1.1.pyc +0 -0
- v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/conftest.py +1 -0
- v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/gbnf/__init__.py +27 -0
- v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/gbnf/__pycache__/__init__.cpython-314.pyc +0 -0
- v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/gbnf/__pycache__/gbnf.cpython-314.pyc +0 -0
- v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/gbnf/gbnf.py +26 -0
- v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/gbnf/grammar_graph/__init__.py +3 -0
- v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/gbnf/grammar_graph/__pycache__/__init__.cpython-314.pyc +0 -0
- v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/gbnf/grammar_graph/__pycache__/colorize.cpython-314.pyc +0 -0
- v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/gbnf/grammar_graph/__pycache__/generic_set.cpython-314.pyc +0 -0
- v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/gbnf/grammar_graph/__pycache__/get_input_as_code_points.cpython-314.pyc +0 -0
- v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/gbnf/grammar_graph/__pycache__/get_parent_stack_id.cpython-314.pyc +0 -0
- v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/gbnf/grammar_graph/__pycache__/get_serialized_rule_key.cpython-314.pyc +0 -0
- v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/gbnf/grammar_graph/__pycache__/graph.cpython-314.pyc +0 -0
- v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/gbnf/grammar_graph/__pycache__/graph_node.cpython-314.pyc +0 -0
- v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/gbnf/grammar_graph/__pycache__/graph_pointer.cpython-314.pyc +0 -0
- v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/gbnf/grammar_graph/__pycache__/parse_state.cpython-314.pyc +0 -0
v2-models-effort/runs/20261027-114410-shrill-dew/ported_implementation/integration_tests/generated/iteration/grammars.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
v2-models-effort/runs/20261027-114410-shrill-dew/ported_implementation/integration_tests/generated/iteration/grammars_test.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import json
|
| 2 |
+
from pathlib import Path
|
| 3 |
+
|
| 4 |
+
import pytest
|
| 5 |
+
|
| 6 |
+
from gbnf import GBNF
|
| 7 |
+
|
| 8 |
+
CASES = json.loads((Path(__file__).parent / 'grammars.json').read_text(encoding='utf-8'))
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
def unescape(str_: str) -> str:
|
| 12 |
+
return str_.replace('\\n', '\n').replace('\\t', '\t')
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
def describe_grammars():
|
| 16 |
+
@pytest.mark.parametrize('name, test_case, grammar', CASES)
|
| 17 |
+
def it_parses_a_known_valid_grammar(name, test_case, grammar):
|
| 18 |
+
test_case = unescape(test_case)
|
| 19 |
+
|
| 20 |
+
state = GBNF(unescape(grammar))
|
| 21 |
+
|
| 22 |
+
for char in test_case:
|
| 23 |
+
state = state.add(char)
|
v2-models-effort/runs/20261027-114410-shrill-dew/ported_implementation/integration_tests/generated/iteration/iteration.json
ADDED
|
@@ -0,0 +1,322 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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29 |
+
],
|
| 30 |
+
[
|
| 31 |
+
"root ::= \"foo\" | \"bar\" | \"gaz\"",
|
| 32 |
+
[
|
| 33 |
+
{
|
| 34 |
+
"type": "char",
|
| 35 |
+
"value": [
|
| 36 |
+
102
|
| 37 |
+
]
|
| 38 |
+
},
|
| 39 |
+
{
|
| 40 |
+
"type": "char",
|
| 41 |
+
"value": [
|
| 42 |
+
98
|
| 43 |
+
]
|
| 44 |
+
},
|
| 45 |
+
{
|
| 46 |
+
"type": "char",
|
| 47 |
+
"value": [
|
| 48 |
+
103
|
| 49 |
+
]
|
| 50 |
+
}
|
| 51 |
+
]
|
| 52 |
+
],
|
| 53 |
+
[
|
| 54 |
+
"root ::= \"foo\" | \"bar\" | \"baz\"",
|
| 55 |
+
[
|
| 56 |
+
{
|
| 57 |
+
"type": "char",
|
| 58 |
+
"value": [
|
| 59 |
+
102
|
| 60 |
+
]
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
"type": "char",
|
| 64 |
+
"value": [
|
| 65 |
+
98
|
| 66 |
+
]
|
| 67 |
+
}
|
| 68 |
+
]
|
| 69 |
+
],
|
| 70 |
+
[
|
| 71 |
+
"root ::= [^x]",
|
| 72 |
+
[
|
| 73 |
+
{
|
| 74 |
+
"type": "char_exclude",
|
| 75 |
+
"value": [
|
| 76 |
+
120
|
| 77 |
+
]
|
| 78 |
+
}
|
| 79 |
+
]
|
| 80 |
+
],
|
| 81 |
+
[
|
| 82 |
+
"root ::= [^f] \"o\"",
|
| 83 |
+
[
|
| 84 |
+
{
|
| 85 |
+
"type": "char_exclude",
|
| 86 |
+
"value": [
|
| 87 |
+
102
|
| 88 |
+
]
|
| 89 |
+
}
|
| 90 |
+
]
|
| 91 |
+
],
|
| 92 |
+
[
|
| 93 |
+
"root ::= [^A-Z]",
|
| 94 |
+
[
|
| 95 |
+
{
|
| 96 |
+
"type": "char_exclude",
|
| 97 |
+
"value": [
|
| 98 |
+
[
|
| 99 |
+
65,
|
| 100 |
+
90
|
| 101 |
+
]
|
| 102 |
+
]
|
| 103 |
+
}
|
| 104 |
+
]
|
| 105 |
+
],
|
| 106 |
+
[
|
| 107 |
+
"root ::= [^A-Z0-9]",
|
| 108 |
+
[
|
| 109 |
+
{
|
| 110 |
+
"type": "char_exclude",
|
| 111 |
+
"value": [
|
| 112 |
+
[
|
| 113 |
+
65,
|
| 114 |
+
90
|
| 115 |
+
],
|
| 116 |
+
[
|
| 117 |
+
48,
|
| 118 |
+
57
|
| 119 |
+
]
|
| 120 |
+
]
|
| 121 |
+
}
|
| 122 |
+
]
|
| 123 |
+
],
|
| 124 |
+
[
|
| 125 |
+
"root ::= [^A-Z0-9_-]",
|
| 126 |
+
[
|
| 127 |
+
{
|
| 128 |
+
"type": "char_exclude",
|
| 129 |
+
"value": [
|
| 130 |
+
[
|
| 131 |
+
65,
|
| 132 |
+
90
|
| 133 |
+
],
|
| 134 |
+
[
|
| 135 |
+
48,
|
| 136 |
+
57
|
| 137 |
+
],
|
| 138 |
+
95,
|
| 139 |
+
45
|
| 140 |
+
]
|
| 141 |
+
}
|
| 142 |
+
]
|
| 143 |
+
],
|
| 144 |
+
[
|
| 145 |
+
"\nroot ::= foo\nfoo ::= \"foo\"\n ",
|
| 146 |
+
[
|
| 147 |
+
{
|
| 148 |
+
"type": "char",
|
| 149 |
+
"value": [
|
| 150 |
+
102
|
| 151 |
+
]
|
| 152 |
+
}
|
| 153 |
+
]
|
| 154 |
+
],
|
| 155 |
+
[
|
| 156 |
+
"\nroot ::= f\nf ::= foo\nfoo ::= \"foo\"\n ",
|
| 157 |
+
[
|
| 158 |
+
{
|
| 159 |
+
"type": "char",
|
| 160 |
+
"value": [
|
| 161 |
+
102
|
| 162 |
+
]
|
| 163 |
+
}
|
| 164 |
+
]
|
| 165 |
+
],
|
| 166 |
+
[
|
| 167 |
+
"\nroot ::= foo | \"bar\"\nfoo ::= \"foo\"",
|
| 168 |
+
[
|
| 169 |
+
{
|
| 170 |
+
"type": "char",
|
| 171 |
+
"value": [
|
| 172 |
+
102
|
| 173 |
+
]
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"type": "char",
|
| 177 |
+
"value": [
|
| 178 |
+
98
|
| 179 |
+
]
|
| 180 |
+
}
|
| 181 |
+
]
|
| 182 |
+
],
|
| 183 |
+
[
|
| 184 |
+
"\nroot ::= foo | bar\nfoo ::= \"foo\"\nbar ::= \"bar\"\n ",
|
| 185 |
+
[
|
| 186 |
+
{
|
| 187 |
+
"type": "char",
|
| 188 |
+
"value": [
|
| 189 |
+
102
|
| 190 |
+
]
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"type": "char",
|
| 194 |
+
"value": [
|
| 195 |
+
98
|
| 196 |
+
]
|
| 197 |
+
}
|
| 198 |
+
]
|
| 199 |
+
],
|
| 200 |
+
[
|
| 201 |
+
"\nroot ::= f | b\nf ::= fo\nb ::= ba\nfo ::= foo\nba ::= bar | baz\nfoo ::= \"foo\"\nbar ::= \"bar\"\nbaz ::= \"baz\"\n ",
|
| 202 |
+
[
|
| 203 |
+
{
|
| 204 |
+
"type": "char",
|
| 205 |
+
"value": [
|
| 206 |
+
102
|
| 207 |
+
]
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"type": "char",
|
| 211 |
+
"value": [
|
| 212 |
+
98
|
| 213 |
+
]
|
| 214 |
+
}
|
| 215 |
+
]
|
| 216 |
+
],
|
| 217 |
+
[
|
| 218 |
+
"root ::= [a-z]",
|
| 219 |
+
[
|
| 220 |
+
{
|
| 221 |
+
"type": "char",
|
| 222 |
+
"value": [
|
| 223 |
+
[
|
| 224 |
+
97,
|
| 225 |
+
122
|
| 226 |
+
]
|
| 227 |
+
]
|
| 228 |
+
}
|
| 229 |
+
]
|
| 230 |
+
],
|
| 231 |
+
[
|
| 232 |
+
"root ::= [a-zA-Z]",
|
| 233 |
+
[
|
| 234 |
+
{
|
| 235 |
+
"type": "char",
|
| 236 |
+
"value": [
|
| 237 |
+
[
|
| 238 |
+
97,
|
| 239 |
+
122
|
| 240 |
+
],
|
| 241 |
+
[
|
| 242 |
+
65,
|
| 243 |
+
90
|
| 244 |
+
]
|
| 245 |
+
]
|
| 246 |
+
}
|
| 247 |
+
]
|
| 248 |
+
],
|
| 249 |
+
[
|
| 250 |
+
"root ::= [a-z]?",
|
| 251 |
+
[
|
| 252 |
+
{
|
| 253 |
+
"type": "char",
|
| 254 |
+
"value": [
|
| 255 |
+
[
|
| 256 |
+
97,
|
| 257 |
+
122
|
| 258 |
+
]
|
| 259 |
+
]
|
| 260 |
+
},
|
| 261 |
+
{
|
| 262 |
+
"type": "end"
|
| 263 |
+
}
|
| 264 |
+
]
|
| 265 |
+
],
|
| 266 |
+
[
|
| 267 |
+
"root ::= [a-z]+",
|
| 268 |
+
[
|
| 269 |
+
{
|
| 270 |
+
"type": "char",
|
| 271 |
+
"value": [
|
| 272 |
+
[
|
| 273 |
+
97,
|
| 274 |
+
122
|
| 275 |
+
]
|
| 276 |
+
]
|
| 277 |
+
}
|
| 278 |
+
]
|
| 279 |
+
],
|
| 280 |
+
[
|
| 281 |
+
"root ::= [a-z]*",
|
| 282 |
+
[
|
| 283 |
+
{
|
| 284 |
+
"type": "char",
|
| 285 |
+
"value": [
|
| 286 |
+
[
|
| 287 |
+
97,
|
| 288 |
+
122
|
| 289 |
+
]
|
| 290 |
+
]
|
| 291 |
+
},
|
| 292 |
+
{
|
| 293 |
+
"type": "end"
|
| 294 |
+
}
|
| 295 |
+
]
|
| 296 |
+
],
|
| 297 |
+
[
|
| 298 |
+
"\n root ::= \"foo\"\n foo ::= \"foo\"",
|
| 299 |
+
[
|
| 300 |
+
{
|
| 301 |
+
"type": "char",
|
| 302 |
+
"value": [
|
| 303 |
+
102
|
| 304 |
+
]
|
| 305 |
+
}
|
| 306 |
+
]
|
| 307 |
+
],
|
| 308 |
+
[
|
| 309 |
+
"\n root ::= (expr \"=\" term \"\\n\")+\n expr ::= term ([-+*/] term)*\n term ::= [0-9]+\n ",
|
| 310 |
+
[
|
| 311 |
+
{
|
| 312 |
+
"type": "char",
|
| 313 |
+
"value": [
|
| 314 |
+
[
|
| 315 |
+
48,
|
| 316 |
+
57
|
| 317 |
+
]
|
| 318 |
+
]
|
| 319 |
+
}
|
| 320 |
+
]
|
| 321 |
+
]
|
| 322 |
+
]
|
v2-models-effort/runs/20261027-114410-shrill-dew/ported_implementation/integration_tests/generated/iteration/iteration_test.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import json
|
| 2 |
+
from pathlib import Path
|
| 3 |
+
|
| 4 |
+
import pytest
|
| 5 |
+
|
| 6 |
+
from gbnf import GBNF
|
| 7 |
+
|
| 8 |
+
CASES = json.loads((Path(__file__).parent / 'iteration.json').read_text(encoding='utf-8'))
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
def describe_iteration():
|
| 12 |
+
@pytest.mark.parametrize('grammar, expected', CASES)
|
| 13 |
+
def it_returns_parse_state_for_a_grammar(grammar, expected):
|
| 14 |
+
state = GBNF(grammar)
|
| 15 |
+
assert list(state) == expected
|
v2-models-effort/runs/20261027-114410-shrill-dew/ported_implementation/integration_tests/generated/iteration/iteration_with_additional_strings.json
ADDED
|
@@ -0,0 +1,776 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
[
|
| 3 |
+
"root ::= \"foo\"",
|
| 4 |
+
"",
|
| 5 |
+
"f",
|
| 6 |
+
[
|
| 7 |
+
{
|
| 8 |
+
"type": "char",
|
| 9 |
+
"value": [
|
| 10 |
+
111
|
| 11 |
+
]
|
| 12 |
+
}
|
| 13 |
+
]
|
| 14 |
+
],
|
| 15 |
+
[
|
| 16 |
+
"root ::= \"foo\"",
|
| 17 |
+
"f",
|
| 18 |
+
"o",
|
| 19 |
+
[
|
| 20 |
+
{
|
| 21 |
+
"type": "char",
|
| 22 |
+
"value": [
|
| 23 |
+
111
|
| 24 |
+
]
|
| 25 |
+
}
|
| 26 |
+
]
|
| 27 |
+
],
|
| 28 |
+
[
|
| 29 |
+
"root ::= \"foo\"",
|
| 30 |
+
"fo",
|
| 31 |
+
"o",
|
| 32 |
+
[
|
| 33 |
+
{
|
| 34 |
+
"type": "end"
|
| 35 |
+
}
|
| 36 |
+
]
|
| 37 |
+
],
|
| 38 |
+
[
|
| 39 |
+
"root ::= \"foo\" | \"bar\" ",
|
| 40 |
+
"",
|
| 41 |
+
"f",
|
| 42 |
+
[
|
| 43 |
+
{
|
| 44 |
+
"type": "char",
|
| 45 |
+
"value": [
|
| 46 |
+
111
|
| 47 |
+
]
|
| 48 |
+
}
|
| 49 |
+
]
|
| 50 |
+
],
|
| 51 |
+
[
|
| 52 |
+
"root ::= \"foo\" | \"bar\" ",
|
| 53 |
+
"f",
|
| 54 |
+
"o",
|
| 55 |
+
[
|
| 56 |
+
{
|
| 57 |
+
"type": "char",
|
| 58 |
+
"value": [
|
| 59 |
+
111
|
| 60 |
+
]
|
| 61 |
+
}
|
| 62 |
+
]
|
| 63 |
+
],
|
| 64 |
+
[
|
| 65 |
+
"root ::= \"foo\" | \"bar\" ",
|
| 66 |
+
"fo",
|
| 67 |
+
"o",
|
| 68 |
+
[
|
| 69 |
+
{
|
| 70 |
+
"type": "end"
|
| 71 |
+
}
|
| 72 |
+
]
|
| 73 |
+
],
|
| 74 |
+
[
|
| 75 |
+
"root ::= \"foo\" | \"bar\" ",
|
| 76 |
+
"",
|
| 77 |
+
"b",
|
| 78 |
+
[
|
| 79 |
+
{
|
| 80 |
+
"type": "char",
|
| 81 |
+
"value": [
|
| 82 |
+
97
|
| 83 |
+
]
|
| 84 |
+
}
|
| 85 |
+
]
|
| 86 |
+
],
|
| 87 |
+
[
|
| 88 |
+
"root ::= \"foo\" | \"bar\" ",
|
| 89 |
+
"b",
|
| 90 |
+
"a",
|
| 91 |
+
[
|
| 92 |
+
{
|
| 93 |
+
"type": "char",
|
| 94 |
+
"value": [
|
| 95 |
+
114
|
| 96 |
+
]
|
| 97 |
+
}
|
| 98 |
+
]
|
| 99 |
+
],
|
| 100 |
+
[
|
| 101 |
+
"root ::= \"foo\" | \"bar\" ",
|
| 102 |
+
"ba",
|
| 103 |
+
"r",
|
| 104 |
+
[
|
| 105 |
+
{
|
| 106 |
+
"type": "end"
|
| 107 |
+
}
|
| 108 |
+
]
|
| 109 |
+
],
|
| 110 |
+
[
|
| 111 |
+
"root ::= \"foo\" | \"bar\" | \"baz\"",
|
| 112 |
+
"b",
|
| 113 |
+
"a",
|
| 114 |
+
[
|
| 115 |
+
{
|
| 116 |
+
"type": "char",
|
| 117 |
+
"value": [
|
| 118 |
+
114
|
| 119 |
+
]
|
| 120 |
+
},
|
| 121 |
+
{
|
| 122 |
+
"type": "char",
|
| 123 |
+
"value": [
|
| 124 |
+
122
|
| 125 |
+
]
|
| 126 |
+
}
|
| 127 |
+
]
|
| 128 |
+
],
|
| 129 |
+
[
|
| 130 |
+
"root ::= [^f] \"o\"",
|
| 131 |
+
"g",
|
| 132 |
+
"o",
|
| 133 |
+
[
|
| 134 |
+
{
|
| 135 |
+
"type": "end"
|
| 136 |
+
}
|
| 137 |
+
]
|
| 138 |
+
],
|
| 139 |
+
[
|
| 140 |
+
"root ::= [^A-Z]",
|
| 141 |
+
"",
|
| 142 |
+
"a",
|
| 143 |
+
[
|
| 144 |
+
{
|
| 145 |
+
"type": "end"
|
| 146 |
+
}
|
| 147 |
+
]
|
| 148 |
+
],
|
| 149 |
+
[
|
| 150 |
+
"root ::= [^A-Z0-9]",
|
| 151 |
+
"",
|
| 152 |
+
"a",
|
| 153 |
+
[
|
| 154 |
+
{
|
| 155 |
+
"type": "end"
|
| 156 |
+
}
|
| 157 |
+
]
|
| 158 |
+
],
|
| 159 |
+
[
|
| 160 |
+
"root ::= [^A-Z0-9_-]",
|
| 161 |
+
"",
|
| 162 |
+
"a",
|
| 163 |
+
[
|
| 164 |
+
{
|
| 165 |
+
"type": "end"
|
| 166 |
+
}
|
| 167 |
+
]
|
| 168 |
+
],
|
| 169 |
+
[
|
| 170 |
+
"root ::= foo\nfoo ::= \"foo\"",
|
| 171 |
+
"",
|
| 172 |
+
"f",
|
| 173 |
+
[
|
| 174 |
+
{
|
| 175 |
+
"type": "char",
|
| 176 |
+
"value": [
|
| 177 |
+
111
|
| 178 |
+
]
|
| 179 |
+
}
|
| 180 |
+
]
|
| 181 |
+
],
|
| 182 |
+
[
|
| 183 |
+
"root ::= foo\nfoo ::= \"foo\"",
|
| 184 |
+
"f",
|
| 185 |
+
"o",
|
| 186 |
+
[
|
| 187 |
+
{
|
| 188 |
+
"type": "char",
|
| 189 |
+
"value": [
|
| 190 |
+
111
|
| 191 |
+
]
|
| 192 |
+
}
|
| 193 |
+
]
|
| 194 |
+
],
|
| 195 |
+
[
|
| 196 |
+
"root ::= foo\nfoo ::= \"foo\"",
|
| 197 |
+
"fo",
|
| 198 |
+
"o",
|
| 199 |
+
[
|
| 200 |
+
{
|
| 201 |
+
"type": "end"
|
| 202 |
+
}
|
| 203 |
+
]
|
| 204 |
+
],
|
| 205 |
+
[
|
| 206 |
+
"root ::= foo | \"bar\"\nfoo ::= \"foo\"",
|
| 207 |
+
"",
|
| 208 |
+
"f",
|
| 209 |
+
[
|
| 210 |
+
{
|
| 211 |
+
"type": "char",
|
| 212 |
+
"value": [
|
| 213 |
+
111
|
| 214 |
+
]
|
| 215 |
+
}
|
| 216 |
+
]
|
| 217 |
+
],
|
| 218 |
+
[
|
| 219 |
+
"root ::= foo | \"bar\"\nfoo ::= \"foo\"",
|
| 220 |
+
"f",
|
| 221 |
+
"o",
|
| 222 |
+
[
|
| 223 |
+
{
|
| 224 |
+
"type": "char",
|
| 225 |
+
"value": [
|
| 226 |
+
111
|
| 227 |
+
]
|
| 228 |
+
}
|
| 229 |
+
]
|
| 230 |
+
],
|
| 231 |
+
[
|
| 232 |
+
"root ::= foo | \"bar\"\nfoo ::= \"foo\"",
|
| 233 |
+
"fo",
|
| 234 |
+
"o",
|
| 235 |
+
[
|
| 236 |
+
{
|
| 237 |
+
"type": "end"
|
| 238 |
+
}
|
| 239 |
+
]
|
| 240 |
+
],
|
| 241 |
+
[
|
| 242 |
+
"root ::= foo | \"bar\"\nfoo ::= \"foo\"",
|
| 243 |
+
"",
|
| 244 |
+
"b",
|
| 245 |
+
[
|
| 246 |
+
{
|
| 247 |
+
"type": "char",
|
| 248 |
+
"value": [
|
| 249 |
+
97
|
| 250 |
+
]
|
| 251 |
+
}
|
| 252 |
+
]
|
| 253 |
+
],
|
| 254 |
+
[
|
| 255 |
+
"root ::= foo | \"bar\"\nfoo ::= \"foo\"",
|
| 256 |
+
"b",
|
| 257 |
+
"a",
|
| 258 |
+
[
|
| 259 |
+
{
|
| 260 |
+
"type": "char",
|
| 261 |
+
"value": [
|
| 262 |
+
114
|
| 263 |
+
]
|
| 264 |
+
}
|
| 265 |
+
]
|
| 266 |
+
],
|
| 267 |
+
[
|
| 268 |
+
"root ::= foo | \"bar\"\nfoo ::= \"foo\"",
|
| 269 |
+
"ba",
|
| 270 |
+
"r",
|
| 271 |
+
[
|
| 272 |
+
{
|
| 273 |
+
"type": "end"
|
| 274 |
+
}
|
| 275 |
+
]
|
| 276 |
+
],
|
| 277 |
+
[
|
| 278 |
+
"root ::= foo | bar\nfoo ::= \"foo\"\nbar ::= \"bar\"",
|
| 279 |
+
"",
|
| 280 |
+
"f",
|
| 281 |
+
[
|
| 282 |
+
{
|
| 283 |
+
"type": "char",
|
| 284 |
+
"value": [
|
| 285 |
+
111
|
| 286 |
+
]
|
| 287 |
+
}
|
| 288 |
+
]
|
| 289 |
+
],
|
| 290 |
+
[
|
| 291 |
+
"\nroot ::= foo | bar\nfoo ::= \"foo\"\nbar ::= \"bar\"",
|
| 292 |
+
"f",
|
| 293 |
+
"o",
|
| 294 |
+
[
|
| 295 |
+
{
|
| 296 |
+
"type": "char",
|
| 297 |
+
"value": [
|
| 298 |
+
111
|
| 299 |
+
]
|
| 300 |
+
}
|
| 301 |
+
]
|
| 302 |
+
],
|
| 303 |
+
[
|
| 304 |
+
"\nroot ::= foo | bar\nfoo ::= \"foo\"\nbar ::= \"bar\"",
|
| 305 |
+
"fo",
|
| 306 |
+
"o",
|
| 307 |
+
[
|
| 308 |
+
{
|
| 309 |
+
"type": "end"
|
| 310 |
+
}
|
| 311 |
+
]
|
| 312 |
+
],
|
| 313 |
+
[
|
| 314 |
+
"root ::= foo | bar\nfoo ::= \"foo\"\nbar ::= \"bar\"",
|
| 315 |
+
"",
|
| 316 |
+
"b",
|
| 317 |
+
[
|
| 318 |
+
{
|
| 319 |
+
"type": "char",
|
| 320 |
+
"value": [
|
| 321 |
+
97
|
| 322 |
+
]
|
| 323 |
+
}
|
| 324 |
+
]
|
| 325 |
+
],
|
| 326 |
+
[
|
| 327 |
+
"root ::= foo | bar\nfoo ::= \"foo\"\nbar ::= \"bar\"",
|
| 328 |
+
"b",
|
| 329 |
+
"a",
|
| 330 |
+
[
|
| 331 |
+
{
|
| 332 |
+
"type": "char",
|
| 333 |
+
"value": [
|
| 334 |
+
114
|
| 335 |
+
]
|
| 336 |
+
}
|
| 337 |
+
]
|
| 338 |
+
],
|
| 339 |
+
[
|
| 340 |
+
"root ::= foo | bar\nfoo ::= \"foo\"\nbar ::= \"bar\"",
|
| 341 |
+
"ba",
|
| 342 |
+
"r",
|
| 343 |
+
[
|
| 344 |
+
{
|
| 345 |
+
"type": "end"
|
| 346 |
+
}
|
| 347 |
+
]
|
| 348 |
+
],
|
| 349 |
+
[
|
| 350 |
+
"\nroot ::= f | b\nf ::= fo\nb ::= ba\nfo ::= foo\nba ::= bar | baz\nfoo ::= \"foo\"\nbar ::= \"bar\"\nbaz ::= \"baz\"",
|
| 351 |
+
"",
|
| 352 |
+
"f",
|
| 353 |
+
[
|
| 354 |
+
{
|
| 355 |
+
"type": "char",
|
| 356 |
+
"value": [
|
| 357 |
+
111
|
| 358 |
+
]
|
| 359 |
+
}
|
| 360 |
+
]
|
| 361 |
+
],
|
| 362 |
+
[
|
| 363 |
+
"root ::= f | b\nf ::= fo\nb ::= ba\nfo ::= foo\nba ::= bar | baz\nfoo ::= \"foo\"\nbar ::= \"bar\"\nbaz ::= \"baz\"",
|
| 364 |
+
"f",
|
| 365 |
+
"o",
|
| 366 |
+
[
|
| 367 |
+
{
|
| 368 |
+
"type": "char",
|
| 369 |
+
"value": [
|
| 370 |
+
111
|
| 371 |
+
]
|
| 372 |
+
}
|
| 373 |
+
]
|
| 374 |
+
],
|
| 375 |
+
[
|
| 376 |
+
"root ::= f | b\nf ::= fo\nb ::= ba\nfo ::= foo\nba ::= bar | baz\nfoo ::= \"foo\"\nbar ::= \"bar\"\nbaz ::= \"baz\"",
|
| 377 |
+
"fo",
|
| 378 |
+
"o",
|
| 379 |
+
[
|
| 380 |
+
{
|
| 381 |
+
"type": "end"
|
| 382 |
+
}
|
| 383 |
+
]
|
| 384 |
+
],
|
| 385 |
+
[
|
| 386 |
+
"root ::= f | b\nf ::= fo\nb ::= ba\nfo ::= foo\nba ::= bar | baz\nfoo ::= \"foo\"\nbar ::= \"bar\"\nbaz ::= \"baz\"",
|
| 387 |
+
"",
|
| 388 |
+
"b",
|
| 389 |
+
[
|
| 390 |
+
{
|
| 391 |
+
"type": "char",
|
| 392 |
+
"value": [
|
| 393 |
+
97
|
| 394 |
+
]
|
| 395 |
+
}
|
| 396 |
+
]
|
| 397 |
+
],
|
| 398 |
+
[
|
| 399 |
+
"\nroot ::= f | b\nf ::= fo\nb ::= ba\nfo ::= foo\nba ::= bar | baz\nfoo ::= \"foo\"\nbar ::= \"bar\"\nbaz ::= \"baz\"",
|
| 400 |
+
"b",
|
| 401 |
+
"a",
|
| 402 |
+
[
|
| 403 |
+
{
|
| 404 |
+
"type": "char",
|
| 405 |
+
"value": [
|
| 406 |
+
114
|
| 407 |
+
]
|
| 408 |
+
},
|
| 409 |
+
{
|
| 410 |
+
"type": "char",
|
| 411 |
+
"value": [
|
| 412 |
+
122
|
| 413 |
+
]
|
| 414 |
+
}
|
| 415 |
+
]
|
| 416 |
+
],
|
| 417 |
+
[
|
| 418 |
+
"\nroot ::= f | b\nf ::= fo\nb ::= ba\nfo ::= foo\nba ::= bar | baz\nfoo ::= \"foo\"\nbar ::= \"bar\"\nbaz ::= \"baz\"",
|
| 419 |
+
"ba",
|
| 420 |
+
"r",
|
| 421 |
+
[
|
| 422 |
+
{
|
| 423 |
+
"type": "end"
|
| 424 |
+
}
|
| 425 |
+
]
|
| 426 |
+
],
|
| 427 |
+
[
|
| 428 |
+
"\nroot ::= f | b\nf ::= fo\nb ::= ba\nfo ::= foo\nba ::= bar | baz\nfoo ::= \"foo\"\nbar ::= \"bar\"\nbaz ::= \"baz\"",
|
| 429 |
+
"ba",
|
| 430 |
+
"z",
|
| 431 |
+
[
|
| 432 |
+
{
|
| 433 |
+
"type": "end"
|
| 434 |
+
}
|
| 435 |
+
]
|
| 436 |
+
],
|
| 437 |
+
[
|
| 438 |
+
"root ::= [a-z]",
|
| 439 |
+
"",
|
| 440 |
+
"a",
|
| 441 |
+
[
|
| 442 |
+
{
|
| 443 |
+
"type": "end"
|
| 444 |
+
}
|
| 445 |
+
]
|
| 446 |
+
],
|
| 447 |
+
[
|
| 448 |
+
"root ::= [a-z]",
|
| 449 |
+
"",
|
| 450 |
+
"m",
|
| 451 |
+
[
|
| 452 |
+
{
|
| 453 |
+
"type": "end"
|
| 454 |
+
}
|
| 455 |
+
]
|
| 456 |
+
],
|
| 457 |
+
[
|
| 458 |
+
"root ::= [a-z]",
|
| 459 |
+
"",
|
| 460 |
+
"z",
|
| 461 |
+
[
|
| 462 |
+
{
|
| 463 |
+
"type": "end"
|
| 464 |
+
}
|
| 465 |
+
]
|
| 466 |
+
],
|
| 467 |
+
[
|
| 468 |
+
"root ::= [a-zA-Z]",
|
| 469 |
+
"",
|
| 470 |
+
"a",
|
| 471 |
+
[
|
| 472 |
+
{
|
| 473 |
+
"type": "end"
|
| 474 |
+
}
|
| 475 |
+
]
|
| 476 |
+
],
|
| 477 |
+
[
|
| 478 |
+
"root ::= [a-zA-Z]",
|
| 479 |
+
"",
|
| 480 |
+
"Z",
|
| 481 |
+
[
|
| 482 |
+
{
|
| 483 |
+
"type": "end"
|
| 484 |
+
}
|
| 485 |
+
]
|
| 486 |
+
],
|
| 487 |
+
[
|
| 488 |
+
"root ::= [a-zA-Z0-9]",
|
| 489 |
+
"",
|
| 490 |
+
"Z",
|
| 491 |
+
[
|
| 492 |
+
{
|
| 493 |
+
"type": "end"
|
| 494 |
+
}
|
| 495 |
+
]
|
| 496 |
+
],
|
| 497 |
+
[
|
| 498 |
+
"root ::= [a-zA-Z0-9]",
|
| 499 |
+
"",
|
| 500 |
+
"0",
|
| 501 |
+
[
|
| 502 |
+
{
|
| 503 |
+
"type": "end"
|
| 504 |
+
}
|
| 505 |
+
]
|
| 506 |
+
],
|
| 507 |
+
[
|
| 508 |
+
"root ::= [a-zA-Z0-9]",
|
| 509 |
+
"",
|
| 510 |
+
"9",
|
| 511 |
+
[
|
| 512 |
+
{
|
| 513 |
+
"type": "end"
|
| 514 |
+
}
|
| 515 |
+
]
|
| 516 |
+
],
|
| 517 |
+
[
|
| 518 |
+
"root ::= [a-z]?",
|
| 519 |
+
"",
|
| 520 |
+
"a",
|
| 521 |
+
[
|
| 522 |
+
{
|
| 523 |
+
"type": "end"
|
| 524 |
+
}
|
| 525 |
+
]
|
| 526 |
+
],
|
| 527 |
+
[
|
| 528 |
+
"root ::= [a-zA-Z]?",
|
| 529 |
+
"",
|
| 530 |
+
"Z",
|
| 531 |
+
[
|
| 532 |
+
{
|
| 533 |
+
"type": "end"
|
| 534 |
+
}
|
| 535 |
+
]
|
| 536 |
+
],
|
| 537 |
+
[
|
| 538 |
+
"root ::= [a-zA-Z0-9]?",
|
| 539 |
+
"",
|
| 540 |
+
"0",
|
| 541 |
+
[
|
| 542 |
+
{
|
| 543 |
+
"type": "end"
|
| 544 |
+
}
|
| 545 |
+
]
|
| 546 |
+
],
|
| 547 |
+
[
|
| 548 |
+
"root ::= [a-z]+",
|
| 549 |
+
"",
|
| 550 |
+
"a",
|
| 551 |
+
[
|
| 552 |
+
{
|
| 553 |
+
"type": "char",
|
| 554 |
+
"value": [
|
| 555 |
+
[
|
| 556 |
+
97,
|
| 557 |
+
122
|
| 558 |
+
]
|
| 559 |
+
]
|
| 560 |
+
},
|
| 561 |
+
{
|
| 562 |
+
"type": "end"
|
| 563 |
+
}
|
| 564 |
+
]
|
| 565 |
+
],
|
| 566 |
+
[
|
| 567 |
+
"root ::= [a-zA-Z]+",
|
| 568 |
+
"",
|
| 569 |
+
"Z",
|
| 570 |
+
[
|
| 571 |
+
{
|
| 572 |
+
"type": "char",
|
| 573 |
+
"value": [
|
| 574 |
+
[
|
| 575 |
+
97,
|
| 576 |
+
122
|
| 577 |
+
],
|
| 578 |
+
[
|
| 579 |
+
65,
|
| 580 |
+
90
|
| 581 |
+
]
|
| 582 |
+
]
|
| 583 |
+
},
|
| 584 |
+
{
|
| 585 |
+
"type": "end"
|
| 586 |
+
}
|
| 587 |
+
]
|
| 588 |
+
],
|
| 589 |
+
[
|
| 590 |
+
"root ::= [a-zA-Z]+",
|
| 591 |
+
"azA",
|
| 592 |
+
"Z",
|
| 593 |
+
[
|
| 594 |
+
{
|
| 595 |
+
"type": "char",
|
| 596 |
+
"value": [
|
| 597 |
+
[
|
| 598 |
+
97,
|
| 599 |
+
122
|
| 600 |
+
],
|
| 601 |
+
[
|
| 602 |
+
65,
|
| 603 |
+
90
|
| 604 |
+
]
|
| 605 |
+
]
|
| 606 |
+
},
|
| 607 |
+
{
|
| 608 |
+
"type": "end"
|
| 609 |
+
}
|
| 610 |
+
]
|
| 611 |
+
],
|
| 612 |
+
[
|
| 613 |
+
"root ::= [a-z]*",
|
| 614 |
+
"",
|
| 615 |
+
"a",
|
| 616 |
+
[
|
| 617 |
+
{
|
| 618 |
+
"type": "char",
|
| 619 |
+
"value": [
|
| 620 |
+
[
|
| 621 |
+
97,
|
| 622 |
+
122
|
| 623 |
+
]
|
| 624 |
+
]
|
| 625 |
+
},
|
| 626 |
+
{
|
| 627 |
+
"type": "end"
|
| 628 |
+
}
|
| 629 |
+
]
|
| 630 |
+
],
|
| 631 |
+
[
|
| 632 |
+
"root ::= [a-zA-Z]+",
|
| 633 |
+
"",
|
| 634 |
+
"Z",
|
| 635 |
+
[
|
| 636 |
+
{
|
| 637 |
+
"type": "char",
|
| 638 |
+
"value": [
|
| 639 |
+
[
|
| 640 |
+
97,
|
| 641 |
+
122
|
| 642 |
+
],
|
| 643 |
+
[
|
| 644 |
+
65,
|
| 645 |
+
90
|
| 646 |
+
]
|
| 647 |
+
]
|
| 648 |
+
},
|
| 649 |
+
{
|
| 650 |
+
"type": "end"
|
| 651 |
+
}
|
| 652 |
+
]
|
| 653 |
+
],
|
| 654 |
+
[
|
| 655 |
+
"root ::= [a-zA-Z]+",
|
| 656 |
+
"acczABC",
|
| 657 |
+
"Z",
|
| 658 |
+
[
|
| 659 |
+
{
|
| 660 |
+
"type": "char",
|
| 661 |
+
"value": [
|
| 662 |
+
[
|
| 663 |
+
97,
|
| 664 |
+
122
|
| 665 |
+
],
|
| 666 |
+
[
|
| 667 |
+
65,
|
| 668 |
+
90
|
| 669 |
+
]
|
| 670 |
+
]
|
| 671 |
+
},
|
| 672 |
+
{
|
| 673 |
+
"type": "end"
|
| 674 |
+
}
|
| 675 |
+
]
|
| 676 |
+
],
|
| 677 |
+
[
|
| 678 |
+
"root ::= \"foo\" | \"bar\" | \"baz\" | \"bazaar\" | \"barrington\" ",
|
| 679 |
+
"baza",
|
| 680 |
+
"a",
|
| 681 |
+
[
|
| 682 |
+
{
|
| 683 |
+
"type": "char",
|
| 684 |
+
"value": [
|
| 685 |
+
114
|
| 686 |
+
]
|
| 687 |
+
}
|
| 688 |
+
]
|
| 689 |
+
],
|
| 690 |
+
[
|
| 691 |
+
"root ::= [^f]+ \"o\"",
|
| 692 |
+
"aaa",
|
| 693 |
+
"a",
|
| 694 |
+
[
|
| 695 |
+
{
|
| 696 |
+
"type": "char_exclude",
|
| 697 |
+
"value": [
|
| 698 |
+
102
|
| 699 |
+
]
|
| 700 |
+
},
|
| 701 |
+
{
|
| 702 |
+
"type": "char",
|
| 703 |
+
"value": [
|
| 704 |
+
111
|
| 705 |
+
]
|
| 706 |
+
}
|
| 707 |
+
]
|
| 708 |
+
],
|
| 709 |
+
[
|
| 710 |
+
"root ::= [^A-Z]+",
|
| 711 |
+
"abc",
|
| 712 |
+
"d",
|
| 713 |
+
[
|
| 714 |
+
{
|
| 715 |
+
"type": "char_exclude",
|
| 716 |
+
"value": [
|
| 717 |
+
[
|
| 718 |
+
65,
|
| 719 |
+
90
|
| 720 |
+
]
|
| 721 |
+
]
|
| 722 |
+
},
|
| 723 |
+
{
|
| 724 |
+
"type": "end"
|
| 725 |
+
}
|
| 726 |
+
]
|
| 727 |
+
],
|
| 728 |
+
[
|
| 729 |
+
"root ::= [^A-Z0-9]*",
|
| 730 |
+
"abc",
|
| 731 |
+
"d",
|
| 732 |
+
[
|
| 733 |
+
{
|
| 734 |
+
"type": "char_exclude",
|
| 735 |
+
"value": [
|
| 736 |
+
[
|
| 737 |
+
65,
|
| 738 |
+
90
|
| 739 |
+
],
|
| 740 |
+
[
|
| 741 |
+
48,
|
| 742 |
+
57
|
| 743 |
+
]
|
| 744 |
+
]
|
| 745 |
+
},
|
| 746 |
+
{
|
| 747 |
+
"type": "end"
|
| 748 |
+
}
|
| 749 |
+
]
|
| 750 |
+
],
|
| 751 |
+
[
|
| 752 |
+
"root ::= [^A-Z0-9_-]*",
|
| 753 |
+
"abc",
|
| 754 |
+
"d",
|
| 755 |
+
[
|
| 756 |
+
{
|
| 757 |
+
"type": "char_exclude",
|
| 758 |
+
"value": [
|
| 759 |
+
[
|
| 760 |
+
65,
|
| 761 |
+
90
|
| 762 |
+
],
|
| 763 |
+
[
|
| 764 |
+
48,
|
| 765 |
+
57
|
| 766 |
+
],
|
| 767 |
+
95,
|
| 768 |
+
45
|
| 769 |
+
]
|
| 770 |
+
},
|
| 771 |
+
{
|
| 772 |
+
"type": "end"
|
| 773 |
+
}
|
| 774 |
+
]
|
| 775 |
+
]
|
| 776 |
+
]
|
v2-models-effort/runs/20261027-114410-shrill-dew/ported_implementation/integration_tests/generated/iteration/iteration_with_additional_strings_test.py
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import json
|
| 2 |
+
from pathlib import Path
|
| 3 |
+
|
| 4 |
+
import pytest
|
| 5 |
+
|
| 6 |
+
from gbnf import GBNF, InputParseError
|
| 7 |
+
|
| 8 |
+
DATA = Path(__file__).parent
|
| 9 |
+
THROWS = json.loads((DATA / 'iteration_with_additional_strings_throws.json').read_text(encoding='utf-8'))
|
| 10 |
+
CASES = json.loads((DATA / 'iteration_with_additional_strings.json').read_text(encoding='utf-8'))
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
def describe_iteration():
|
| 14 |
+
@pytest.mark.parametrize('grammar, starting, additional', THROWS)
|
| 15 |
+
def it_throws_if_encountering_additional_invalid_input(grammar, starting, additional):
|
| 16 |
+
graph = GBNF(grammar, starting)
|
| 17 |
+
with pytest.raises(Exception):
|
| 18 |
+
graph.add(additional)
|
| 19 |
+
|
| 20 |
+
@pytest.mark.parametrize('grammar, starting, additional, expected', CASES)
|
| 21 |
+
def it_parses_a_grammar_with_starting_and_additional_strings(grammar, starting, additional, expected):
|
| 22 |
+
state = GBNF(grammar, starting)
|
| 23 |
+
state = state.add(additional)
|
| 24 |
+
assert list(state) == expected
|
| 25 |
+
|
| 26 |
+
@pytest.mark.parametrize('error_for_most_recent_input', [False, True])
|
| 27 |
+
def it_throws_a_particular_error(error_for_most_recent_input):
|
| 28 |
+
grammar = 'root ::= "bar"'
|
| 29 |
+
state = GBNF(grammar)
|
| 30 |
+
state = state.add('b')
|
| 31 |
+
state = state.add('a')
|
| 32 |
+
with pytest.raises(InputParseError) as exc_info:
|
| 33 |
+
state.add('z')
|
| 34 |
+
err = exc_info.value
|
| 35 |
+
expected_err = InputParseError('z', 0, 'ba')
|
| 36 |
+
if error_for_most_recent_input:
|
| 37 |
+
assert err.error_for_most_recent_input == expected_err.error_for_most_recent_input
|
| 38 |
+
else:
|
| 39 |
+
assert err.message == expected_err.message
|
v2-models-effort/runs/20261027-114410-shrill-dew/ported_implementation/integration_tests/generated/iteration/iteration_with_additional_strings_throws.json
ADDED
|
@@ -0,0 +1,267 @@
|
|
|
|
|
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|
| 30 |
+
"1"
|
| 31 |
+
],
|
| 32 |
+
[
|
| 33 |
+
"root ::= \"foo\" | \"bar\"",
|
| 34 |
+
"b",
|
| 35 |
+
"1"
|
| 36 |
+
],
|
| 37 |
+
[
|
| 38 |
+
"root ::= \"foo\" | \"bar\"",
|
| 39 |
+
"f",
|
| 40 |
+
"o1"
|
| 41 |
+
],
|
| 42 |
+
[
|
| 43 |
+
"root ::= \"foo\" | \"bar\"",
|
| 44 |
+
"b",
|
| 45 |
+
"a1"
|
| 46 |
+
],
|
| 47 |
+
[
|
| 48 |
+
"root ::= \"foo\" | \"bar\"",
|
| 49 |
+
"f",
|
| 50 |
+
"ooo"
|
| 51 |
+
],
|
| 52 |
+
[
|
| 53 |
+
"root ::= \"foo\" | \"bar\"",
|
| 54 |
+
"b",
|
| 55 |
+
"arrr"
|
| 56 |
+
],
|
| 57 |
+
[
|
| 58 |
+
"root ::= \"foo\" | \"bar\" | \"baz\"",
|
| 59 |
+
"f",
|
| 60 |
+
"1"
|
| 61 |
+
],
|
| 62 |
+
[
|
| 63 |
+
"root ::= \"foo\" | \"bar\" | \"baz\"",
|
| 64 |
+
"f",
|
| 65 |
+
"z"
|
| 66 |
+
],
|
| 67 |
+
[
|
| 68 |
+
"root ::= \"foo\" | \"bar\" | \"baz\"",
|
| 69 |
+
"b",
|
| 70 |
+
"b1"
|
| 71 |
+
],
|
| 72 |
+
[
|
| 73 |
+
"root ::= \"foo\" | \"bar\" | \"baz\"",
|
| 74 |
+
"f",
|
| 75 |
+
"o1"
|
| 76 |
+
],
|
| 77 |
+
[
|
| 78 |
+
"root ::= \"foo\" | \"bar\" | \"baz\"",
|
| 79 |
+
"b",
|
| 80 |
+
"al"
|
| 81 |
+
],
|
| 82 |
+
[
|
| 83 |
+
"root ::= \"foo\" | \"bar\" | \"baz\"",
|
| 84 |
+
"f",
|
| 85 |
+
"ooo"
|
| 86 |
+
],
|
| 87 |
+
[
|
| 88 |
+
"root ::= \"foo\" | \"bar\" | \"baz\"",
|
| 89 |
+
"b",
|
| 90 |
+
"azrr"
|
| 91 |
+
],
|
| 92 |
+
[
|
| 93 |
+
"root ::= foo\nfoo ::=\"foo\"",
|
| 94 |
+
"f",
|
| 95 |
+
"1"
|
| 96 |
+
],
|
| 97 |
+
[
|
| 98 |
+
"root ::= foo\nfoo ::=\"foo\"",
|
| 99 |
+
"f",
|
| 100 |
+
"b"
|
| 101 |
+
],
|
| 102 |
+
[
|
| 103 |
+
"root ::= foo\nfoo ::=\"foo\"",
|
| 104 |
+
"f",
|
| 105 |
+
"o1"
|
| 106 |
+
],
|
| 107 |
+
[
|
| 108 |
+
"root ::= foo\nfoo ::=\"foo\"",
|
| 109 |
+
"f",
|
| 110 |
+
"ooo"
|
| 111 |
+
],
|
| 112 |
+
[
|
| 113 |
+
"root::=foo|\"bar\"\nfoo::=\"foo\"",
|
| 114 |
+
"f",
|
| 115 |
+
"1"
|
| 116 |
+
],
|
| 117 |
+
[
|
| 118 |
+
"root::=foo|\"bar\"\nfoo::=\"foo\"",
|
| 119 |
+
"f",
|
| 120 |
+
"z"
|
| 121 |
+
],
|
| 122 |
+
[
|
| 123 |
+
"root::=foo|\"bar\"\nfoo::=\"foo\"",
|
| 124 |
+
"b",
|
| 125 |
+
"b1"
|
| 126 |
+
],
|
| 127 |
+
[
|
| 128 |
+
"root::=foo|\"bar\"\nfoo::=\"foo\"",
|
| 129 |
+
"f",
|
| 130 |
+
"o1"
|
| 131 |
+
],
|
| 132 |
+
[
|
| 133 |
+
"root::=foo|\"bar\"\nfoo::=\"foo\"",
|
| 134 |
+
"f",
|
| 135 |
+
"ooo"
|
| 136 |
+
],
|
| 137 |
+
[
|
| 138 |
+
"root::=foo|\"bar\"\nfoo::=\"foo\"",
|
| 139 |
+
"b",
|
| 140 |
+
"arr"
|
| 141 |
+
],
|
| 142 |
+
[
|
| 143 |
+
"root::= foo | bar\n foo::=\"foo\"\n bar::=\"bar\"",
|
| 144 |
+
"f",
|
| 145 |
+
"1"
|
| 146 |
+
],
|
| 147 |
+
[
|
| 148 |
+
"root::= foo | bar\n foo::=\"foo\"\n bar::=\"bar\"",
|
| 149 |
+
"f",
|
| 150 |
+
"z"
|
| 151 |
+
],
|
| 152 |
+
[
|
| 153 |
+
"root::= foo | bar\n foo::=\"foo\"\n bar::=\"bar\"",
|
| 154 |
+
"b",
|
| 155 |
+
"1"
|
| 156 |
+
],
|
| 157 |
+
[
|
| 158 |
+
"root::= foo | bar\n foo::=\"foo\"\n bar::=\"bar\"",
|
| 159 |
+
"f",
|
| 160 |
+
"o1"
|
| 161 |
+
],
|
| 162 |
+
[
|
| 163 |
+
"root::= foo | bar\n foo::=\"foo\"\n bar::=\"bar\"",
|
| 164 |
+
"f",
|
| 165 |
+
"ooo"
|
| 166 |
+
],
|
| 167 |
+
[
|
| 168 |
+
"root::= foo | bar\n foo::=\"foo\"\n bar::=\"bar\"",
|
| 169 |
+
"b",
|
| 170 |
+
"arr"
|
| 171 |
+
],
|
| 172 |
+
[
|
| 173 |
+
"root ::= f | b\nf ::= fo\nb ::= ba\nfo ::= foo\nba ::= bar | baz\nfoo ::= \"foo\"\nbar ::= \"bar\"\nbaz ::= \"baz\"",
|
| 174 |
+
"f",
|
| 175 |
+
"1"
|
| 176 |
+
],
|
| 177 |
+
[
|
| 178 |
+
"root ::= f | b\nf ::= fo\nb ::= ba\nfo ::= foo\nba ::= bar | baz\nfoo ::= \"foo\"\nbar ::= \"bar\"\nbaz ::= \"baz\"",
|
| 179 |
+
"f",
|
| 180 |
+
"z"
|
| 181 |
+
],
|
| 182 |
+
[
|
| 183 |
+
"root ::= f | b\nf ::= fo\nb ::= ba\nfo ::= foo\nba ::= bar | baz\nfoo ::= \"foo\"\nbar ::= \"bar\"\nbaz ::= \"baz\"",
|
| 184 |
+
"b",
|
| 185 |
+
"1"
|
| 186 |
+
],
|
| 187 |
+
[
|
| 188 |
+
"root ::= f | b\nf ::= fo\nb ::= ba\nfo ::= foo\nba ::= bar | baz\nfoo ::= \"foo\"\nbar ::= \"bar\"\nbaz ::= \"baz\"",
|
| 189 |
+
"f",
|
| 190 |
+
"o1"
|
| 191 |
+
],
|
| 192 |
+
[
|
| 193 |
+
"root ::= f | b\nf ::= fo\nb ::= ba\nfo ::= foo\nba ::= bar | baz\nfoo ::= \"foo\"\nbar ::= \"bar\"\nbaz ::= \"baz\"",
|
| 194 |
+
"f",
|
| 195 |
+
"ooo"
|
| 196 |
+
],
|
| 197 |
+
[
|
| 198 |
+
"root ::= f | b\nf ::= fo\nb ::= ba\nfo ::= foo\nba ::= bar | baz\nfoo ::= \"foo\"\nbar ::= \"bar\"\nbaz ::= \"baz\"",
|
| 199 |
+
"b",
|
| 200 |
+
"arr"
|
| 201 |
+
],
|
| 202 |
+
[
|
| 203 |
+
"root ::= f | b\nf ::= fo\nb ::= ba\nfo ::= foo\nba ::= bar | baz\nfoo ::= \"foo\"\nbar ::= \"bar\"\nbaz ::= \"baz\"",
|
| 204 |
+
"b",
|
| 205 |
+
"azr"
|
| 206 |
+
],
|
| 207 |
+
[
|
| 208 |
+
"root ::= [a-z]",
|
| 209 |
+
"a",
|
| 210 |
+
"A"
|
| 211 |
+
],
|
| 212 |
+
[
|
| 213 |
+
"root ::= [a-z]",
|
| 214 |
+
"a",
|
| 215 |
+
"0"
|
| 216 |
+
],
|
| 217 |
+
[
|
| 218 |
+
"root ::= [a-z]",
|
| 219 |
+
"a",
|
| 220 |
+
"az"
|
| 221 |
+
],
|
| 222 |
+
[
|
| 223 |
+
"root ::= [a-z]?",
|
| 224 |
+
"a",
|
| 225 |
+
"A"
|
| 226 |
+
],
|
| 227 |
+
[
|
| 228 |
+
"root ::= [a-z]?",
|
| 229 |
+
"a",
|
| 230 |
+
"0"
|
| 231 |
+
],
|
| 232 |
+
[
|
| 233 |
+
"root ::= [a-z]?",
|
| 234 |
+
"a",
|
| 235 |
+
"az"
|
| 236 |
+
],
|
| 237 |
+
[
|
| 238 |
+
"root ::= [a-z]+",
|
| 239 |
+
"a",
|
| 240 |
+
"A"
|
| 241 |
+
],
|
| 242 |
+
[
|
| 243 |
+
"root ::= [a-z]+",
|
| 244 |
+
"a",
|
| 245 |
+
"0"
|
| 246 |
+
],
|
| 247 |
+
[
|
| 248 |
+
"root ::= [a-z]+",
|
| 249 |
+
"a",
|
| 250 |
+
"z0"
|
| 251 |
+
],
|
| 252 |
+
[
|
| 253 |
+
"root ::= [a-z]*",
|
| 254 |
+
"a",
|
| 255 |
+
"A"
|
| 256 |
+
],
|
| 257 |
+
[
|
| 258 |
+
"root ::= [a-z]*",
|
| 259 |
+
"a",
|
| 260 |
+
"0"
|
| 261 |
+
],
|
| 262 |
+
[
|
| 263 |
+
"root ::= [a-z]*",
|
| 264 |
+
"a",
|
| 265 |
+
"z0"
|
| 266 |
+
]
|
| 267 |
+
]
|
v2-models-effort/runs/20261027-114410-shrill-dew/ported_implementation/integration_tests/generated/iteration/iteration_with_an_initial_string.json
ADDED
|
@@ -0,0 +1,1322 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
[
|
| 3 |
+
"root ::= \"foo\"",
|
| 4 |
+
"",
|
| 5 |
+
[
|
| 6 |
+
{
|
| 7 |
+
"type": "char",
|
| 8 |
+
"value": [
|
| 9 |
+
102
|
| 10 |
+
]
|
| 11 |
+
}
|
| 12 |
+
]
|
| 13 |
+
],
|
| 14 |
+
[
|
| 15 |
+
"root ::= \"foo\"",
|
| 16 |
+
"f",
|
| 17 |
+
[
|
| 18 |
+
{
|
| 19 |
+
"type": "char",
|
| 20 |
+
"value": [
|
| 21 |
+
111
|
| 22 |
+
]
|
| 23 |
+
}
|
| 24 |
+
]
|
| 25 |
+
],
|
| 26 |
+
[
|
| 27 |
+
"root ::= \"foo\"",
|
| 28 |
+
"fo",
|
| 29 |
+
[
|
| 30 |
+
{
|
| 31 |
+
"type": "char",
|
| 32 |
+
"value": [
|
| 33 |
+
111
|
| 34 |
+
]
|
| 35 |
+
}
|
| 36 |
+
]
|
| 37 |
+
],
|
| 38 |
+
[
|
| 39 |
+
"root ::= \"foo\"",
|
| 40 |
+
"foo",
|
| 41 |
+
[
|
| 42 |
+
{
|
| 43 |
+
"type": "end"
|
| 44 |
+
}
|
| 45 |
+
]
|
| 46 |
+
],
|
| 47 |
+
[
|
| 48 |
+
"root ::= \"foo\" | \"bar\" ",
|
| 49 |
+
"",
|
| 50 |
+
[
|
| 51 |
+
{
|
| 52 |
+
"type": "char",
|
| 53 |
+
"value": [
|
| 54 |
+
102
|
| 55 |
+
]
|
| 56 |
+
},
|
| 57 |
+
{
|
| 58 |
+
"type": "char",
|
| 59 |
+
"value": [
|
| 60 |
+
98
|
| 61 |
+
]
|
| 62 |
+
}
|
| 63 |
+
]
|
| 64 |
+
],
|
| 65 |
+
[
|
| 66 |
+
"root ::= \"foo\" | \"bar\" ",
|
| 67 |
+
"f",
|
| 68 |
+
[
|
| 69 |
+
{
|
| 70 |
+
"type": "char",
|
| 71 |
+
"value": [
|
| 72 |
+
111
|
| 73 |
+
]
|
| 74 |
+
}
|
| 75 |
+
]
|
| 76 |
+
],
|
| 77 |
+
[
|
| 78 |
+
"root ::= \"foo\" | \"bar\" ",
|
| 79 |
+
"fo",
|
| 80 |
+
[
|
| 81 |
+
{
|
| 82 |
+
"type": "char",
|
| 83 |
+
"value": [
|
| 84 |
+
111
|
| 85 |
+
]
|
| 86 |
+
}
|
| 87 |
+
]
|
| 88 |
+
],
|
| 89 |
+
[
|
| 90 |
+
"root ::= \"foo\" | \"bar\" ",
|
| 91 |
+
"foo",
|
| 92 |
+
[
|
| 93 |
+
{
|
| 94 |
+
"type": "end"
|
| 95 |
+
}
|
| 96 |
+
]
|
| 97 |
+
],
|
| 98 |
+
[
|
| 99 |
+
"root ::= \"foo\" | \"bar\" ",
|
| 100 |
+
"b",
|
| 101 |
+
[
|
| 102 |
+
{
|
| 103 |
+
"type": "char",
|
| 104 |
+
"value": [
|
| 105 |
+
97
|
| 106 |
+
]
|
| 107 |
+
}
|
| 108 |
+
]
|
| 109 |
+
],
|
| 110 |
+
[
|
| 111 |
+
"root ::= \"foo\" | \"bar\" ",
|
| 112 |
+
"ba",
|
| 113 |
+
[
|
| 114 |
+
{
|
| 115 |
+
"type": "char",
|
| 116 |
+
"value": [
|
| 117 |
+
114
|
| 118 |
+
]
|
| 119 |
+
}
|
| 120 |
+
]
|
| 121 |
+
],
|
| 122 |
+
[
|
| 123 |
+
"root ::= \"foo\" | \"bar\" ",
|
| 124 |
+
"bar",
|
| 125 |
+
[
|
| 126 |
+
{
|
| 127 |
+
"type": "end"
|
| 128 |
+
}
|
| 129 |
+
]
|
| 130 |
+
],
|
| 131 |
+
[
|
| 132 |
+
"root ::= \"foo\" | \"bar\" | \"baz\"",
|
| 133 |
+
"ba",
|
| 134 |
+
[
|
| 135 |
+
{
|
| 136 |
+
"type": "char",
|
| 137 |
+
"value": [
|
| 138 |
+
114
|
| 139 |
+
]
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "char",
|
| 143 |
+
"value": [
|
| 144 |
+
122
|
| 145 |
+
]
|
| 146 |
+
}
|
| 147 |
+
]
|
| 148 |
+
],
|
| 149 |
+
[
|
| 150 |
+
"root ::= \"[\"",
|
| 151 |
+
"[",
|
| 152 |
+
[
|
| 153 |
+
{
|
| 154 |
+
"type": "end"
|
| 155 |
+
}
|
| 156 |
+
]
|
| 157 |
+
],
|
| 158 |
+
[
|
| 159 |
+
"root ::= \"]\"",
|
| 160 |
+
"]",
|
| 161 |
+
[
|
| 162 |
+
{
|
| 163 |
+
"type": "end"
|
| 164 |
+
}
|
| 165 |
+
]
|
| 166 |
+
],
|
| 167 |
+
[
|
| 168 |
+
"root ::= \"[]\"",
|
| 169 |
+
"[]",
|
| 170 |
+
[
|
| 171 |
+
{
|
| 172 |
+
"type": "end"
|
| 173 |
+
}
|
| 174 |
+
]
|
| 175 |
+
],
|
| 176 |
+
[
|
| 177 |
+
"root ::= \"{\"",
|
| 178 |
+
"{",
|
| 179 |
+
[
|
| 180 |
+
{
|
| 181 |
+
"type": "end"
|
| 182 |
+
}
|
| 183 |
+
]
|
| 184 |
+
],
|
| 185 |
+
[
|
| 186 |
+
"root ::= \"}\"",
|
| 187 |
+
"}",
|
| 188 |
+
[
|
| 189 |
+
{
|
| 190 |
+
"type": "end"
|
| 191 |
+
}
|
| 192 |
+
]
|
| 193 |
+
],
|
| 194 |
+
[
|
| 195 |
+
"root ::= \"{}\"",
|
| 196 |
+
"{}",
|
| 197 |
+
[
|
| 198 |
+
{
|
| 199 |
+
"type": "end"
|
| 200 |
+
}
|
| 201 |
+
]
|
| 202 |
+
],
|
| 203 |
+
[
|
| 204 |
+
"root ::= \"[{}]\"",
|
| 205 |
+
"[{}]",
|
| 206 |
+
[
|
| 207 |
+
{
|
| 208 |
+
"type": "end"
|
| 209 |
+
}
|
| 210 |
+
]
|
| 211 |
+
],
|
| 212 |
+
[
|
| 213 |
+
"root ::= [^f] \"o\"",
|
| 214 |
+
"",
|
| 215 |
+
[
|
| 216 |
+
{
|
| 217 |
+
"type": "char_exclude",
|
| 218 |
+
"value": [
|
| 219 |
+
102
|
| 220 |
+
]
|
| 221 |
+
}
|
| 222 |
+
]
|
| 223 |
+
],
|
| 224 |
+
[
|
| 225 |
+
"root ::= [^f] \"o\"",
|
| 226 |
+
"a",
|
| 227 |
+
[
|
| 228 |
+
{
|
| 229 |
+
"type": "char",
|
| 230 |
+
"value": [
|
| 231 |
+
111
|
| 232 |
+
]
|
| 233 |
+
}
|
| 234 |
+
]
|
| 235 |
+
],
|
| 236 |
+
[
|
| 237 |
+
"root ::= [^A-Z]",
|
| 238 |
+
"",
|
| 239 |
+
[
|
| 240 |
+
{
|
| 241 |
+
"type": "char_exclude",
|
| 242 |
+
"value": [
|
| 243 |
+
[
|
| 244 |
+
65,
|
| 245 |
+
90
|
| 246 |
+
]
|
| 247 |
+
]
|
| 248 |
+
}
|
| 249 |
+
]
|
| 250 |
+
],
|
| 251 |
+
[
|
| 252 |
+
"root ::= [^A-Z0-9]",
|
| 253 |
+
"",
|
| 254 |
+
[
|
| 255 |
+
{
|
| 256 |
+
"type": "char_exclude",
|
| 257 |
+
"value": [
|
| 258 |
+
[
|
| 259 |
+
65,
|
| 260 |
+
90
|
| 261 |
+
],
|
| 262 |
+
[
|
| 263 |
+
48,
|
| 264 |
+
57
|
| 265 |
+
]
|
| 266 |
+
]
|
| 267 |
+
}
|
| 268 |
+
]
|
| 269 |
+
],
|
| 270 |
+
[
|
| 271 |
+
"root ::= [^A-Z0-9_-]",
|
| 272 |
+
"",
|
| 273 |
+
[
|
| 274 |
+
{
|
| 275 |
+
"type": "char_exclude",
|
| 276 |
+
"value": [
|
| 277 |
+
[
|
| 278 |
+
65,
|
| 279 |
+
90
|
| 280 |
+
],
|
| 281 |
+
[
|
| 282 |
+
48,
|
| 283 |
+
57
|
| 284 |
+
],
|
| 285 |
+
95,
|
| 286 |
+
45
|
| 287 |
+
]
|
| 288 |
+
}
|
| 289 |
+
]
|
| 290 |
+
],
|
| 291 |
+
[
|
| 292 |
+
"\nroot ::= foo\nfoo ::= \"foo\"",
|
| 293 |
+
"",
|
| 294 |
+
[
|
| 295 |
+
{
|
| 296 |
+
"type": "char",
|
| 297 |
+
"value": [
|
| 298 |
+
102
|
| 299 |
+
]
|
| 300 |
+
}
|
| 301 |
+
]
|
| 302 |
+
],
|
| 303 |
+
[
|
| 304 |
+
"root ::= foo\nfoo ::= \"foo\"\n",
|
| 305 |
+
"f",
|
| 306 |
+
[
|
| 307 |
+
{
|
| 308 |
+
"type": "char",
|
| 309 |
+
"value": [
|
| 310 |
+
111
|
| 311 |
+
]
|
| 312 |
+
}
|
| 313 |
+
]
|
| 314 |
+
],
|
| 315 |
+
[
|
| 316 |
+
"\nroot ::= foo\nfoo ::= \"foo\"\n",
|
| 317 |
+
"fo",
|
| 318 |
+
[
|
| 319 |
+
{
|
| 320 |
+
"type": "char",
|
| 321 |
+
"value": [
|
| 322 |
+
111
|
| 323 |
+
]
|
| 324 |
+
}
|
| 325 |
+
]
|
| 326 |
+
],
|
| 327 |
+
[
|
| 328 |
+
"root ::= foo\nfoo ::= \"foo\"",
|
| 329 |
+
"foo",
|
| 330 |
+
[
|
| 331 |
+
{
|
| 332 |
+
"type": "end"
|
| 333 |
+
}
|
| 334 |
+
]
|
| 335 |
+
],
|
| 336 |
+
[
|
| 337 |
+
"root ::= f\nf ::= foo\nfoo ::= \"foo\"",
|
| 338 |
+
"",
|
| 339 |
+
[
|
| 340 |
+
{
|
| 341 |
+
"type": "char",
|
| 342 |
+
"value": [
|
| 343 |
+
102
|
| 344 |
+
]
|
| 345 |
+
}
|
| 346 |
+
]
|
| 347 |
+
],
|
| 348 |
+
[
|
| 349 |
+
"\nroot ::= foo | \"bar\"\nfoo ::= \"foo\"\n",
|
| 350 |
+
"",
|
| 351 |
+
[
|
| 352 |
+
{
|
| 353 |
+
"type": "char",
|
| 354 |
+
"value": [
|
| 355 |
+
102
|
| 356 |
+
]
|
| 357 |
+
},
|
| 358 |
+
{
|
| 359 |
+
"type": "char",
|
| 360 |
+
"value": [
|
| 361 |
+
98
|
| 362 |
+
]
|
| 363 |
+
}
|
| 364 |
+
]
|
| 365 |
+
],
|
| 366 |
+
[
|
| 367 |
+
"\nroot ::= foo | \"bar\"\nfoo ::= \"foo\"",
|
| 368 |
+
"f",
|
| 369 |
+
[
|
| 370 |
+
{
|
| 371 |
+
"type": "char",
|
| 372 |
+
"value": [
|
| 373 |
+
111
|
| 374 |
+
]
|
| 375 |
+
}
|
| 376 |
+
]
|
| 377 |
+
],
|
| 378 |
+
[
|
| 379 |
+
"root ::= foo | \"bar\"\nfoo ::= \"foo\"",
|
| 380 |
+
"fo",
|
| 381 |
+
[
|
| 382 |
+
{
|
| 383 |
+
"type": "char",
|
| 384 |
+
"value": [
|
| 385 |
+
111
|
| 386 |
+
]
|
| 387 |
+
}
|
| 388 |
+
]
|
| 389 |
+
],
|
| 390 |
+
[
|
| 391 |
+
"root ::= foo | \"bar\"\nfoo ::= \"foo\"",
|
| 392 |
+
"foo",
|
| 393 |
+
[
|
| 394 |
+
{
|
| 395 |
+
"type": "end"
|
| 396 |
+
}
|
| 397 |
+
]
|
| 398 |
+
],
|
| 399 |
+
[
|
| 400 |
+
"root ::= foo | \"bar\"\nfoo ::= \"foo\"",
|
| 401 |
+
"b",
|
| 402 |
+
[
|
| 403 |
+
{
|
| 404 |
+
"type": "char",
|
| 405 |
+
"value": [
|
| 406 |
+
97
|
| 407 |
+
]
|
| 408 |
+
}
|
| 409 |
+
]
|
| 410 |
+
],
|
| 411 |
+
[
|
| 412 |
+
"root ::= foo | \"bar\"\nfoo ::= \"foo\"",
|
| 413 |
+
"ba",
|
| 414 |
+
[
|
| 415 |
+
{
|
| 416 |
+
"type": "char",
|
| 417 |
+
"value": [
|
| 418 |
+
114
|
| 419 |
+
]
|
| 420 |
+
}
|
| 421 |
+
]
|
| 422 |
+
],
|
| 423 |
+
[
|
| 424 |
+
"root ::= foo | \"bar\"\nfoo ::= \"foo\"",
|
| 425 |
+
"bar",
|
| 426 |
+
[
|
| 427 |
+
{
|
| 428 |
+
"type": "end"
|
| 429 |
+
}
|
| 430 |
+
]
|
| 431 |
+
],
|
| 432 |
+
[
|
| 433 |
+
"\nroot ::= foo | bar\nfoo ::= \"foo\"\nbar ::= \"bar\"",
|
| 434 |
+
"",
|
| 435 |
+
[
|
| 436 |
+
{
|
| 437 |
+
"type": "char",
|
| 438 |
+
"value": [
|
| 439 |
+
102
|
| 440 |
+
]
|
| 441 |
+
},
|
| 442 |
+
{
|
| 443 |
+
"type": "char",
|
| 444 |
+
"value": [
|
| 445 |
+
98
|
| 446 |
+
]
|
| 447 |
+
}
|
| 448 |
+
]
|
| 449 |
+
],
|
| 450 |
+
[
|
| 451 |
+
"\nroot ::= foo | bar\nfoo ::= \"foo\"\nbar ::= \"bar\"",
|
| 452 |
+
"f",
|
| 453 |
+
[
|
| 454 |
+
{
|
| 455 |
+
"type": "char",
|
| 456 |
+
"value": [
|
| 457 |
+
111
|
| 458 |
+
]
|
| 459 |
+
}
|
| 460 |
+
]
|
| 461 |
+
],
|
| 462 |
+
[
|
| 463 |
+
"\nroot ::= foo | bar\nfoo ::= \"foo\"\nbar ::= \"bar\"",
|
| 464 |
+
"fo",
|
| 465 |
+
[
|
| 466 |
+
{
|
| 467 |
+
"type": "char",
|
| 468 |
+
"value": [
|
| 469 |
+
111
|
| 470 |
+
]
|
| 471 |
+
}
|
| 472 |
+
]
|
| 473 |
+
],
|
| 474 |
+
[
|
| 475 |
+
"\nroot ::= foo | bar\nfoo ::= \"foo\"\nbar ::= \"bar\"",
|
| 476 |
+
"foo",
|
| 477 |
+
[
|
| 478 |
+
{
|
| 479 |
+
"type": "end"
|
| 480 |
+
}
|
| 481 |
+
]
|
| 482 |
+
],
|
| 483 |
+
[
|
| 484 |
+
"\nroot ::= foo | bar\nfoo ::= \"foo\"\nbar ::= \"bar\"",
|
| 485 |
+
"b",
|
| 486 |
+
[
|
| 487 |
+
{
|
| 488 |
+
"type": "char",
|
| 489 |
+
"value": [
|
| 490 |
+
97
|
| 491 |
+
]
|
| 492 |
+
}
|
| 493 |
+
]
|
| 494 |
+
],
|
| 495 |
+
[
|
| 496 |
+
"\nroot ::= foo | bar\nfoo ::= \"foo\"\nbar ::= \"bar\"",
|
| 497 |
+
"ba",
|
| 498 |
+
[
|
| 499 |
+
{
|
| 500 |
+
"type": "char",
|
| 501 |
+
"value": [
|
| 502 |
+
114
|
| 503 |
+
]
|
| 504 |
+
}
|
| 505 |
+
]
|
| 506 |
+
],
|
| 507 |
+
[
|
| 508 |
+
"\nroot ::= foo | bar\nfoo ::= \"foo\"\nbar ::= \"bar\"",
|
| 509 |
+
"bar",
|
| 510 |
+
[
|
| 511 |
+
{
|
| 512 |
+
"type": "end"
|
| 513 |
+
}
|
| 514 |
+
]
|
| 515 |
+
],
|
| 516 |
+
[
|
| 517 |
+
"\nroot ::= f | b\nf ::= fo\nb ::= ba\nfo ::= foo\nba ::= bar | baz\nfoo ::= \"foo\"\nbar ::= \"bar\"\nbaz ::= \"baz\"",
|
| 518 |
+
"",
|
| 519 |
+
[
|
| 520 |
+
{
|
| 521 |
+
"type": "char",
|
| 522 |
+
"value": [
|
| 523 |
+
102
|
| 524 |
+
]
|
| 525 |
+
},
|
| 526 |
+
{
|
| 527 |
+
"type": "char",
|
| 528 |
+
"value": [
|
| 529 |
+
98
|
| 530 |
+
]
|
| 531 |
+
}
|
| 532 |
+
]
|
| 533 |
+
],
|
| 534 |
+
[
|
| 535 |
+
"\nroot ::= f | b\nf ::= fo\nb ::= ba\nfo ::= foo\nba ::= bar | baz\nfoo ::= \"foo\"\nbar ::= \"bar\"\nbaz ::= \"baz\"",
|
| 536 |
+
"f",
|
| 537 |
+
[
|
| 538 |
+
{
|
| 539 |
+
"type": "char",
|
| 540 |
+
"value": [
|
| 541 |
+
111
|
| 542 |
+
]
|
| 543 |
+
}
|
| 544 |
+
]
|
| 545 |
+
],
|
| 546 |
+
[
|
| 547 |
+
"\nroot ::= f | b\nf ::= fo\nb ::= ba\nfo ::= foo\nba ::= bar | baz\nfoo ::= \"foo\"\nbar ::= \"bar\"\nbaz ::= \"baz\"",
|
| 548 |
+
"fo",
|
| 549 |
+
[
|
| 550 |
+
{
|
| 551 |
+
"type": "char",
|
| 552 |
+
"value": [
|
| 553 |
+
111
|
| 554 |
+
]
|
| 555 |
+
}
|
| 556 |
+
]
|
| 557 |
+
],
|
| 558 |
+
[
|
| 559 |
+
"\nroot ::= f | b\nf ::= fo\nb ::= ba\nfo ::= foo\nba ::= bar | baz\nfoo ::= \"foo\"\nbar ::= \"bar\"\nbaz ::= \"baz\"",
|
| 560 |
+
"foo",
|
| 561 |
+
[
|
| 562 |
+
{
|
| 563 |
+
"type": "end"
|
| 564 |
+
}
|
| 565 |
+
]
|
| 566 |
+
],
|
| 567 |
+
[
|
| 568 |
+
"\nroot ::= f | b\nf ::= fo\nb ::= ba\nfo ::= foo\nba ::= bar | baz\nfoo ::= \"foo\"\nbar ::= \"bar\"\nbaz ::= \"baz\"",
|
| 569 |
+
"b",
|
| 570 |
+
[
|
| 571 |
+
{
|
| 572 |
+
"type": "char",
|
| 573 |
+
"value": [
|
| 574 |
+
97
|
| 575 |
+
]
|
| 576 |
+
}
|
| 577 |
+
]
|
| 578 |
+
],
|
| 579 |
+
[
|
| 580 |
+
"\nroot ::= f | b\nf ::= fo\nb ::= ba\nfo ::= foo\nba ::= bar | baz\nfoo ::= \"foo\"\nbar ::= \"bar\"\nbaz ::= \"baz\"",
|
| 581 |
+
"ba",
|
| 582 |
+
[
|
| 583 |
+
{
|
| 584 |
+
"type": "char",
|
| 585 |
+
"value": [
|
| 586 |
+
114
|
| 587 |
+
]
|
| 588 |
+
},
|
| 589 |
+
{
|
| 590 |
+
"type": "char",
|
| 591 |
+
"value": [
|
| 592 |
+
122
|
| 593 |
+
]
|
| 594 |
+
}
|
| 595 |
+
]
|
| 596 |
+
],
|
| 597 |
+
[
|
| 598 |
+
"\nroot ::= f | b\nf ::= fo\nb ::= ba\nfo ::= foo\nba ::= bar | baz\nfoo ::= \"foo\"\nbar ::= \"bar\"\nbaz ::= \"baz\"",
|
| 599 |
+
"bar",
|
| 600 |
+
[
|
| 601 |
+
{
|
| 602 |
+
"type": "end"
|
| 603 |
+
}
|
| 604 |
+
]
|
| 605 |
+
],
|
| 606 |
+
[
|
| 607 |
+
"\nroot ::= f | b\nf ::= fo\nb ::= ba\nfo ::= foo\nba ::= bar | baz\nfoo ::= \"foo\"\nbar ::= \"bar\"\nbaz ::= \"baz\"",
|
| 608 |
+
"baz",
|
| 609 |
+
[
|
| 610 |
+
{
|
| 611 |
+
"type": "end"
|
| 612 |
+
}
|
| 613 |
+
]
|
| 614 |
+
],
|
| 615 |
+
[
|
| 616 |
+
"root ::= [a-z]",
|
| 617 |
+
"",
|
| 618 |
+
[
|
| 619 |
+
{
|
| 620 |
+
"type": "char",
|
| 621 |
+
"value": [
|
| 622 |
+
[
|
| 623 |
+
97,
|
| 624 |
+
122
|
| 625 |
+
]
|
| 626 |
+
]
|
| 627 |
+
}
|
| 628 |
+
]
|
| 629 |
+
],
|
| 630 |
+
[
|
| 631 |
+
"root ::= [a-zA-Z]",
|
| 632 |
+
"",
|
| 633 |
+
[
|
| 634 |
+
{
|
| 635 |
+
"type": "char",
|
| 636 |
+
"value": [
|
| 637 |
+
[
|
| 638 |
+
97,
|
| 639 |
+
122
|
| 640 |
+
],
|
| 641 |
+
[
|
| 642 |
+
65,
|
| 643 |
+
90
|
| 644 |
+
]
|
| 645 |
+
]
|
| 646 |
+
}
|
| 647 |
+
]
|
| 648 |
+
],
|
| 649 |
+
[
|
| 650 |
+
"root ::= [a-z]",
|
| 651 |
+
"a",
|
| 652 |
+
[
|
| 653 |
+
{
|
| 654 |
+
"type": "end"
|
| 655 |
+
}
|
| 656 |
+
]
|
| 657 |
+
],
|
| 658 |
+
[
|
| 659 |
+
"root ::= [a-z]",
|
| 660 |
+
"m",
|
| 661 |
+
[
|
| 662 |
+
{
|
| 663 |
+
"type": "end"
|
| 664 |
+
}
|
| 665 |
+
]
|
| 666 |
+
],
|
| 667 |
+
[
|
| 668 |
+
"root ::= [a-z]",
|
| 669 |
+
"z",
|
| 670 |
+
[
|
| 671 |
+
{
|
| 672 |
+
"type": "end"
|
| 673 |
+
}
|
| 674 |
+
]
|
| 675 |
+
],
|
| 676 |
+
[
|
| 677 |
+
"root ::= [a-zA-Z]",
|
| 678 |
+
"a",
|
| 679 |
+
[
|
| 680 |
+
{
|
| 681 |
+
"type": "end"
|
| 682 |
+
}
|
| 683 |
+
]
|
| 684 |
+
],
|
| 685 |
+
[
|
| 686 |
+
"root ::= [a-zA-Z]",
|
| 687 |
+
"Z",
|
| 688 |
+
[
|
| 689 |
+
{
|
| 690 |
+
"type": "end"
|
| 691 |
+
}
|
| 692 |
+
]
|
| 693 |
+
],
|
| 694 |
+
[
|
| 695 |
+
"root ::= [a-zA-Z0-9]",
|
| 696 |
+
"Z",
|
| 697 |
+
[
|
| 698 |
+
{
|
| 699 |
+
"type": "end"
|
| 700 |
+
}
|
| 701 |
+
]
|
| 702 |
+
],
|
| 703 |
+
[
|
| 704 |
+
"root ::= [a-zA-Z0-9]",
|
| 705 |
+
"0",
|
| 706 |
+
[
|
| 707 |
+
{
|
| 708 |
+
"type": "end"
|
| 709 |
+
}
|
| 710 |
+
]
|
| 711 |
+
],
|
| 712 |
+
[
|
| 713 |
+
"root ::= [a-zA-Z0-9]",
|
| 714 |
+
"9",
|
| 715 |
+
[
|
| 716 |
+
{
|
| 717 |
+
"type": "end"
|
| 718 |
+
}
|
| 719 |
+
]
|
| 720 |
+
],
|
| 721 |
+
[
|
| 722 |
+
"root ::= [a-z]?",
|
| 723 |
+
"",
|
| 724 |
+
[
|
| 725 |
+
{
|
| 726 |
+
"type": "char",
|
| 727 |
+
"value": [
|
| 728 |
+
[
|
| 729 |
+
97,
|
| 730 |
+
122
|
| 731 |
+
]
|
| 732 |
+
]
|
| 733 |
+
},
|
| 734 |
+
{
|
| 735 |
+
"type": "end"
|
| 736 |
+
}
|
| 737 |
+
]
|
| 738 |
+
],
|
| 739 |
+
[
|
| 740 |
+
"root ::= [a-z]?",
|
| 741 |
+
"a",
|
| 742 |
+
[
|
| 743 |
+
{
|
| 744 |
+
"type": "end"
|
| 745 |
+
}
|
| 746 |
+
]
|
| 747 |
+
],
|
| 748 |
+
[
|
| 749 |
+
"root ::= [a-zA-Z]?",
|
| 750 |
+
"Z",
|
| 751 |
+
[
|
| 752 |
+
{
|
| 753 |
+
"type": "end"
|
| 754 |
+
}
|
| 755 |
+
]
|
| 756 |
+
],
|
| 757 |
+
[
|
| 758 |
+
"root ::= [a-zA-Z0-9]?",
|
| 759 |
+
"0",
|
| 760 |
+
[
|
| 761 |
+
{
|
| 762 |
+
"type": "end"
|
| 763 |
+
}
|
| 764 |
+
]
|
| 765 |
+
],
|
| 766 |
+
[
|
| 767 |
+
"root ::= [a-z]+",
|
| 768 |
+
"",
|
| 769 |
+
[
|
| 770 |
+
{
|
| 771 |
+
"type": "char",
|
| 772 |
+
"value": [
|
| 773 |
+
[
|
| 774 |
+
97,
|
| 775 |
+
122
|
| 776 |
+
]
|
| 777 |
+
]
|
| 778 |
+
}
|
| 779 |
+
]
|
| 780 |
+
],
|
| 781 |
+
[
|
| 782 |
+
"root ::= [a-z]+",
|
| 783 |
+
"l",
|
| 784 |
+
[
|
| 785 |
+
{
|
| 786 |
+
"type": "char",
|
| 787 |
+
"value": [
|
| 788 |
+
[
|
| 789 |
+
97,
|
| 790 |
+
122
|
| 791 |
+
]
|
| 792 |
+
]
|
| 793 |
+
},
|
| 794 |
+
{
|
| 795 |
+
"type": "end"
|
| 796 |
+
}
|
| 797 |
+
]
|
| 798 |
+
],
|
| 799 |
+
[
|
| 800 |
+
"root ::= [a-zA-Z]+",
|
| 801 |
+
"Z",
|
| 802 |
+
[
|
| 803 |
+
{
|
| 804 |
+
"type": "char",
|
| 805 |
+
"value": [
|
| 806 |
+
[
|
| 807 |
+
97,
|
| 808 |
+
122
|
| 809 |
+
],
|
| 810 |
+
[
|
| 811 |
+
65,
|
| 812 |
+
90
|
| 813 |
+
]
|
| 814 |
+
]
|
| 815 |
+
},
|
| 816 |
+
{
|
| 817 |
+
"type": "end"
|
| 818 |
+
}
|
| 819 |
+
]
|
| 820 |
+
],
|
| 821 |
+
[
|
| 822 |
+
"root ::= [a-zA-Z]+",
|
| 823 |
+
"aZ",
|
| 824 |
+
[
|
| 825 |
+
{
|
| 826 |
+
"type": "char",
|
| 827 |
+
"value": [
|
| 828 |
+
[
|
| 829 |
+
97,
|
| 830 |
+
122
|
| 831 |
+
],
|
| 832 |
+
[
|
| 833 |
+
65,
|
| 834 |
+
90
|
| 835 |
+
]
|
| 836 |
+
]
|
| 837 |
+
},
|
| 838 |
+
{
|
| 839 |
+
"type": "end"
|
| 840 |
+
}
|
| 841 |
+
]
|
| 842 |
+
],
|
| 843 |
+
[
|
| 844 |
+
"root ::= [a-zA-Z]+",
|
| 845 |
+
"azAZ",
|
| 846 |
+
[
|
| 847 |
+
{
|
| 848 |
+
"type": "char",
|
| 849 |
+
"value": [
|
| 850 |
+
[
|
| 851 |
+
97,
|
| 852 |
+
122
|
| 853 |
+
],
|
| 854 |
+
[
|
| 855 |
+
65,
|
| 856 |
+
90
|
| 857 |
+
]
|
| 858 |
+
]
|
| 859 |
+
},
|
| 860 |
+
{
|
| 861 |
+
"type": "end"
|
| 862 |
+
}
|
| 863 |
+
]
|
| 864 |
+
],
|
| 865 |
+
[
|
| 866 |
+
"root ::= [a-z]*",
|
| 867 |
+
"",
|
| 868 |
+
[
|
| 869 |
+
{
|
| 870 |
+
"type": "char",
|
| 871 |
+
"value": [
|
| 872 |
+
[
|
| 873 |
+
97,
|
| 874 |
+
122
|
| 875 |
+
]
|
| 876 |
+
]
|
| 877 |
+
},
|
| 878 |
+
{
|
| 879 |
+
"type": "end"
|
| 880 |
+
}
|
| 881 |
+
]
|
| 882 |
+
],
|
| 883 |
+
[
|
| 884 |
+
"root ::= [a-z]*",
|
| 885 |
+
"a",
|
| 886 |
+
[
|
| 887 |
+
{
|
| 888 |
+
"type": "char",
|
| 889 |
+
"value": [
|
| 890 |
+
[
|
| 891 |
+
97,
|
| 892 |
+
122
|
| 893 |
+
]
|
| 894 |
+
]
|
| 895 |
+
},
|
| 896 |
+
{
|
| 897 |
+
"type": "end"
|
| 898 |
+
}
|
| 899 |
+
]
|
| 900 |
+
],
|
| 901 |
+
[
|
| 902 |
+
"root ::= [a-zA-Z]+",
|
| 903 |
+
"Z",
|
| 904 |
+
[
|
| 905 |
+
{
|
| 906 |
+
"type": "char",
|
| 907 |
+
"value": [
|
| 908 |
+
[
|
| 909 |
+
97,
|
| 910 |
+
122
|
| 911 |
+
],
|
| 912 |
+
[
|
| 913 |
+
65,
|
| 914 |
+
90
|
| 915 |
+
]
|
| 916 |
+
]
|
| 917 |
+
},
|
| 918 |
+
{
|
| 919 |
+
"type": "end"
|
| 920 |
+
}
|
| 921 |
+
]
|
| 922 |
+
],
|
| 923 |
+
[
|
| 924 |
+
"root ::= [a-zA-Z]+",
|
| 925 |
+
"abczABCZ",
|
| 926 |
+
[
|
| 927 |
+
{
|
| 928 |
+
"type": "char",
|
| 929 |
+
"value": [
|
| 930 |
+
[
|
| 931 |
+
97,
|
| 932 |
+
122
|
| 933 |
+
],
|
| 934 |
+
[
|
| 935 |
+
65,
|
| 936 |
+
90
|
| 937 |
+
]
|
| 938 |
+
]
|
| 939 |
+
},
|
| 940 |
+
{
|
| 941 |
+
"type": "end"
|
| 942 |
+
}
|
| 943 |
+
]
|
| 944 |
+
],
|
| 945 |
+
[
|
| 946 |
+
"root ::= [^f]+ \"o\"",
|
| 947 |
+
"aaa",
|
| 948 |
+
[
|
| 949 |
+
{
|
| 950 |
+
"type": "char_exclude",
|
| 951 |
+
"value": [
|
| 952 |
+
102
|
| 953 |
+
]
|
| 954 |
+
},
|
| 955 |
+
{
|
| 956 |
+
"type": "char",
|
| 957 |
+
"value": [
|
| 958 |
+
111
|
| 959 |
+
]
|
| 960 |
+
}
|
| 961 |
+
]
|
| 962 |
+
],
|
| 963 |
+
[
|
| 964 |
+
"root ::= [^A-Z]+",
|
| 965 |
+
"abc",
|
| 966 |
+
[
|
| 967 |
+
{
|
| 968 |
+
"type": "char_exclude",
|
| 969 |
+
"value": [
|
| 970 |
+
[
|
| 971 |
+
65,
|
| 972 |
+
90
|
| 973 |
+
]
|
| 974 |
+
]
|
| 975 |
+
},
|
| 976 |
+
{
|
| 977 |
+
"type": "end"
|
| 978 |
+
}
|
| 979 |
+
]
|
| 980 |
+
],
|
| 981 |
+
[
|
| 982 |
+
"root ::= [^A-Z0-9]*",
|
| 983 |
+
"abc",
|
| 984 |
+
[
|
| 985 |
+
{
|
| 986 |
+
"type": "char_exclude",
|
| 987 |
+
"value": [
|
| 988 |
+
[
|
| 989 |
+
65,
|
| 990 |
+
90
|
| 991 |
+
],
|
| 992 |
+
[
|
| 993 |
+
48,
|
| 994 |
+
57
|
| 995 |
+
]
|
| 996 |
+
]
|
| 997 |
+
},
|
| 998 |
+
{
|
| 999 |
+
"type": "end"
|
| 1000 |
+
}
|
| 1001 |
+
]
|
| 1002 |
+
],
|
| 1003 |
+
[
|
| 1004 |
+
"root ::= [^A-Z0-9_-]*",
|
| 1005 |
+
"abc",
|
| 1006 |
+
[
|
| 1007 |
+
{
|
| 1008 |
+
"type": "char_exclude",
|
| 1009 |
+
"value": [
|
| 1010 |
+
[
|
| 1011 |
+
65,
|
| 1012 |
+
90
|
| 1013 |
+
],
|
| 1014 |
+
[
|
| 1015 |
+
48,
|
| 1016 |
+
57
|
| 1017 |
+
],
|
| 1018 |
+
95,
|
| 1019 |
+
45
|
| 1020 |
+
]
|
| 1021 |
+
},
|
| 1022 |
+
{
|
| 1023 |
+
"type": "end"
|
| 1024 |
+
}
|
| 1025 |
+
]
|
| 1026 |
+
],
|
| 1027 |
+
[
|
| 1028 |
+
"\nroot ::= [a-z] | xyx\nxyx ::= \"foo\"",
|
| 1029 |
+
"f",
|
| 1030 |
+
[
|
| 1031 |
+
{
|
| 1032 |
+
"type": "end"
|
| 1033 |
+
},
|
| 1034 |
+
{
|
| 1035 |
+
"type": "char",
|
| 1036 |
+
"value": [
|
| 1037 |
+
111
|
| 1038 |
+
]
|
| 1039 |
+
}
|
| 1040 |
+
]
|
| 1041 |
+
],
|
| 1042 |
+
[
|
| 1043 |
+
"root ::= \"foo\" | \"bar\" | \"baz\" | \"bazaar\" | \"barrington\" ",
|
| 1044 |
+
"bazaa",
|
| 1045 |
+
[
|
| 1046 |
+
{
|
| 1047 |
+
"type": "char",
|
| 1048 |
+
"value": [
|
| 1049 |
+
114
|
| 1050 |
+
]
|
| 1051 |
+
}
|
| 1052 |
+
]
|
| 1053 |
+
],
|
| 1054 |
+
[
|
| 1055 |
+
"root ::= (\"bar\" | \"foo\") \"zyx\"",
|
| 1056 |
+
"bar",
|
| 1057 |
+
[
|
| 1058 |
+
{
|
| 1059 |
+
"type": "char",
|
| 1060 |
+
"value": [
|
| 1061 |
+
122
|
| 1062 |
+
]
|
| 1063 |
+
}
|
| 1064 |
+
]
|
| 1065 |
+
],
|
| 1066 |
+
[
|
| 1067 |
+
"root ::= \"z\" (\"bar\" | \"foo\") \"zzzz\"",
|
| 1068 |
+
"z",
|
| 1069 |
+
[
|
| 1070 |
+
{
|
| 1071 |
+
"type": "char",
|
| 1072 |
+
"value": [
|
| 1073 |
+
98
|
| 1074 |
+
]
|
| 1075 |
+
},
|
| 1076 |
+
{
|
| 1077 |
+
"type": "char",
|
| 1078 |
+
"value": [
|
| 1079 |
+
102
|
| 1080 |
+
]
|
| 1081 |
+
}
|
| 1082 |
+
]
|
| 1083 |
+
],
|
| 1084 |
+
[
|
| 1085 |
+
"root ::= \"z\" (\"bar\" | \"foo\") \"zzz\"",
|
| 1086 |
+
"zbar",
|
| 1087 |
+
[
|
| 1088 |
+
{
|
| 1089 |
+
"type": "char",
|
| 1090 |
+
"value": [
|
| 1091 |
+
122
|
| 1092 |
+
]
|
| 1093 |
+
}
|
| 1094 |
+
]
|
| 1095 |
+
],
|
| 1096 |
+
[
|
| 1097 |
+
"\nroot ::= termz ([-+*/] termz)* \ntermz ::= [0-9]+",
|
| 1098 |
+
"1",
|
| 1099 |
+
[
|
| 1100 |
+
{
|
| 1101 |
+
"type": "char",
|
| 1102 |
+
"value": [
|
| 1103 |
+
[
|
| 1104 |
+
48,
|
| 1105 |
+
57
|
| 1106 |
+
]
|
| 1107 |
+
]
|
| 1108 |
+
},
|
| 1109 |
+
{
|
| 1110 |
+
"type": "char",
|
| 1111 |
+
"value": [
|
| 1112 |
+
45,
|
| 1113 |
+
43,
|
| 1114 |
+
42,
|
| 1115 |
+
47
|
| 1116 |
+
]
|
| 1117 |
+
},
|
| 1118 |
+
{
|
| 1119 |
+
"type": "end"
|
| 1120 |
+
}
|
| 1121 |
+
]
|
| 1122 |
+
],
|
| 1123 |
+
[
|
| 1124 |
+
"\nroot ::= expr \"=\" termy \nexpr ::= termy ([-+*/] termy)*\ntermy ::= [0-9]+",
|
| 1125 |
+
"1",
|
| 1126 |
+
[
|
| 1127 |
+
{
|
| 1128 |
+
"type": "char",
|
| 1129 |
+
"value": [
|
| 1130 |
+
[
|
| 1131 |
+
48,
|
| 1132 |
+
57
|
| 1133 |
+
]
|
| 1134 |
+
]
|
| 1135 |
+
},
|
| 1136 |
+
{
|
| 1137 |
+
"type": "char",
|
| 1138 |
+
"value": [
|
| 1139 |
+
45,
|
| 1140 |
+
43,
|
| 1141 |
+
42,
|
| 1142 |
+
47
|
| 1143 |
+
]
|
| 1144 |
+
},
|
| 1145 |
+
{
|
| 1146 |
+
"type": "char",
|
| 1147 |
+
"value": [
|
| 1148 |
+
61
|
| 1149 |
+
]
|
| 1150 |
+
}
|
| 1151 |
+
]
|
| 1152 |
+
],
|
| 1153 |
+
[
|
| 1154 |
+
"\nroot ::= (expr \"=\" terma \"\n\")+\nexpr ::= terma ([-+*/] terma)*\nterma ::= [0-9]+",
|
| 1155 |
+
"1",
|
| 1156 |
+
[
|
| 1157 |
+
{
|
| 1158 |
+
"type": "char",
|
| 1159 |
+
"value": [
|
| 1160 |
+
[
|
| 1161 |
+
48,
|
| 1162 |
+
57
|
| 1163 |
+
]
|
| 1164 |
+
]
|
| 1165 |
+
},
|
| 1166 |
+
{
|
| 1167 |
+
"type": "char",
|
| 1168 |
+
"value": [
|
| 1169 |
+
45,
|
| 1170 |
+
43,
|
| 1171 |
+
42,
|
| 1172 |
+
47
|
| 1173 |
+
]
|
| 1174 |
+
},
|
| 1175 |
+
{
|
| 1176 |
+
"type": "char",
|
| 1177 |
+
"value": [
|
| 1178 |
+
61
|
| 1179 |
+
]
|
| 1180 |
+
}
|
| 1181 |
+
]
|
| 1182 |
+
],
|
| 1183 |
+
[
|
| 1184 |
+
"root ::= (expr \"=\" termb \"\n\")+\nexpr ::= termb ([-+*/] termb)*\ntermb ::= [0-9]+",
|
| 1185 |
+
"1+",
|
| 1186 |
+
[
|
| 1187 |
+
{
|
| 1188 |
+
"type": "char",
|
| 1189 |
+
"value": [
|
| 1190 |
+
[
|
| 1191 |
+
48,
|
| 1192 |
+
57
|
| 1193 |
+
]
|
| 1194 |
+
]
|
| 1195 |
+
}
|
| 1196 |
+
]
|
| 1197 |
+
],
|
| 1198 |
+
[
|
| 1199 |
+
"\nroot ::= (expr \"=\" termc \"\n\")+\nexpr ::= termc ([-+*/] termc)*\ntermc ::= [0-9]+",
|
| 1200 |
+
"1=",
|
| 1201 |
+
[
|
| 1202 |
+
{
|
| 1203 |
+
"type": "char",
|
| 1204 |
+
"value": [
|
| 1205 |
+
[
|
| 1206 |
+
48,
|
| 1207 |
+
57
|
| 1208 |
+
]
|
| 1209 |
+
]
|
| 1210 |
+
}
|
| 1211 |
+
]
|
| 1212 |
+
],
|
| 1213 |
+
[
|
| 1214 |
+
"root ::= (expr \"=\" termd \"\n\")+\nexpr ::= termd ([-+*/] termd)*\ntermd ::= [0-9]+",
|
| 1215 |
+
"1+1",
|
| 1216 |
+
[
|
| 1217 |
+
{
|
| 1218 |
+
"type": "char",
|
| 1219 |
+
"value": [
|
| 1220 |
+
[
|
| 1221 |
+
48,
|
| 1222 |
+
57
|
| 1223 |
+
]
|
| 1224 |
+
]
|
| 1225 |
+
},
|
| 1226 |
+
{
|
| 1227 |
+
"type": "char",
|
| 1228 |
+
"value": [
|
| 1229 |
+
45,
|
| 1230 |
+
43,
|
| 1231 |
+
42,
|
| 1232 |
+
47
|
| 1233 |
+
]
|
| 1234 |
+
},
|
| 1235 |
+
{
|
| 1236 |
+
"type": "char",
|
| 1237 |
+
"value": [
|
| 1238 |
+
61
|
| 1239 |
+
]
|
| 1240 |
+
}
|
| 1241 |
+
]
|
| 1242 |
+
],
|
| 1243 |
+
[
|
| 1244 |
+
"root ::= (expr \"=\" term \"\n\")+\nexpr ::= term ([-+*/] term)*\nterm ::= [0-9]+",
|
| 1245 |
+
"1=1",
|
| 1246 |
+
[
|
| 1247 |
+
{
|
| 1248 |
+
"type": "char",
|
| 1249 |
+
"value": [
|
| 1250 |
+
[
|
| 1251 |
+
48,
|
| 1252 |
+
57
|
| 1253 |
+
]
|
| 1254 |
+
]
|
| 1255 |
+
},
|
| 1256 |
+
{
|
| 1257 |
+
"type": "char",
|
| 1258 |
+
"value": [
|
| 1259 |
+
10
|
| 1260 |
+
]
|
| 1261 |
+
}
|
| 1262 |
+
]
|
| 1263 |
+
],
|
| 1264 |
+
[
|
| 1265 |
+
"root ::= \"\\\"\" ( [^\\\"abcdefghA-Z])* ",
|
| 1266 |
+
"\"is not only in its lyrism, its vow to sustin it in its poo-sion, its r,v:l'y, it's tory,",
|
| 1267 |
+
[
|
| 1268 |
+
{
|
| 1269 |
+
"type": "char_exclude",
|
| 1270 |
+
"value": [
|
| 1271 |
+
34,
|
| 1272 |
+
97,
|
| 1273 |
+
98,
|
| 1274 |
+
99,
|
| 1275 |
+
100,
|
| 1276 |
+
101,
|
| 1277 |
+
102,
|
| 1278 |
+
103,
|
| 1279 |
+
104,
|
| 1280 |
+
[
|
| 1281 |
+
65,
|
| 1282 |
+
90
|
| 1283 |
+
]
|
| 1284 |
+
]
|
| 1285 |
+
},
|
| 1286 |
+
{
|
| 1287 |
+
"type": "end"
|
| 1288 |
+
}
|
| 1289 |
+
]
|
| 1290 |
+
],
|
| 1291 |
+
[
|
| 1292 |
+
"root ::= ( [^abcdefgh] | [b-z])* ",
|
| 1293 |
+
"bcdefghzyxw0123ABCZ",
|
| 1294 |
+
[
|
| 1295 |
+
{
|
| 1296 |
+
"type": "char_exclude",
|
| 1297 |
+
"value": [
|
| 1298 |
+
97,
|
| 1299 |
+
98,
|
| 1300 |
+
99,
|
| 1301 |
+
100,
|
| 1302 |
+
101,
|
| 1303 |
+
102,
|
| 1304 |
+
103,
|
| 1305 |
+
104
|
| 1306 |
+
]
|
| 1307 |
+
},
|
| 1308 |
+
{
|
| 1309 |
+
"type": "char",
|
| 1310 |
+
"value": [
|
| 1311 |
+
[
|
| 1312 |
+
98,
|
| 1313 |
+
122
|
| 1314 |
+
]
|
| 1315 |
+
]
|
| 1316 |
+
},
|
| 1317 |
+
{
|
| 1318 |
+
"type": "end"
|
| 1319 |
+
}
|
| 1320 |
+
]
|
| 1321 |
+
]
|
| 1322 |
+
]
|
v2-models-effort/runs/20261027-114410-shrill-dew/ported_implementation/integration_tests/generated/iteration/iteration_with_an_initial_string_test.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import json
|
| 2 |
+
from pathlib import Path
|
| 3 |
+
|
| 4 |
+
import pytest
|
| 5 |
+
|
| 6 |
+
from gbnf import GBNF
|
| 7 |
+
|
| 8 |
+
CASES = json.loads((Path(__file__).parent / 'iteration_with_an_initial_string.json').read_text(encoding='utf-8'))
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
def describe_iteration():
|
| 12 |
+
@pytest.mark.parametrize('grammar, input, expected', CASES)
|
| 13 |
+
def it_returns_parse_state_for_a_grammar_and_initial_string(grammar, input, expected):
|
| 14 |
+
state = GBNF(grammar)
|
| 15 |
+
state = state.add(input)
|
| 16 |
+
assert list(state) == expected
|
v2-models-effort/runs/20261027-114410-shrill-dew/ported_implementation/integration_tests/generated/validation/__pycache__/validate_grammar_test.cpython-314-pytest-9.1.1.pyc
ADDED
|
Binary file (5.13 kB). View file
|
|
|
v2-models-effort/runs/20261027-114410-shrill-dew/ported_implementation/integration_tests/generated/validation/__pycache__/validate_input_test.cpython-314-pytest-9.1.1.pyc
ADDED
|
Binary file (4.66 kB). View file
|
|
|
v2-models-effort/runs/20261027-114410-shrill-dew/ported_implementation/integration_tests/generated/validation/validate_grammar_invalid.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
[
|
| 3 |
+
"",
|
| 4 |
+
0,
|
| 5 |
+
"No rules were found"
|
| 6 |
+
],
|
| 7 |
+
[
|
| 8 |
+
"root = \"foo\"",
|
| 9 |
+
5,
|
| 10 |
+
"Expecting ::= at 5"
|
| 11 |
+
],
|
| 12 |
+
[
|
| 13 |
+
"root ::= foo\nfoo := \"foo\"\n ",
|
| 14 |
+
17,
|
| 15 |
+
"Expecting ::= at 17"
|
| 16 |
+
],
|
| 17 |
+
[
|
| 18 |
+
"root ::= foo",
|
| 19 |
+
9,
|
| 20 |
+
"Undefined rule identifier \"foo\""
|
| 21 |
+
],
|
| 22 |
+
[
|
| 23 |
+
"root ::= foo\nbar ::= \"bar\"\n ",
|
| 24 |
+
9,
|
| 25 |
+
"Undefined rule identifier \"foo\""
|
| 26 |
+
],
|
| 27 |
+
[
|
| 28 |
+
"root ::= foo\nfoo ::= baz\nbar ::= \"bar\"\n ",
|
| 29 |
+
21,
|
| 30 |
+
"Undefined rule identifier \"baz\""
|
| 31 |
+
],
|
| 32 |
+
[
|
| 33 |
+
"root ::= foo ::= bar",
|
| 34 |
+
13,
|
| 35 |
+
"Expecting newline or end at 13"
|
| 36 |
+
],
|
| 37 |
+
[
|
| 38 |
+
"root ::= ([a-z]\nfoo ::= \"foo\"\n ",
|
| 39 |
+
20,
|
| 40 |
+
"Expecting ')' at 20"
|
| 41 |
+
]
|
| 42 |
+
]
|
v2-models-effort/runs/20261027-114410-shrill-dew/ported_implementation/integration_tests/generated/validation/validate_grammar_test.py
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import json
|
| 2 |
+
from pathlib import Path
|
| 3 |
+
|
| 4 |
+
import pytest
|
| 5 |
+
|
| 6 |
+
from gbnf import GBNF, GrammarParseError
|
| 7 |
+
|
| 8 |
+
DATA = Path(__file__).parent
|
| 9 |
+
VALID = json.loads((DATA / 'validate_grammar_valid.json').read_text(encoding='utf-8'))
|
| 10 |
+
INVALID = json.loads((DATA / 'validate_grammar_invalid.json').read_text(encoding='utf-8'))
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
def describe_validate_grammar():
|
| 14 |
+
@pytest.mark.parametrize('grammar', VALID)
|
| 15 |
+
def it_parses_a_grammar(grammar):
|
| 16 |
+
assert GBNF(grammar)
|
| 17 |
+
|
| 18 |
+
@pytest.mark.parametrize('grammar, error_pos, error_reason', INVALID)
|
| 19 |
+
def it_reports_an_error_for_an_invalid_grammar(grammar, error_pos, error_reason):
|
| 20 |
+
with pytest.raises(GrammarParseError) as exc_info:
|
| 21 |
+
GBNF(grammar)
|
| 22 |
+
assert str(exc_info.value) == str(GrammarParseError(grammar, error_pos, error_reason))
|
v2-models-effort/runs/20261027-114410-shrill-dew/ported_implementation/integration_tests/generated/validation/validate_grammar_valid.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
"root ::= \"foo\"",
|
| 3 |
+
"root ::= \"foo\" | \"bar\"",
|
| 4 |
+
"root ::= (\"foo\" | \"bar\")",
|
| 5 |
+
"root ::= (\"foo\" | \"bar\")?",
|
| 6 |
+
"root ::= (\"foo\" | \"bar\")*",
|
| 7 |
+
"root ::= (\"foo\" | \"bar\")+",
|
| 8 |
+
"root ::= [a-z]",
|
| 9 |
+
"root ::= [a-zA-Z]",
|
| 10 |
+
"root ::= [a-zA-Z0-9]",
|
| 11 |
+
"root ::= [a-zA-Z0-9]*",
|
| 12 |
+
"root ::= [a-zA-Z0-9]?",
|
| 13 |
+
"root ::= [a-z]+",
|
| 14 |
+
"root ::= [a-zA-Z0-9]+",
|
| 15 |
+
"root ::= ([a-zA-Z0-9])*",
|
| 16 |
+
"root ::= ([a-zA-Z0-9])?",
|
| 17 |
+
"root ::= ([a-zA-Z0-9])+",
|
| 18 |
+
"\n root ::= foo\n foo ::= \"foo\"",
|
| 19 |
+
"\n root ::= foo\n foo ::= \"foo\" | \"bar\" | ([a-z])?\n "
|
| 20 |
+
]
|
v2-models-effort/runs/20261027-114410-shrill-dew/ported_implementation/integration_tests/generated/validation/validate_input_invalid.json
ADDED
|
@@ -0,0 +1,337 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
[
|
| 3 |
+
"root ::= \"foo\"",
|
| 4 |
+
"2",
|
| 5 |
+
0
|
| 6 |
+
],
|
| 7 |
+
[
|
| 8 |
+
"root ::= \"foo\"",
|
| 9 |
+
"b",
|
| 10 |
+
0
|
| 11 |
+
],
|
| 12 |
+
[
|
| 13 |
+
"root ::= \"foo\"",
|
| 14 |
+
"f1",
|
| 15 |
+
1
|
| 16 |
+
],
|
| 17 |
+
[
|
| 18 |
+
"root ::= \"foo\"",
|
| 19 |
+
"fo1",
|
| 20 |
+
2
|
| 21 |
+
],
|
| 22 |
+
[
|
| 23 |
+
"root ::= \"foo\"",
|
| 24 |
+
"fooo",
|
| 25 |
+
3
|
| 26 |
+
],
|
| 27 |
+
[
|
| 28 |
+
"root ::= \"foo\"",
|
| 29 |
+
"fooooooo",
|
| 30 |
+
3
|
| 31 |
+
],
|
| 32 |
+
[
|
| 33 |
+
"root ::= \"foo\" | \"bar\"",
|
| 34 |
+
"1",
|
| 35 |
+
0
|
| 36 |
+
],
|
| 37 |
+
[
|
| 38 |
+
"root ::= \"foo\" | \"bar\"",
|
| 39 |
+
"z",
|
| 40 |
+
0
|
| 41 |
+
],
|
| 42 |
+
[
|
| 43 |
+
"root ::= \"foo\" | \"bar\"",
|
| 44 |
+
"f1",
|
| 45 |
+
1
|
| 46 |
+
],
|
| 47 |
+
[
|
| 48 |
+
"root ::= \"foo\" | \"bar\"",
|
| 49 |
+
"b1",
|
| 50 |
+
1
|
| 51 |
+
],
|
| 52 |
+
[
|
| 53 |
+
"root ::= \"foo\" | \"bar\"",
|
| 54 |
+
"fo1",
|
| 55 |
+
2
|
| 56 |
+
],
|
| 57 |
+
[
|
| 58 |
+
"root ::= \"foo\" | \"bar\"",
|
| 59 |
+
"ba1",
|
| 60 |
+
2
|
| 61 |
+
],
|
| 62 |
+
[
|
| 63 |
+
"root ::= \"foo\" | \"bar\"",
|
| 64 |
+
"fooo",
|
| 65 |
+
3
|
| 66 |
+
],
|
| 67 |
+
[
|
| 68 |
+
"root ::= \"foo\" | \"bar\"",
|
| 69 |
+
"barrr",
|
| 70 |
+
3
|
| 71 |
+
],
|
| 72 |
+
[
|
| 73 |
+
"root ::= \"foo\" | \"bar\" | \"baz\"",
|
| 74 |
+
"1",
|
| 75 |
+
0
|
| 76 |
+
],
|
| 77 |
+
[
|
| 78 |
+
"root ::= \"foo\" | \"bar\" | \"baz\"",
|
| 79 |
+
"z",
|
| 80 |
+
0
|
| 81 |
+
],
|
| 82 |
+
[
|
| 83 |
+
"root ::= \"foo\" | \"bar\" | \"baz\"",
|
| 84 |
+
"f1",
|
| 85 |
+
1
|
| 86 |
+
],
|
| 87 |
+
[
|
| 88 |
+
"root ::= \"foo\" | \"bar\" | \"baz\"",
|
| 89 |
+
"b1",
|
| 90 |
+
1
|
| 91 |
+
],
|
| 92 |
+
[
|
| 93 |
+
"root ::= \"foo\" | \"bar\" | \"baz\"",
|
| 94 |
+
"fo1",
|
| 95 |
+
2
|
| 96 |
+
],
|
| 97 |
+
[
|
| 98 |
+
"root ::= \"foo\" | \"bar\" | \"baz\"",
|
| 99 |
+
"bal",
|
| 100 |
+
2
|
| 101 |
+
],
|
| 102 |
+
[
|
| 103 |
+
"root ::= \"foo\" | \"bar\" | \"baz\"",
|
| 104 |
+
"fooo",
|
| 105 |
+
3
|
| 106 |
+
],
|
| 107 |
+
[
|
| 108 |
+
"root ::= \"foo\" | \"bar\" | \"baz\"",
|
| 109 |
+
"bazrr",
|
| 110 |
+
3
|
| 111 |
+
],
|
| 112 |
+
[
|
| 113 |
+
"root ::= [^a]",
|
| 114 |
+
"a",
|
| 115 |
+
0
|
| 116 |
+
],
|
| 117 |
+
[
|
| 118 |
+
"root ::= [^abc]",
|
| 119 |
+
"b",
|
| 120 |
+
0
|
| 121 |
+
],
|
| 122 |
+
[
|
| 123 |
+
"root ::= [^a-z]",
|
| 124 |
+
"z",
|
| 125 |
+
0
|
| 126 |
+
],
|
| 127 |
+
[
|
| 128 |
+
"root ::= [^a-zA-Z]",
|
| 129 |
+
"X",
|
| 130 |
+
0
|
| 131 |
+
],
|
| 132 |
+
[
|
| 133 |
+
"root ::= [^a-zA-Z0-9]",
|
| 134 |
+
"8",
|
| 135 |
+
0
|
| 136 |
+
],
|
| 137 |
+
[
|
| 138 |
+
"\n root ::= foo\n foo ::= \"foo\"",
|
| 139 |
+
"1",
|
| 140 |
+
0
|
| 141 |
+
],
|
| 142 |
+
[
|
| 143 |
+
"\n root ::= foo\n foo ::= \"foo\"",
|
| 144 |
+
"b",
|
| 145 |
+
0
|
| 146 |
+
],
|
| 147 |
+
[
|
| 148 |
+
"\n root ::= foo\n foo ::= \"foo\"",
|
| 149 |
+
"f1",
|
| 150 |
+
1
|
| 151 |
+
],
|
| 152 |
+
[
|
| 153 |
+
"\n root ::= foo\n foo ::= \"foo\"",
|
| 154 |
+
"fo1",
|
| 155 |
+
2
|
| 156 |
+
],
|
| 157 |
+
[
|
| 158 |
+
"\n root ::= foo\n foo ::= \"foo\"",
|
| 159 |
+
"fooo",
|
| 160 |
+
3
|
| 161 |
+
],
|
| 162 |
+
[
|
| 163 |
+
"\n root::=foo|\"bar\"\n foo::=\"foo\"",
|
| 164 |
+
"1",
|
| 165 |
+
0
|
| 166 |
+
],
|
| 167 |
+
[
|
| 168 |
+
"\n root::=foo|\"bar\"\n foo::=\"foo\"",
|
| 169 |
+
"z",
|
| 170 |
+
0
|
| 171 |
+
],
|
| 172 |
+
[
|
| 173 |
+
"\n root::=foo|\"bar\"\n foo::=\"foo\"",
|
| 174 |
+
"f1",
|
| 175 |
+
1
|
| 176 |
+
],
|
| 177 |
+
[
|
| 178 |
+
"\n root::=foo|\"bar\"\n foo::=\"foo\"",
|
| 179 |
+
"b1",
|
| 180 |
+
1
|
| 181 |
+
],
|
| 182 |
+
[
|
| 183 |
+
"\n root::=foo|\"bar\"\n foo::=\"foo\"",
|
| 184 |
+
"fo1",
|
| 185 |
+
2
|
| 186 |
+
],
|
| 187 |
+
[
|
| 188 |
+
"\n root::=foo|\"bar\"\n foo::=\"foo\"",
|
| 189 |
+
"fooo",
|
| 190 |
+
3
|
| 191 |
+
],
|
| 192 |
+
[
|
| 193 |
+
"\n root::=foo|\"bar\"\n foo::=\"foo\"",
|
| 194 |
+
"barr",
|
| 195 |
+
3
|
| 196 |
+
],
|
| 197 |
+
[
|
| 198 |
+
"\n root::= foo | bar\n foo::=\"foo\"\n bar::=\"bar\"",
|
| 199 |
+
"1",
|
| 200 |
+
0
|
| 201 |
+
],
|
| 202 |
+
[
|
| 203 |
+
"\n root::= foo | bar\n foo::=\"foo\"\n bar::=\"bar\"",
|
| 204 |
+
"z",
|
| 205 |
+
0
|
| 206 |
+
],
|
| 207 |
+
[
|
| 208 |
+
"\n root::= foo | bar\n foo::=\"foo\"\n bar::=\"bar\"",
|
| 209 |
+
"f1",
|
| 210 |
+
1
|
| 211 |
+
],
|
| 212 |
+
[
|
| 213 |
+
"\n root::= foo | bar\n foo::=\"foo\"\n bar::=\"bar\"",
|
| 214 |
+
"b1",
|
| 215 |
+
1
|
| 216 |
+
],
|
| 217 |
+
[
|
| 218 |
+
"\n root::= foo | bar\n foo::=\"foo\"\n bar::=\"bar\"",
|
| 219 |
+
"fo1",
|
| 220 |
+
2
|
| 221 |
+
],
|
| 222 |
+
[
|
| 223 |
+
"\n root::= foo | bar\n foo::=\"foo\"\n bar::=\"bar\"",
|
| 224 |
+
"fooo",
|
| 225 |
+
3
|
| 226 |
+
],
|
| 227 |
+
[
|
| 228 |
+
"\n root::= foo | bar\n foo::=\"foo\"\n bar::=\"bar\"",
|
| 229 |
+
"barr",
|
| 230 |
+
3
|
| 231 |
+
],
|
| 232 |
+
[
|
| 233 |
+
"\n root ::= f | b\n f ::= fo\n b ::= ba\n fo ::= foo\n ba ::= bar | baz\n foo ::= \"foo\"\n bar ::= \"bar\"\n baz ::= \"baz\"\n ",
|
| 234 |
+
"1",
|
| 235 |
+
0
|
| 236 |
+
],
|
| 237 |
+
[
|
| 238 |
+
"\n root ::= f | b\n f ::= fo\n b ::= ba\n fo ::= foo\n ba ::= bar | baz\n foo ::= \"foo\"\n bar ::= \"bar\"\n baz ::= \"baz\"",
|
| 239 |
+
"z",
|
| 240 |
+
0
|
| 241 |
+
],
|
| 242 |
+
[
|
| 243 |
+
"\n root ::= f | b\n f ::= fo\n b ::= ba\n fo ::= foo\n ba ::= bar | baz\n foo ::= \"foo\"\n bar ::= \"bar\"\n baz ::= \"baz\"",
|
| 244 |
+
"f1",
|
| 245 |
+
1
|
| 246 |
+
],
|
| 247 |
+
[
|
| 248 |
+
"\n root ::= f | b\n f ::= fo\n b ::= ba\n fo ::= foo\n ba ::= bar | baz\n foo ::= \"foo\"\n bar ::= \"bar\"\n baz ::= \"baz\"",
|
| 249 |
+
"b1",
|
| 250 |
+
1
|
| 251 |
+
],
|
| 252 |
+
[
|
| 253 |
+
"\n root ::= f | b\n f ::= fo\n b ::= ba\n fo ::= foo\n ba ::= bar | baz\n foo ::= \"foo\"\n bar ::= \"bar\"\n baz ::= \"baz\"",
|
| 254 |
+
"fo1",
|
| 255 |
+
2
|
| 256 |
+
],
|
| 257 |
+
[
|
| 258 |
+
"\n root ::= f | b\n f ::= fo\n b ::= ba\n fo ::= foo\n ba ::= bar | baz\n foo ::= \"foo\"\n bar ::= \"bar\"\n baz ::= \"baz\"",
|
| 259 |
+
"fooo",
|
| 260 |
+
3
|
| 261 |
+
],
|
| 262 |
+
[
|
| 263 |
+
"\n root ::= f | b\n f ::= fo\n b ::= ba\n fo ::= foo\n ba ::= bar | baz\n foo ::= \"foo\"\n bar ::= \"bar\"\n baz ::= \"baz\"",
|
| 264 |
+
"barr",
|
| 265 |
+
3
|
| 266 |
+
],
|
| 267 |
+
[
|
| 268 |
+
"\n root ::= f | b\n f ::= fo\n b ::= ba\n fo ::= foo\n ba ::= bar | baz\n foo ::= \"foo\"\n bar ::= \"bar\"\n baz ::= \"baz\"",
|
| 269 |
+
"bazr",
|
| 270 |
+
3
|
| 271 |
+
],
|
| 272 |
+
[
|
| 273 |
+
"root ::= [a-z]",
|
| 274 |
+
"A",
|
| 275 |
+
0
|
| 276 |
+
],
|
| 277 |
+
[
|
| 278 |
+
"root ::= [a-z]",
|
| 279 |
+
"0",
|
| 280 |
+
0
|
| 281 |
+
],
|
| 282 |
+
[
|
| 283 |
+
"root ::= [a-z]",
|
| 284 |
+
"az",
|
| 285 |
+
1
|
| 286 |
+
],
|
| 287 |
+
[
|
| 288 |
+
"root ::= [a-z]?",
|
| 289 |
+
"A",
|
| 290 |
+
0
|
| 291 |
+
],
|
| 292 |
+
[
|
| 293 |
+
"root ::= [a-z]?",
|
| 294 |
+
"0",
|
| 295 |
+
0
|
| 296 |
+
],
|
| 297 |
+
[
|
| 298 |
+
"root ::= [a-z]?",
|
| 299 |
+
"az",
|
| 300 |
+
1
|
| 301 |
+
],
|
| 302 |
+
[
|
| 303 |
+
"root ::= [a-z]+",
|
| 304 |
+
"A",
|
| 305 |
+
0
|
| 306 |
+
],
|
| 307 |
+
[
|
| 308 |
+
"root ::= [a-z]+",
|
| 309 |
+
"0",
|
| 310 |
+
0
|
| 311 |
+
],
|
| 312 |
+
[
|
| 313 |
+
"root ::= [a-z]+",
|
| 314 |
+
"az0",
|
| 315 |
+
2
|
| 316 |
+
],
|
| 317 |
+
[
|
| 318 |
+
"root ::= [a-z]*",
|
| 319 |
+
"A",
|
| 320 |
+
0
|
| 321 |
+
],
|
| 322 |
+
[
|
| 323 |
+
"root ::= [a-z]*",
|
| 324 |
+
"0",
|
| 325 |
+
0
|
| 326 |
+
],
|
| 327 |
+
[
|
| 328 |
+
"root ::= [a-z]*",
|
| 329 |
+
"az0",
|
| 330 |
+
2
|
| 331 |
+
],
|
| 332 |
+
[
|
| 333 |
+
"root ::= ( [^abcdefgh] | [b-z])*",
|
| 334 |
+
"a",
|
| 335 |
+
0
|
| 336 |
+
]
|
| 337 |
+
]
|
v2-models-effort/runs/20261027-114410-shrill-dew/ported_implementation/integration_tests/generated/validation/validate_input_test.py
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import json
|
| 2 |
+
from pathlib import Path
|
| 3 |
+
|
| 4 |
+
import pytest
|
| 5 |
+
|
| 6 |
+
from gbnf import GBNF, InputParseError
|
| 7 |
+
|
| 8 |
+
DATA = Path(__file__).parent
|
| 9 |
+
VALID = json.loads((DATA / 'validate_input_valid.json').read_text(encoding='utf-8'))
|
| 10 |
+
INVALID = json.loads((DATA / 'validate_input_invalid.json').read_text(encoding='utf-8'))
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
def describe_validate_input():
|
| 14 |
+
@pytest.mark.parametrize('grammar, input', VALID)
|
| 15 |
+
def it_parses_a_grammar_and_input(grammar, input):
|
| 16 |
+
assert GBNF(grammar, input)
|
| 17 |
+
|
| 18 |
+
@pytest.mark.parametrize('grammar, input, error_pos', INVALID)
|
| 19 |
+
def it_reports_an_error_for_an_invalid_input(grammar, input, error_pos):
|
| 20 |
+
error = InputParseError(input, error_pos, '')
|
| 21 |
+
graph = GBNF(grammar)
|
| 22 |
+
with pytest.raises(InputParseError) as exc_info:
|
| 23 |
+
graph.add(input)
|
| 24 |
+
assert str(exc_info.value) == str(error)
|
v2-models-effort/runs/20261027-114410-shrill-dew/ported_implementation/integration_tests/generated/validation/validate_input_valid.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
[
|
| 3 |
+
"root ::= \"foo\"",
|
| 4 |
+
"f"
|
| 5 |
+
]
|
| 6 |
+
]
|
v2-models-effort/runs/20261027-114410-shrill-dew/ported_implementation/pyproject.toml
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[project]
|
| 2 |
+
name = "gbnf"
|
| 3 |
+
version = "0.1.41"
|
| 4 |
+
description = "A library for parsing GBNF grammars"
|
| 5 |
+
readme = "README.md"
|
| 6 |
+
license = { text = "MIT" }
|
| 7 |
+
requires-python = ">=3.11"
|
| 8 |
+
keywords = ["gbnf", "grammar", "grammar-parser"]
|
| 9 |
+
authors = [{ name = "Ambient Labs" }]
|
| 10 |
+
|
| 11 |
+
[build-system]
|
| 12 |
+
requires = ["setuptools>=68"]
|
| 13 |
+
build-backend = "setuptools.build_meta"
|
| 14 |
+
|
| 15 |
+
[tool.setuptools.packages.find]
|
| 16 |
+
include = ["gbnf*"]
|
| 17 |
+
|
| 18 |
+
[tool.pytest.ini_options]
|
| 19 |
+
python_files = ["test_*.py", "*_test.py"]
|
| 20 |
+
pythonpath = ["."]
|
v2-models-effort/runs/20261027-114410-shrill-dew/proxy.log
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
NOTICE Oct 27 12:19:38.449 [8]: Initializing tinyproxy ...
|
| 2 |
+
NOTICE Oct 27 12:19:38.449 [8]: Reloading config file (/etc/tinyproxy/tinyproxy.conf)
|
| 3 |
+
INFO Oct 27 12:19:38.449 [8]: Added address [127.0.0.1] to listen addresses.
|
| 4 |
+
INFO Oct 27 12:19:38.449 [8]: Adding Port [443] to the list allowed by CONNECT
|
| 5 |
+
NOTICE Oct 27 12:19:38.449 [8]: Reloading config file finished
|
| 6 |
+
INFO Oct 27 12:19:38.449 [8]: listen_sock called with addr = '127.0.0.1'
|
| 7 |
+
INFO Oct 27 12:19:38.449 [8]: trying to listen on host[127.0.0.1], family[2], socktype[1], proto[6]
|
| 8 |
+
INFO Oct 27 12:19:38.449 [8]: listening on fd [3]
|
| 9 |
+
INFO Oct 27 12:19:38.449 [8]: Not running as root, so not changing UID/GID.
|
| 10 |
+
INFO Oct 27 12:19:38.449 [8]: Setting the various signals.
|
| 11 |
+
INFO Oct 27 12:19:38.449 [8]: Starting main loop. Accepting connections.
|
| 12 |
+
botbox-proxy: listening
|
v2-models-effort/runs/20261027-114410-shrill-dew/run.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"params": {
|
| 3 |
+
"source-language": "javascript",
|
| 4 |
+
"model": "claude-sonnet-5-5",
|
| 5 |
+
"effort": "xhigh"
|
| 6 |
+
},
|
| 7 |
+
"command": "uv run --project packages/gbnf_experiment run_gbnf_experiment --include-unit-tests 1 --include-source-integration-tests 1 --include-target-integration-tests 0 --output /home/duncan/work/code/research/ports/experiments/v2-models-effort/runs/20261027-114410-shrill-dew --source-language javascript --model claude-sonnet-5-5 --effort xhigh --auth api",
|
| 8 |
+
"created": "2026-10-27T12:19:27Z",
|
| 9 |
+
"ended": "2026-10-27T12:40:40Z",
|
| 10 |
+
"exit_code": 1,
|
| 11 |
+
"error": null,
|
| 12 |
+
"ended_by": null,
|
| 13 |
+
"signal": null,
|
| 14 |
+
"args": [
|
| 15 |
+
"--auth",
|
| 16 |
+
"api"
|
| 17 |
+
],
|
| 18 |
+
"pid": 2260463,
|
| 19 |
+
"pid_created": 1793103566.95
|
| 20 |
+
}
|
v2-models-effort/runs/20261027-114410-shrill-dew/stderr.log
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Traceback (most recent call last):
|
| 2 |
+
File [35m"/home/duncan/work/code/research/ports/packages/gbnf_experiment/.venv/bin/run_gbnf_experiment"[0m, line [35m10[0m, in [35m<module>[0m
|
| 3 |
+
sys.exit([31mcli[0m[1;31m()[0m)
|
| 4 |
+
[31m~~~[0m[1;31m^^[0m
|
| 5 |
+
File [35m"/home/duncan/work/code/research/ports/packages/gbnf_experiment/.venv/lib/python3.14/site-packages/click/core.py"[0m, line [35m1631[0m, in [35m__call__[0m
|
| 6 |
+
return [31mself.main[0m[1;31m(*args, **kwargs)[0m
|
| 7 |
+
[31m~~~~~~~~~[0m[1;31m^^^^^^^^^^^^^^^^^[0m
|
| 8 |
+
File [35m"/home/duncan/work/code/research/ports/packages/gbnf_experiment/.venv/lib/python3.14/site-packages/click/core.py"[0m, line [35m1552[0m, in [35mmain[0m
|
| 9 |
+
rv = self.invoke(ctx)
|
| 10 |
+
File [35m"/home/duncan/work/code/research/ports/packages/gbnf_experiment/.venv/lib/python3.14/site-packages/click/core.py"[0m, line [35m1415[0m, in [35minvoke[0m
|
| 11 |
+
return [31mctx.invoke[0m[1;31m(self.callback, **ctx.params)[0m
|
| 12 |
+
[31m~~~~~~~~~~[0m[1;31m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^[0m
|
| 13 |
+
File [35m"/home/duncan/work/code/research/ports/packages/gbnf_experiment/.venv/lib/python3.14/site-packages/click/core.py"[0m, line [35m910[0m, in [35minvoke[0m
|
| 14 |
+
return callback(*args, **kwargs)
|
| 15 |
+
File [35m"/home/duncan/work/code/research/ports/packages/gbnf_experiment/src/gbnf_experiment/cli.py"[0m, line [35m60[0m, in [35mcli[0m
|
| 16 |
+
[31masyncio.run[0m[1;31m([0m
|
| 17 |
+
[31m~~~~~~~~~~~[0m[1;31m^[0m
|
| 18 |
+
[1;31mrun_gbnf_experiment([0m
|
| 19 |
+
[1;31m^^^^^^^^^^^^^^^^^^^^[0m
|
| 20 |
+
...<7 lines>...
|
| 21 |
+
[1;31m)[0m
|
| 22 |
+
[1;31m^[0m
|
| 23 |
+
[1;31m)[0m
|
| 24 |
+
[1;31m^[0m
|
| 25 |
+
File [35m"/home/duncan/.local/share/uv/python/cpython-3.14.3-linux-x86_64-gnu/lib/python3.14/asyncio/runners.py"[0m, line [35m204[0m, in [35mrun[0m
|
| 26 |
+
return [31mrunner.run[0m[1;31m(main)[0m
|
| 27 |
+
[31m~~~~~~~~~~[0m[1;31m^^^^^^[0m
|
| 28 |
+
File [35m"/home/duncan/.local/share/uv/python/cpython-3.14.3-linux-x86_64-gnu/lib/python3.14/asyncio/runners.py"[0m, line [35m127[0m, in [35mrun[0m
|
| 29 |
+
return [31mself._loop.run_until_complete[0m[1;31m(task)[0m
|
| 30 |
+
[31m~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[0m[1;31m^^^^^^[0m
|
| 31 |
+
File [35m"/home/duncan/.local/share/uv/python/cpython-3.14.3-linux-x86_64-gnu/lib/python3.14/asyncio/base_events.py"[0m, line [35m719[0m, in [35mrun_until_complete[0m
|
| 32 |
+
return [31mfuture.result[0m[1;31m()[0m
|
| 33 |
+
[31m~~~~~~~~~~~~~[0m[1;31m^^[0m
|
| 34 |
+
File [35m"/home/duncan/work/code/research/ports/packages/gbnf_experiment/src/gbnf_experiment/run_gbnf_experiment.py"[0m, line [35m73[0m, in [35mrun_gbnf_experiment[0m
|
| 35 |
+
raise AgentFailed(report.get("result", f"the agent exited {result.exit_code}"))
|
| 36 |
+
[1;35mgbnf_experiment.run_gbnf_experiment.AgentFailed[0m: [35mthe agent exited 137[0m
|
v2-models-effort/runs/20261027-114410-shrill-dew/stderr.txt
ADDED
|
File without changes
|
v2-models-effort/runs/20261027-114410-shrill-dew/stdout.log
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
*** auth: api ***
|
v2-models-effort/runs/20261027-114410-shrill-dew/transcript/.claude/projects/-target/47303612-8244-4a5d-b2c2-3a59c49f7dd5.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
v2-models-effort/runs/20261027-114410-still-sound/credentials.log
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[2026-10-27 11:59:38.106][21][warning][main] [source/server/server.cc:1012] There is no configured limit to the number of allowed active downstream connections. Configure a limit in `envoy.resource_monitors.global_downstream_max_connections` resource monitor.
|
| 2 |
+
[2026-10-27T11:59:39.076Z] POST /v1/messages?beta=true 200 - 2373ms
|
| 3 |
+
[2026-10-27T11:59:41.470Z] POST /v1/messages?beta=true 200 - 1334ms
|
| 4 |
+
[2026-10-27T11:59:42.837Z] POST /v1/messages?beta=true 200 - 1785ms
|
| 5 |
+
[2026-10-27T11:59:44.651Z] POST /v1/messages?beta=true 200 - 3434ms
|
| 6 |
+
[2026-10-27T11:59:48.113Z] POST /v1/messages?beta=true 200 - 1523ms
|
| 7 |
+
[2026-10-27T11:59:49.670Z] POST /v1/messages?beta=true 200 - 2939ms
|
| 8 |
+
[2026-10-27T11:59:52.629Z] POST /v1/messages?beta=true 200 - 4080ms
|
| 9 |
+
[2026-10-27T11:59:56.732Z] POST /v1/messages?beta=true 200 - 12069ms
|
| 10 |
+
[2026-10-27T12:00:08.826Z] POST /v1/messages?beta=true 200 - 6926ms
|
| 11 |
+
[2026-10-27T12:00:15.783Z] POST /v1/messages?beta=true 200 - 3858ms
|
| 12 |
+
[2026-10-27T12:00:19.663Z] POST /v1/messages?beta=true 200 - 3345ms
|
| 13 |
+
[2026-10-27T12:00:23.037Z] POST /v1/messages?beta=true 200 - 13287ms
|
| 14 |
+
[2026-10-27T12:00:36.356Z] POST /v1/messages?beta=true 200 DC 385336ms
|
| 15 |
+
[2026-10-27T12:07:01.698Z] POST /v1/messages?beta=true 200 - 124699ms
|
| 16 |
+
[2026-10-27T12:09:06.437Z] POST /v1/messages?beta=true 200 - 3338ms
|
| 17 |
+
[2026-10-27T12:09:10.762Z] POST /v1/messages?beta=true 200 - 2462ms
|
| 18 |
+
[2026-10-27T12:09:13.243Z] POST /v1/messages?beta=true 200 - 141859ms
|
| 19 |
+
[2026-10-27T12:11:35.157Z] POST /v1/messages?beta=true 200 - 19721ms
|
| 20 |
+
[2026-10-27T12:11:54.917Z] POST /v1/messages?beta=true 200 - 18772ms
|
| 21 |
+
[2026-10-27T12:12:13.731Z] POST /v1/messages?beta=true 200 - 18492ms
|
| 22 |
+
[2026-10-27T12:12:32.324Z] POST /v1/messages?beta=true 200 - 20959ms
|
| 23 |
+
[2026-10-27T12:12:53.335Z] POST /v1/messages?beta=true 200 - 11832ms
|
| 24 |
+
[2026-10-27T12:13:05.214Z] POST /v1/messages?beta=true 200 - 13807ms
|
| 25 |
+
[2026-10-27T12:13:19.063Z] POST /v1/messages?beta=true 200 - 24654ms
|
| 26 |
+
[2026-10-27T12:13:43.732Z] POST /v1/messages?beta=true 200 - 35254ms
|
| 27 |
+
[2026-10-27T12:14:19.106Z] POST /v1/messages?beta=true 200 - 15763ms
|
| 28 |
+
[2026-10-27T12:14:34.962Z] POST /v1/messages?beta=true 200 - 11695ms
|
| 29 |
+
[2026-10-27T12:14:47.207Z] POST /v1/messages?beta=true 200 - 4140ms
|
| 30 |
+
[2026-10-27T12:14:51.413Z] POST /v1/messages?beta=true 200 - 4581ms
|
| 31 |
+
[2026-10-27T12:14:56.064Z] POST /v1/messages?beta=true 200 - 22441ms
|
| 32 |
+
[2026-10-27T12:15:20.136Z] POST /v1/messages?beta=true 200 - 50792ms
|
| 33 |
+
[2026-10-27T12:16:11.650Z] POST /v1/messages?beta=true 200 - 37999ms
|
| 34 |
+
[2026-10-27T12:16:50.394Z] POST /v1/messages?beta=true 200 - 4163ms
|
| 35 |
+
[2026-10-27T12:16:54.577Z] POST /v1/messages?beta=true 200 - 39568ms
|
| 36 |
+
[2026-10-27T12:17:36.013Z] POST /v1/messages?beta=true 200 - 83086ms
|
| 37 |
+
[2026-10-27T12:19:01.877Z] POST /v1/messages?beta=true 200 - 10813ms
|
| 38 |
+
[2026-10-27 12:19:26.220][21][warning][main] [source/server/server.cc:981] caught ENVOY_SIGTERM
|
v2-models-effort/runs/20261027-114410-still-sound/manifest.json
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"timestamp": "2026-10-27T11:59:27Z",
|
| 3 |
+
"completed_at": "2026-10-27T12:19:26Z",
|
| 4 |
+
"exit_code": 137,
|
| 5 |
+
"error": "the agent exited 137",
|
| 6 |
+
"condition": {
|
| 7 |
+
"name": "source-javascript_unit-tests_source-integration-tests_effort-xhigh_model-claude-sonnet-5-5",
|
| 8 |
+
"source_language": "javascript",
|
| 9 |
+
"target_language": "python",
|
| 10 |
+
"include_unit_tests": true,
|
| 11 |
+
"include_source_integration_tests": true,
|
| 12 |
+
"include_target_integration_tests": false,
|
| 13 |
+
"effort": "xhigh",
|
| 14 |
+
"model": "claude-sonnet-5-5"
|
| 15 |
+
},
|
| 16 |
+
"derivation": {
|
| 17 |
+
"gbnf_commit": "13f1aca495d11e160fffd68c4ba299a2415909d8"
|
| 18 |
+
},
|
| 19 |
+
"reference_implementation": {
|
| 20 |
+
"included": [
|
| 21 |
+
"javascript/.eslintrc.cjs",
|
| 22 |
+
"javascript/.gitignore",
|
| 23 |
+
"javascript/.npmignore",
|
| 24 |
+
"javascript/README.md",
|
| 25 |
+
"javascript/integration-tests/.gitignore",
|
| 26 |
+
"javascript/integration-tests/generated/iteration/grammars.test.ts",
|
| 27 |
+
"javascript/integration-tests/generated/iteration/iteration-with-additional-strings.test.ts",
|
| 28 |
+
"javascript/integration-tests/generated/iteration/iteration-with-an-initial-string.test.ts",
|
| 29 |
+
"javascript/integration-tests/generated/iteration/iteration.test.ts",
|
| 30 |
+
"javascript/integration-tests/generated/validation/validate-grammar.test.ts",
|
| 31 |
+
"javascript/integration-tests/generated/validation/validate-input.test.ts",
|
| 32 |
+
"javascript/package.json",
|
| 33 |
+
"javascript/src/gbnf.test.ts",
|
| 34 |
+
"javascript/src/gbnf.ts",
|
| 35 |
+
"javascript/src/grammar-graph/colorize.test.ts",
|
| 36 |
+
"javascript/src/grammar-graph/colorize.ts",
|
| 37 |
+
"javascript/src/grammar-graph/generic-set.test.ts",
|
| 38 |
+
"javascript/src/grammar-graph/generic-set.ts",
|
| 39 |
+
"javascript/src/grammar-graph/get-input-as-code-points.test.ts",
|
| 40 |
+
"javascript/src/grammar-graph/get-input-as-code-points.ts",
|
| 41 |
+
"javascript/src/grammar-graph/get-parent-stack-id.test.ts",
|
| 42 |
+
"javascript/src/grammar-graph/get-parent-stack-id.ts",
|
| 43 |
+
"javascript/src/grammar-graph/get-serialized-rule-key.test.ts",
|
| 44 |
+
"javascript/src/grammar-graph/get-serialized-rule-key.ts",
|
| 45 |
+
"javascript/src/grammar-graph/graph-node.test.ts",
|
| 46 |
+
"javascript/src/grammar-graph/graph-node.ts",
|
| 47 |
+
"javascript/src/grammar-graph/graph-pointer.test.ts",
|
| 48 |
+
"javascript/src/grammar-graph/graph-pointer.ts",
|
| 49 |
+
"javascript/src/grammar-graph/graph.test.ts",
|
| 50 |
+
"javascript/src/grammar-graph/graph.ts",
|
| 51 |
+
"javascript/src/grammar-graph/index.ts",
|
| 52 |
+
"javascript/src/grammar-graph/parse-state.test.ts",
|
| 53 |
+
"javascript/src/grammar-graph/parse-state.ts",
|
| 54 |
+
"javascript/src/grammar-graph/print.test.ts",
|
| 55 |
+
"javascript/src/grammar-graph/print.ts",
|
| 56 |
+
"javascript/src/grammar-graph/rule-ref.test.ts",
|
| 57 |
+
"javascript/src/grammar-graph/rule-ref.ts",
|
| 58 |
+
"javascript/src/grammar-graph/type-guards.test.ts",
|
| 59 |
+
"javascript/src/grammar-graph/type-guards.ts",
|
| 60 |
+
"javascript/src/grammar-graph/types.ts",
|
| 61 |
+
"javascript/src/grammar-parser/build-rule-stack.test.ts",
|
| 62 |
+
"javascript/src/grammar-parser/build-rule-stack.ts",
|
| 63 |
+
"javascript/src/index.ts",
|
| 64 |
+
"javascript/src/rules-builder/index.ts",
|
| 65 |
+
"javascript/src/rules-builder/is-word-char.test.ts",
|
| 66 |
+
"javascript/src/rules-builder/is-word-char.ts",
|
| 67 |
+
"javascript/src/rules-builder/parse-char.test.ts",
|
| 68 |
+
"javascript/src/rules-builder/parse-char.ts",
|
| 69 |
+
"javascript/src/rules-builder/parse-name.test.ts",
|
| 70 |
+
"javascript/src/rules-builder/parse-name.ts",
|
| 71 |
+
"javascript/src/rules-builder/parse-space.test.ts",
|
| 72 |
+
"javascript/src/rules-builder/parse-space.ts",
|
| 73 |
+
"javascript/src/rules-builder/rules-builder.test.ts",
|
| 74 |
+
"javascript/src/rules-builder/rules-builder.ts",
|
| 75 |
+
"javascript/src/rules-builder/symbol-ids.ts",
|
| 76 |
+
"javascript/src/rules-builder/type-guards.ts",
|
| 77 |
+
"javascript/src/rules-builder/types.ts",
|
| 78 |
+
"javascript/src/umd.ts",
|
| 79 |
+
"javascript/src/utils/errors/build-error-position.test.ts",
|
| 80 |
+
"javascript/src/utils/errors/build-error-position.ts",
|
| 81 |
+
"javascript/src/utils/errors/get-input-as-string.test.ts",
|
| 82 |
+
"javascript/src/utils/errors/get-input-as-string.ts",
|
| 83 |
+
"javascript/src/utils/errors/grammar-parse-error.test.ts",
|
| 84 |
+
"javascript/src/utils/errors/grammar-parse-error.ts",
|
| 85 |
+
"javascript/src/utils/errors/input-parse-error.test.ts",
|
| 86 |
+
"javascript/src/utils/errors/input-parse-error.ts",
|
| 87 |
+
"javascript/src/utils/is-point-in-range.test.ts",
|
| 88 |
+
"javascript/src/utils/is-point-in-range.ts",
|
| 89 |
+
"javascript/tsconfig.json",
|
| 90 |
+
"javascript/tsconfig.test.json",
|
| 91 |
+
"javascript/vite.config.esm.ts",
|
| 92 |
+
"javascript/vite.config.ts",
|
| 93 |
+
"javascript/vite.config.umd.ts",
|
| 94 |
+
"javascript/vitest.config.integration.ts",
|
| 95 |
+
"javascript/vitest.config.unit.ts"
|
| 96 |
+
]
|
| 97 |
+
},
|
| 98 |
+
"sandbox": {
|
| 99 |
+
"image_id": "sha256:ea4de7807d73aa9097d7358e9286d7e23badfa892e139673cffdc23963dd82b9"
|
| 100 |
+
},
|
| 101 |
+
"harness": {
|
| 102 |
+
"commit": "92862543c3d26999d3b857a50495531e66966cfd",
|
| 103 |
+
"dirty": true
|
| 104 |
+
}
|
| 105 |
+
}
|
v2-models-effort/runs/20261027-114410-still-sound/memory.jsonl
ADDED
|
@@ -0,0 +1,240 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"time": 1793102366.7611606, "rss": 20025344, "processes": 2}
|
| 2 |
+
{"time": 1793102371.7718186, "rss": 126377984, "processes": 5}
|
| 3 |
+
{"time": 1793102376.782812, "rss": 126681088, "processes": 5}
|
| 4 |
+
{"time": 1793102381.7936444, "rss": 138579968, "processes": 6}
|
| 5 |
+
{"time": 1793102386.8053184, "rss": 138579968, "processes": 6}
|
| 6 |
+
{"time": 1793102391.8177814, "rss": 138579968, "processes": 6}
|
| 7 |
+
{"time": 1793102396.8290846, "rss": 138579968, "processes": 6}
|
| 8 |
+
{"time": 1793102401.840282, "rss": 138579968, "processes": 6}
|
| 9 |
+
{"time": 1793102406.8510356, "rss": 138579968, "processes": 6}
|
| 10 |
+
{"time": 1793102411.8626869, "rss": 138620928, "processes": 6}
|
| 11 |
+
{"time": 1793102416.8741732, "rss": 138620928, "processes": 6}
|
| 12 |
+
{"time": 1793102421.8847299, "rss": 138620928, "processes": 6}
|
| 13 |
+
{"time": 1793102426.8968499, "rss": 138620928, "processes": 6}
|
| 14 |
+
{"time": 1793102431.907798, "rss": 138620928, "processes": 6}
|
| 15 |
+
{"time": 1793102436.91907, "rss": 138620928, "processes": 6}
|
| 16 |
+
{"time": 1793102441.9304364, "rss": 138620928, "processes": 6}
|
| 17 |
+
{"time": 1793102446.9408946, "rss": 138620928, "processes": 6}
|
| 18 |
+
{"time": 1793102451.951088, "rss": 138620928, "processes": 6}
|
| 19 |
+
{"time": 1793102456.9615688, "rss": 138620928, "processes": 6}
|
| 20 |
+
{"time": 1793102461.97249, "rss": 138620928, "processes": 6}
|
| 21 |
+
{"time": 1793102466.9831944, "rss": 138620928, "processes": 6}
|
| 22 |
+
{"time": 1793102471.9937565, "rss": 138620928, "processes": 6}
|
| 23 |
+
{"time": 1793102477.0048573, "rss": 138620928, "processes": 6}
|
| 24 |
+
{"time": 1793102482.01621, "rss": 138620928, "processes": 6}
|
| 25 |
+
{"time": 1793102487.0278642, "rss": 138620928, "processes": 6}
|
| 26 |
+
{"time": 1793102492.038945, "rss": 138620928, "processes": 6}
|
| 27 |
+
{"time": 1793102497.0508804, "rss": 138620928, "processes": 6}
|
| 28 |
+
{"time": 1793102502.0611532, "rss": 138620928, "processes": 6}
|
| 29 |
+
{"time": 1793102507.0731544, "rss": 138620928, "processes": 6}
|
| 30 |
+
{"time": 1793102512.0843034, "rss": 138620928, "processes": 6}
|
| 31 |
+
{"time": 1793102517.0953596, "rss": 138620928, "processes": 6}
|
| 32 |
+
{"time": 1793102522.1072485, "rss": 138620928, "processes": 6}
|
| 33 |
+
{"time": 1793102527.1187866, "rss": 138620928, "processes": 6}
|
| 34 |
+
{"time": 1793102532.1300285, "rss": 139010048, "processes": 6}
|
| 35 |
+
{"time": 1793102537.141063, "rss": 139010048, "processes": 6}
|
| 36 |
+
{"time": 1793102542.1518784, "rss": 139010048, "processes": 6}
|
| 37 |
+
{"time": 1793102547.162968, "rss": 139010048, "processes": 6}
|
| 38 |
+
{"time": 1793102552.17425, "rss": 139010048, "processes": 6}
|
| 39 |
+
{"time": 1793102557.1852329, "rss": 139255808, "processes": 6}
|
| 40 |
+
{"time": 1793102562.196291, "rss": 139255808, "processes": 6}
|
| 41 |
+
{"time": 1793102567.2072747, "rss": 139255808, "processes": 6}
|
| 42 |
+
{"time": 1793102572.2184472, "rss": 139255808, "processes": 6}
|
| 43 |
+
{"time": 1793102577.2290657, "rss": 139255808, "processes": 6}
|
| 44 |
+
{"time": 1793102582.240409, "rss": 139255808, "processes": 6}
|
| 45 |
+
{"time": 1793102587.2515516, "rss": 139255808, "processes": 6}
|
| 46 |
+
{"time": 1793102592.2623315, "rss": 139071488, "processes": 6}
|
| 47 |
+
{"time": 1793102597.2733788, "rss": 139071488, "processes": 6}
|
| 48 |
+
{"time": 1793102602.2852154, "rss": 139071488, "processes": 6}
|
| 49 |
+
{"time": 1793102607.2963092, "rss": 139071488, "processes": 6}
|
| 50 |
+
{"time": 1793102612.307256, "rss": 139071488, "processes": 6}
|
| 51 |
+
{"time": 1793102617.3174798, "rss": 139071488, "processes": 6}
|
| 52 |
+
{"time": 1793102622.3262098, "rss": 139071488, "processes": 6}
|
| 53 |
+
{"time": 1793102627.334302, "rss": 139071488, "processes": 6}
|
| 54 |
+
{"time": 1793102632.3433337, "rss": 139071488, "processes": 6}
|
| 55 |
+
{"time": 1793102637.3533368, "rss": 139071488, "processes": 6}
|
| 56 |
+
{"time": 1793102642.3626554, "rss": 139071488, "processes": 6}
|
| 57 |
+
{"time": 1793102647.3719463, "rss": 139071488, "processes": 6}
|
| 58 |
+
{"time": 1793102652.3824584, "rss": 139186176, "processes": 6}
|
| 59 |
+
{"time": 1793102657.3913307, "rss": 139186176, "processes": 6}
|
| 60 |
+
{"time": 1793102662.4012578, "rss": 139186176, "processes": 6}
|
| 61 |
+
{"time": 1793102667.4108417, "rss": 139186176, "processes": 6}
|
| 62 |
+
{"time": 1793102672.4201796, "rss": 139186176, "processes": 6}
|
| 63 |
+
{"time": 1793102677.4299133, "rss": 139296768, "processes": 6}
|
| 64 |
+
{"time": 1793102682.438897, "rss": 139296768, "processes": 6}
|
| 65 |
+
{"time": 1793102687.4489021, "rss": 139296768, "processes": 6}
|
| 66 |
+
{"time": 1793102692.4583147, "rss": 139296768, "processes": 6}
|
| 67 |
+
{"time": 1793102697.4678316, "rss": 139296768, "processes": 6}
|
| 68 |
+
{"time": 1793102702.477459, "rss": 139296768, "processes": 6}
|
| 69 |
+
{"time": 1793102707.4871163, "rss": 139296768, "processes": 6}
|
| 70 |
+
{"time": 1793102712.49725, "rss": 137883648, "processes": 6}
|
| 71 |
+
{"time": 1793102717.5065644, "rss": 137883648, "processes": 6}
|
| 72 |
+
{"time": 1793102722.518049, "rss": 137883648, "processes": 6}
|
| 73 |
+
{"time": 1793102727.5279803, "rss": 137883648, "processes": 6}
|
| 74 |
+
{"time": 1793102732.5381775, "rss": 137883648, "processes": 6}
|
| 75 |
+
{"time": 1793102737.5483959, "rss": 137146368, "processes": 6}
|
| 76 |
+
{"time": 1793102742.5583563, "rss": 137146368, "processes": 6}
|
| 77 |
+
{"time": 1793102747.5689967, "rss": 137146368, "processes": 6}
|
| 78 |
+
{"time": 1793102752.5794706, "rss": 137146368, "processes": 6}
|
| 79 |
+
{"time": 1793102757.590762, "rss": 137146368, "processes": 6}
|
| 80 |
+
{"time": 1793102762.6012444, "rss": 137146368, "processes": 6}
|
| 81 |
+
{"time": 1793102767.6123235, "rss": 137146368, "processes": 6}
|
| 82 |
+
{"time": 1793102772.623321, "rss": 137256960, "processes": 6}
|
| 83 |
+
{"time": 1793102777.6348195, "rss": 137256960, "processes": 6}
|
| 84 |
+
{"time": 1793102782.645073, "rss": 137256960, "processes": 6}
|
| 85 |
+
{"time": 1793102787.6545181, "rss": 137256960, "processes": 6}
|
| 86 |
+
{"time": 1793102792.6652353, "rss": 137256960, "processes": 6}
|
| 87 |
+
{"time": 1793102797.6766121, "rss": 137310208, "processes": 6}
|
| 88 |
+
{"time": 1793102802.6879065, "rss": 137310208, "processes": 6}
|
| 89 |
+
{"time": 1793102807.6988826, "rss": 137310208, "processes": 6}
|
| 90 |
+
{"time": 1793102812.7095938, "rss": 137310208, "processes": 6}
|
| 91 |
+
{"time": 1793102817.7196858, "rss": 137310208, "processes": 6}
|
| 92 |
+
{"time": 1793102822.7302513, "rss": 137310208, "processes": 6}
|
| 93 |
+
{"time": 1793102827.7405596, "rss": 137310208, "processes": 6}
|
| 94 |
+
{"time": 1793102832.7513864, "rss": 137310208, "processes": 6}
|
| 95 |
+
{"time": 1793102837.761814, "rss": 137310208, "processes": 6}
|
| 96 |
+
{"time": 1793102842.7727895, "rss": 137310208, "processes": 6}
|
| 97 |
+
{"time": 1793102847.7828035, "rss": 137310208, "processes": 6}
|
| 98 |
+
{"time": 1793102852.7937198, "rss": 137310208, "processes": 6}
|
| 99 |
+
{"time": 1793102857.8050263, "rss": 137310208, "processes": 6}
|
| 100 |
+
{"time": 1793102862.815673, "rss": 137310208, "processes": 6}
|
| 101 |
+
{"time": 1793102867.8267674, "rss": 137310208, "processes": 6}
|
| 102 |
+
{"time": 1793102872.8373594, "rss": 137310208, "processes": 6}
|
| 103 |
+
{"time": 1793102877.8481224, "rss": 137310208, "processes": 6}
|
| 104 |
+
{"time": 1793102882.8583016, "rss": 137310208, "processes": 6}
|
| 105 |
+
{"time": 1793102887.868872, "rss": 137310208, "processes": 6}
|
| 106 |
+
{"time": 1793102892.8794465, "rss": 137486336, "processes": 6}
|
| 107 |
+
{"time": 1793102897.8898258, "rss": 137486336, "processes": 6}
|
| 108 |
+
{"time": 1793102902.9001925, "rss": 137486336, "processes": 6}
|
| 109 |
+
{"time": 1793102907.9113016, "rss": 137486336, "processes": 6}
|
| 110 |
+
{"time": 1793102912.9219744, "rss": 137486336, "processes": 6}
|
| 111 |
+
{"time": 1793102917.9326692, "rss": 137486336, "processes": 6}
|
| 112 |
+
{"time": 1793102922.9440174, "rss": 137486336, "processes": 6}
|
| 113 |
+
{"time": 1793102927.9549983, "rss": 137486336, "processes": 6}
|
| 114 |
+
{"time": 1793102932.9651632, "rss": 137486336, "processes": 6}
|
| 115 |
+
{"time": 1793102937.9758675, "rss": 137486336, "processes": 6}
|
| 116 |
+
{"time": 1793102942.9867516, "rss": 137486336, "processes": 6}
|
| 117 |
+
{"time": 1793102947.997585, "rss": 137486336, "processes": 6}
|
| 118 |
+
{"time": 1793102953.008036, "rss": 137486336, "processes": 6}
|
| 119 |
+
{"time": 1793102958.0193958, "rss": 137486336, "processes": 6}
|
| 120 |
+
{"time": 1793102963.030303, "rss": 137486336, "processes": 6}
|
| 121 |
+
{"time": 1793102968.0414371, "rss": 137486336, "processes": 6}
|
| 122 |
+
{"time": 1793102973.0529132, "rss": 137486336, "processes": 6}
|
| 123 |
+
{"time": 1793102978.0637734, "rss": 137486336, "processes": 6}
|
| 124 |
+
{"time": 1793102983.074699, "rss": 137486336, "processes": 6}
|
| 125 |
+
{"time": 1793102988.0850408, "rss": 137486336, "processes": 6}
|
| 126 |
+
{"time": 1793102993.0952675, "rss": 137486336, "processes": 6}
|
| 127 |
+
{"time": 1793102998.106761, "rss": 137486336, "processes": 6}
|
| 128 |
+
{"time": 1793103003.1172018, "rss": 137486336, "processes": 6}
|
| 129 |
+
{"time": 1793103008.1278222, "rss": 137486336, "processes": 6}
|
| 130 |
+
{"time": 1793103013.1383798, "rss": 137498624, "processes": 6}
|
| 131 |
+
{"time": 1793103018.1489882, "rss": 137498624, "processes": 6}
|
| 132 |
+
{"time": 1793103023.1594152, "rss": 137498624, "processes": 6}
|
| 133 |
+
{"time": 1793103028.1710415, "rss": 137498624, "processes": 6}
|
| 134 |
+
{"time": 1793103033.1826544, "rss": 137498624, "processes": 6}
|
| 135 |
+
{"time": 1793103038.1940846, "rss": 137498624, "processes": 6}
|
| 136 |
+
{"time": 1793103043.2051032, "rss": 137498624, "processes": 6}
|
| 137 |
+
{"time": 1793103048.215859, "rss": 137498624, "processes": 6}
|
| 138 |
+
{"time": 1793103053.2271252, "rss": 137498624, "processes": 6}
|
| 139 |
+
{"time": 1793103058.2387092, "rss": 137498624, "processes": 6}
|
| 140 |
+
{"time": 1793103063.250076, "rss": 137498624, "processes": 6}
|
| 141 |
+
{"time": 1793103068.2625904, "rss": 137498624, "processes": 6}
|
| 142 |
+
{"time": 1793103073.273612, "rss": 137523200, "processes": 6}
|
| 143 |
+
{"time": 1793103078.2849436, "rss": 137523200, "processes": 6}
|
| 144 |
+
{"time": 1793103083.296275, "rss": 137523200, "processes": 6}
|
| 145 |
+
{"time": 1793103088.3076322, "rss": 137523200, "processes": 6}
|
| 146 |
+
{"time": 1793103093.3175502, "rss": 137523200, "processes": 6}
|
| 147 |
+
{"time": 1793103098.3249378, "rss": 137523200, "processes": 6}
|
| 148 |
+
{"time": 1793103103.3326666, "rss": 137523200, "processes": 6}
|
| 149 |
+
{"time": 1793103108.3407767, "rss": 137523200, "processes": 6}
|
| 150 |
+
{"time": 1793103113.3490317, "rss": 137523200, "processes": 6}
|
| 151 |
+
{"time": 1793103118.3582776, "rss": 137523200, "processes": 6}
|
| 152 |
+
{"time": 1793103123.3667505, "rss": 137523200, "processes": 6}
|
| 153 |
+
{"time": 1793103128.3756409, "rss": 137523200, "processes": 6}
|
| 154 |
+
{"time": 1793103133.3851619, "rss": 137560064, "processes": 6}
|
| 155 |
+
{"time": 1793103138.394121, "rss": 137560064, "processes": 6}
|
| 156 |
+
{"time": 1793103143.4035883, "rss": 137560064, "processes": 6}
|
| 157 |
+
{"time": 1793103148.413487, "rss": 137560064, "processes": 6}
|
| 158 |
+
{"time": 1793103153.4238677, "rss": 137560064, "processes": 6}
|
| 159 |
+
{"time": 1793103158.433637, "rss": 137560064, "processes": 6}
|
| 160 |
+
{"time": 1793103163.4441352, "rss": 137560064, "processes": 6}
|
| 161 |
+
{"time": 1793103168.4539244, "rss": 137560064, "processes": 6}
|
| 162 |
+
{"time": 1793103173.4639657, "rss": 137560064, "processes": 6}
|
| 163 |
+
{"time": 1793103178.4742541, "rss": 137560064, "processes": 6}
|
| 164 |
+
{"time": 1793103183.4853, "rss": 137560064, "processes": 6}
|
| 165 |
+
{"time": 1793103188.4955518, "rss": 137560064, "processes": 6}
|
| 166 |
+
{"time": 1793103193.5058675, "rss": 137560064, "processes": 6}
|
| 167 |
+
{"time": 1793103198.517073, "rss": 137560064, "processes": 6}
|
| 168 |
+
{"time": 1793103203.5278823, "rss": 137588736, "processes": 6}
|
| 169 |
+
{"time": 1793103208.5381873, "rss": 137588736, "processes": 6}
|
| 170 |
+
{"time": 1793103213.5481265, "rss": 137588736, "processes": 6}
|
| 171 |
+
{"time": 1793103218.5581594, "rss": 137588736, "processes": 6}
|
| 172 |
+
{"time": 1793103223.5700986, "rss": 137588736, "processes": 6}
|
| 173 |
+
{"time": 1793103228.5810897, "rss": 137588736, "processes": 6}
|
| 174 |
+
{"time": 1793103233.5917282, "rss": 137588736, "processes": 6}
|
| 175 |
+
{"time": 1793103238.603072, "rss": 137588736, "processes": 6}
|
| 176 |
+
{"time": 1793103243.614227, "rss": 137588736, "processes": 6}
|
| 177 |
+
{"time": 1793103248.62433, "rss": 137588736, "processes": 6}
|
| 178 |
+
{"time": 1793103253.6361957, "rss": 137588736, "processes": 6}
|
| 179 |
+
{"time": 1793103258.6482997, "rss": 137588736, "processes": 6}
|
| 180 |
+
{"time": 1793103263.6596415, "rss": 137588736, "processes": 6}
|
| 181 |
+
{"time": 1793103268.6706321, "rss": 137588736, "processes": 6}
|
| 182 |
+
{"time": 1793103273.6812685, "rss": 137588736, "processes": 6}
|
| 183 |
+
{"time": 1793103278.6922827, "rss": 137588736, "processes": 6}
|
| 184 |
+
{"time": 1793103283.703579, "rss": 137588736, "processes": 6}
|
| 185 |
+
{"time": 1793103288.7155063, "rss": 137588736, "processes": 6}
|
| 186 |
+
{"time": 1793103293.7267761, "rss": 137588736, "processes": 6}
|
| 187 |
+
{"time": 1793103298.7383506, "rss": 137588736, "processes": 6}
|
| 188 |
+
{"time": 1793103303.749266, "rss": 137588736, "processes": 6}
|
| 189 |
+
{"time": 1793103308.7603474, "rss": 137588736, "processes": 6}
|
| 190 |
+
{"time": 1793103313.7715955, "rss": 137588736, "processes": 6}
|
| 191 |
+
{"time": 1793103318.78278, "rss": 137588736, "processes": 6}
|
| 192 |
+
{"time": 1793103323.7934604, "rss": 137588736, "processes": 6}
|
| 193 |
+
{"time": 1793103328.8046029, "rss": 137588736, "processes": 6}
|
| 194 |
+
{"time": 1793103333.8154469, "rss": 137588736, "processes": 6}
|
| 195 |
+
{"time": 1793103338.827465, "rss": 137588736, "processes": 6}
|
| 196 |
+
{"time": 1793103343.8396237, "rss": 137588736, "processes": 6}
|
| 197 |
+
{"time": 1793103348.8509462, "rss": 137588736, "processes": 6}
|
| 198 |
+
{"time": 1793103353.8619893, "rss": 137588736, "processes": 6}
|
| 199 |
+
{"time": 1793103358.8728836, "rss": 137588736, "processes": 6}
|
| 200 |
+
{"time": 1793103363.8841538, "rss": 137588736, "processes": 6}
|
| 201 |
+
{"time": 1793103368.895689, "rss": 137588736, "processes": 6}
|
| 202 |
+
{"time": 1793103373.906927, "rss": 137658368, "processes": 6}
|
| 203 |
+
{"time": 1793103378.9178379, "rss": 137658368, "processes": 6}
|
| 204 |
+
{"time": 1793103383.9284756, "rss": 137658368, "processes": 6}
|
| 205 |
+
{"time": 1793103388.9398727, "rss": 137658368, "processes": 6}
|
| 206 |
+
{"time": 1793103393.952089, "rss": 137658368, "processes": 6}
|
| 207 |
+
{"time": 1793103398.9635203, "rss": 137658368, "processes": 6}
|
| 208 |
+
{"time": 1793103403.9753482, "rss": 137658368, "processes": 6}
|
| 209 |
+
{"time": 1793103408.9876757, "rss": 137658368, "processes": 6}
|
| 210 |
+
{"time": 1793103414.0008838, "rss": 137658368, "processes": 6}
|
| 211 |
+
{"time": 1793103419.01271, "rss": 137658368, "processes": 6}
|
| 212 |
+
{"time": 1793103424.0249405, "rss": 137658368, "processes": 6}
|
| 213 |
+
{"time": 1793103429.034642, "rss": 137658368, "processes": 6}
|
| 214 |
+
{"time": 1793103434.0462, "rss": 137658368, "processes": 6}
|
| 215 |
+
{"time": 1793103439.0575762, "rss": 137658368, "processes": 6}
|
| 216 |
+
{"time": 1793103444.0676649, "rss": 137658368, "processes": 6}
|
| 217 |
+
{"time": 1793103449.0799372, "rss": 137658368, "processes": 6}
|
| 218 |
+
{"time": 1793103454.0908465, "rss": 137658368, "processes": 6}
|
| 219 |
+
{"time": 1793103459.1025279, "rss": 137658368, "processes": 6}
|
| 220 |
+
{"time": 1793103464.1142745, "rss": 137658368, "processes": 6}
|
| 221 |
+
{"time": 1793103469.1265674, "rss": 137658368, "processes": 6}
|
| 222 |
+
{"time": 1793103474.1378837, "rss": 137658368, "processes": 6}
|
| 223 |
+
{"time": 1793103479.149686, "rss": 137658368, "processes": 6}
|
| 224 |
+
{"time": 1793103484.1612747, "rss": 137658368, "processes": 6}
|
| 225 |
+
{"time": 1793103489.1729002, "rss": 137658368, "processes": 6}
|
| 226 |
+
{"time": 1793103494.1839774, "rss": 137658368, "processes": 6}
|
| 227 |
+
{"time": 1793103499.1959033, "rss": 137658368, "processes": 6}
|
| 228 |
+
{"time": 1793103504.2070658, "rss": 137658368, "processes": 6}
|
| 229 |
+
{"time": 1793103509.2188292, "rss": 137658368, "processes": 6}
|
| 230 |
+
{"time": 1793103514.230642, "rss": 137658368, "processes": 6}
|
| 231 |
+
{"time": 1793103519.2422333, "rss": 137748480, "processes": 6}
|
| 232 |
+
{"time": 1793103524.2540753, "rss": 137748480, "processes": 6}
|
| 233 |
+
{"time": 1793103529.26604, "rss": 137748480, "processes": 6}
|
| 234 |
+
{"time": 1793103534.2770987, "rss": 137748480, "processes": 6}
|
| 235 |
+
{"time": 1793103539.287495, "rss": 137748480, "processes": 6}
|
| 236 |
+
{"time": 1793103544.2992418, "rss": 137748480, "processes": 6}
|
| 237 |
+
{"time": 1793103549.3104868, "rss": 137748480, "processes": 6}
|
| 238 |
+
{"time": 1793103554.3225045, "rss": 137748480, "processes": 6}
|
| 239 |
+
{"time": 1793103559.3314602, "rss": 137744384, "processes": 6}
|
| 240 |
+
{"time": 1793103564.3409193, "rss": 126132224, "processes": 6}
|
v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/.gitignore
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
__pycache__/
|
| 2 |
+
*.py[cod]
|
| 3 |
+
.pytest_cache/
|
| 4 |
+
*.egg-info/
|
| 5 |
+
build/
|
| 6 |
+
dist/
|
v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/.pytest_cache/.gitignore
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Created by pytest automatically.
|
| 2 |
+
*
|
v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/.pytest_cache/CACHEDIR.TAG
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Signature: 8a477f597d28d172789f06886806bc55
|
| 2 |
+
# This file is a cache directory tag created by pytest.
|
| 3 |
+
# For information about cache directory tags, see:
|
| 4 |
+
# https://bford.info/cachedir/spec.html
|
v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/.pytest_cache/README.md
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# pytest cache directory #
|
| 2 |
+
|
| 3 |
+
This directory contains data from the pytest's cache plugin,
|
| 4 |
+
which provides the `--lf` and `--ff` options, as well as the `cache` fixture.
|
| 5 |
+
|
| 6 |
+
**Do not** commit this to version control.
|
| 7 |
+
|
| 8 |
+
See [the docs](https://docs.pytest.org/en/stable/how-to/cache.html) for more information.
|
v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/.pytest_cache/v/cache/lastfailed
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tests/unit/test_rules_builder.py::test_it_reports_errors[root ::= \"a\" ? ?-14-Expecting preceding item to */+/? at 14]": true,
|
| 3 |
+
"tests/unit/test_rules_builder.py::test_it_reports_errors[root ::= \"\\\\q\"-11-Unknown escape at \\\\]": true
|
| 4 |
+
}
|
v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/.pytest_cache/v/cache/nodeids
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/__pycache__/conftest.cpython-314-pytest-9.1.1.pyc
ADDED
|
Binary file (118 Bytes). View file
|
|
|
v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/conftest.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
# Present so that pytest puts this directory on `sys.path`, making `gbnf` importable without installing it.
|
v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/gbnf/__init__.py
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from .gbnf import GBNF
|
| 2 |
+
from .grammar_graph.parse_state import ParseState
|
| 3 |
+
from .grammar_graph.type_guards import is_range
|
| 4 |
+
from .grammar_graph.types import (
|
| 5 |
+
Range,
|
| 6 |
+
ResolvedRule as Rule,
|
| 7 |
+
RuleChar,
|
| 8 |
+
RuleCharExclude,
|
| 9 |
+
RuleEnd,
|
| 10 |
+
RuleType,
|
| 11 |
+
)
|
| 12 |
+
from .utils.errors.grammar_parse_error import GrammarParseError
|
| 13 |
+
from .utils.errors.input_parse_error import InputParseError
|
| 14 |
+
|
| 15 |
+
__all__ = [
|
| 16 |
+
'GBNF',
|
| 17 |
+
'GrammarParseError',
|
| 18 |
+
'InputParseError',
|
| 19 |
+
'ParseState',
|
| 20 |
+
'Range',
|
| 21 |
+
'Rule',
|
| 22 |
+
'RuleChar',
|
| 23 |
+
'RuleCharExclude',
|
| 24 |
+
'RuleEnd',
|
| 25 |
+
'RuleType',
|
| 26 |
+
'is_range',
|
| 27 |
+
]
|
v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/gbnf/__pycache__/__init__.cpython-314.pyc
ADDED
|
Binary file (677 Bytes). View file
|
|
|
v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/gbnf/__pycache__/gbnf.cpython-314.pyc
ADDED
|
Binary file (1.98 kB). View file
|
|
|
v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/gbnf/gbnf.py
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
import json
|
| 4 |
+
from typing import Union
|
| 5 |
+
|
| 6 |
+
from .grammar_graph.graph import Graph
|
| 7 |
+
from .grammar_graph.parse_state import ParseState
|
| 8 |
+
from .grammar_graph.types import UnresolvedRule, ValidInput
|
| 9 |
+
from .grammar_parser.build_rule_stack import build_rule_stack
|
| 10 |
+
from .rules_builder import RulesBuilder
|
| 11 |
+
from .utils.errors.grammar_parse_error import GrammarParseError
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
def GBNF(input: Union[str, object], initial_string: ValidInput = '') -> ParseState:
|
| 15 |
+
grammar = input if isinstance(input, str) else str(input)
|
| 16 |
+
builder = RulesBuilder(grammar)
|
| 17 |
+
rules, symbol_ids = builder.rules, builder.symbol_ids
|
| 18 |
+
if len(rules) == 0:
|
| 19 |
+
raise GrammarParseError(grammar, 0, 'No rules were found')
|
| 20 |
+
if 'root' not in symbol_ids:
|
| 21 |
+
raise GrammarParseError(grammar, 0, f'Grammar does not contain a root symbol. Available symbols are: {json.dumps(list(symbol_ids.keys()))}')
|
| 22 |
+
root_id = symbol_ids.get('root')
|
| 23 |
+
|
| 24 |
+
stacked_rules: list[list[list[UnresolvedRule]]] = [build_rule_stack(rule) for rule in rules]
|
| 25 |
+
graph = Graph(grammar, stacked_rules, root_id)
|
| 26 |
+
return ParseState(graph, graph.add(initial_string))
|
v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/gbnf/grammar_graph/__init__.py
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from .graph import Graph
|
| 2 |
+
|
| 3 |
+
__all__ = ['Graph']
|
v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/gbnf/grammar_graph/__pycache__/__init__.cpython-314.pyc
ADDED
|
Binary file (202 Bytes). View file
|
|
|
v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/gbnf/grammar_graph/__pycache__/colorize.cpython-314.pyc
ADDED
|
Binary file (1.11 kB). View file
|
|
|
v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/gbnf/grammar_graph/__pycache__/generic_set.cpython-314.pyc
ADDED
|
Binary file (4.02 kB). View file
|
|
|
v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/gbnf/grammar_graph/__pycache__/get_input_as_code_points.cpython-314.pyc
ADDED
|
Binary file (856 Bytes). View file
|
|
|
v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/gbnf/grammar_graph/__pycache__/get_parent_stack_id.cpython-314.pyc
ADDED
|
Binary file (2.62 kB). View file
|
|
|
v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/gbnf/grammar_graph/__pycache__/get_serialized_rule_key.cpython-314.pyc
ADDED
|
Binary file (1.63 kB). View file
|
|
|
v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/gbnf/grammar_graph/__pycache__/graph.cpython-314.pyc
ADDED
|
Binary file (12.4 kB). View file
|
|
|
v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/gbnf/grammar_graph/__pycache__/graph_node.cpython-314.pyc
ADDED
|
Binary file (2.9 kB). View file
|
|
|
v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/gbnf/grammar_graph/__pycache__/graph_pointer.cpython-314.pyc
ADDED
|
Binary file (6.9 kB). View file
|
|
|
v2-models-effort/runs/20261027-114410-still-sound/ported_implementation/gbnf/grammar_graph/__pycache__/parse_state.cpython-314.pyc
ADDED
|
Binary file (3.56 kB). View file
|
|
|