提交 162ecd49 编写于 作者: L luxin

tree.py revised for keywords_must and keywords_forbid

上级 3a67cb05
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "helloworld.md", "source": "helloworld.md",
"exercise_id":"10d3dcae2ad64f3f8881c0a75a0f23ce" "exercise_id": "10d3dcae2ad64f3f8881c0a75a0f23ce",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "features.md", "source": "features.md",
"exercise_id":"da7e0ed525574205a9335964ab9bdd34" "exercise_id": "da7e0ed525574205a9335964ab9bdd34",
"notebook_enable": true
} }
\ No newline at end of file
...@@ -2,5 +2,6 @@ ...@@ -2,5 +2,6 @@
"type": "code_options", "type": "code_options",
"author": "huanhuilong", "author": "huanhuilong",
"source": "standard.md", "source": "standard.md",
"exercise_id": "8150ef23aad248f78110f33e34754311" "exercise_id": "8150ef23aad248f78110f33e34754311",
"notebook_enable": true
} }
\ No newline at end of file
...@@ -2,5 +2,6 @@ ...@@ -2,5 +2,6 @@
"type": "code_options", "type": "code_options",
"author": "huanhuilong", "author": "huanhuilong",
"source": "compiler.md", "source": "compiler.md",
"exercise_id": "b812499b338541d2955575e56c116da9" "exercise_id": "b812499b338541d2955575e56c116da9",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "variables.md", "source": "variables.md",
"exercise_id":"6c103364d0e840d4937c971250ca0170" "exercise_id": "6c103364d0e840d4937c971250ca0170",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "constants.md", "source": "constants.md",
"exercise_id":"1688d7f77c6645dfa7526be78ece2529" "exercise_id": "1688d7f77c6645dfa7526be78ece2529",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "basic_data_types.md", "source": "basic_data_types.md",
"exercise_id":"0aa6076f38594d5daf1e384389d781dc" "exercise_id": "0aa6076f38594d5daf1e384389d781dc",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "is_alphabet_or_not.md", "source": "is_alphabet_or_not.md",
"exercise_id":"bf510b82ad534ae6ba501e6872888c21" "exercise_id": "bf510b82ad534ae6ba501e6872888c21",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "assignment_op.md", "source": "assignment_op.md",
"exercise_id": "467088fdbeff4bbaa67bb1c9faa96df0" "exercise_id": "467088fdbeff4bbaa67bb1c9faa96df0",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "arithmetic_op.md", "source": "arithmetic_op.md",
"exercise_id":"8ecb107618d14ff29c99556375bf90ea" "exercise_id": "8ecb107618d14ff29c99556375bf90ea",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "count_num_of_digits.md", "source": "count_num_of_digits.md",
"exercise_id":"6b79121e26224651ab01251676bb5458" "exercise_id": "6b79121e26224651ab01251676bb5458",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "relational_op.md", "source": "relational_op.md",
"exercise_id":"30bf67ce1b7d44a8805366fcc8f33080" "exercise_id": "30bf67ce1b7d44a8805366fcc8f33080",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "logical_op.md", "source": "logical_op.md",
"exercise_id":"79213fcb263a48388f9fba12d6838f80" "exercise_id": "79213fcb263a48388f9fba12d6838f80",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "comma_op.md", "source": "comma_op.md",
"exercise_id":"634aa5b76f89455db1562dd2b20a46dc" "exercise_id": "634aa5b76f89455db1562dd2b20a46dc",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "conditional_op.md", "source": "conditional_op.md",
"exercise_id":"4c6a481081b440268e4bd4f952c94537" "exercise_id": "4c6a481081b440268e4bd4f952c94537",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "sizeof_op.md", "source": "sizeof_op.md",
"exercise_id":"cf79702c9bf4420086a9ffe269b96316" "exercise_id": "cf79702c9bf4420086a9ffe269b96316",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "precedence.md", "source": "precedence.md",
"exercise_id":"5d4f393434714b0fa3230ac8423db7cc" "exercise_id": "5d4f393434714b0fa3230ac8423db7cc",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "statements_n_blocks.md", "source": "statements_n_blocks.md",
"exercise_id":"c497198894e74e34883cbae9d48c19fa" "exercise_id": "c497198894e74e34883cbae9d48c19fa",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "elseif.md", "source": "elseif.md",
"exercise_id":"afa4e1fd6653458a9711f84b9e19c40f" "exercise_id": "afa4e1fd6653458a9711f84b9e19c40f",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "if.md", "source": "if.md",
"exercise_id":"3e283b85315944e78461916fb24f9612" "exercise_id": "3e283b85315944e78461916fb24f9612",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "ifelse.md", "source": "ifelse.md",
"exercise_id":"6a210054ec4e46d4bb263748834e2d48" "exercise_id": "6a210054ec4e46d4bb263748834e2d48",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "switch.md", "source": "switch.md",
"exercise_id":"90eaa9ccd2bf401495e316a1daba9319" "exercise_id": "90eaa9ccd2bf401495e316a1daba9319",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "for.md", "source": "for.md",
"exercise_id":"fed74fe168144f26bb631e1d12a9c5fc" "exercise_id": "fed74fe168144f26bb631e1d12a9c5fc",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "goto.md", "source": "goto.md",
"exercise_id":"bb06f0fdfc9f4193be7275dd063cdce9" "exercise_id": "bb06f0fdfc9f4193be7275dd063cdce9",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "while.md", "source": "while.md",
"exercise_id":"2d265be922e0420eba40a8b1f7a62a03" "exercise_id": "2d265be922e0420eba40a8b1f7a62a03",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "definition.md", "source": "definition.md",
"exercise_id":"7c71b281a3c5490e95f9ab3c99d110f0" "exercise_id": "7c71b281a3c5490e95f9ab3c99d110f0",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "parameter_n_argument.md", "source": "parameter_n_argument.md",
"exercise_id":"9eb1eb201bc84d02a23b1eead71f74c0" "exercise_id": "9eb1eb201bc84d02a23b1eead71f74c0",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "return.md", "source": "return.md",
"exercise_id":"c08cb53f455d47fbbf244d2605f5ae6d" "exercise_id": "c08cb53f455d47fbbf244d2605f5ae6d",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "function_call.md", "source": "function_call.md",
"exercise_id":"41843efba027453c9f2eea82d794cdf6" "exercise_id": "41843efba027453c9f2eea82d794cdf6",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "loop_imitation.md", "source": "loop_imitation.md",
"exercise_id":"bb31a0a1d8d2423d95da3b0c3176507e" "exercise_id": "bb31a0a1d8d2423d95da3b0c3176507e",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "recursion.md", "source": "recursion.md",
"exercise_id":"62753017c26c4524bf4a814538089523" "exercise_id": "62753017c26c4524bf4a814538089523",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "global_n_local_var.md", "source": "global_n_local_var.md",
"exercise_id":"8c862340818547858499a071f828bbba" "exercise_id": "8c862340818547858499a071f828bbba",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "header.md", "source": "header.md",
"exercise_id":"19ecabeb7b9b4043848e68925c4d0cd7" "exercise_id": "19ecabeb7b9b4043848e68925c4d0cd7",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "ex_in_function.md", "source": "ex_in_function.md",
"exercise_id":"1e8ee7c442374a44984851637673653f" "exercise_id": "1e8ee7c442374a44984851637673653f",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "array_def.md", "source": "array_def.md",
"exercise_id":"9c5db166ebe24994b003ca41d2b55d1a" "exercise_id": "9c5db166ebe24994b003ca41d2b55d1a",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "index.md", "source": "index.md",
"exercise_id":"2ee704800a944c51b5fed7173891d773" "exercise_id": "2ee704800a944c51b5fed7173891d773",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "bubble_sort.md", "source": "bubble_sort.md",
"exercise_id":"00270257c9ee48579c312b7b449425a0" "exercise_id": "00270257c9ee48579c312b7b449425a0",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "reverse.md", "source": "reverse.md",
"exercise_id":"d917d13042074362ac6728f2c575899b" "exercise_id": "d917d13042074362ac6728f2c575899b",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "matrix.md", "source": "matrix.md",
"exercise_id":"a5816323dbca45daa2d33f39789707ca" "exercise_id": "a5816323dbca45daa2d33f39789707ca",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "vla.md", "source": "vla.md",
"exercise_id":"8c6d605410c6416389625741e10fd961" "exercise_id": "8c6d605410c6416389625741e10fd961",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "pointers.md", "source": "pointers.md",
"exercise_id":"660e4a478cfa412cad85e8a9249a8bcc" "exercise_id": "660e4a478cfa412cad85e8a9249a8bcc",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "pointers_n_func.md", "source": "pointers_n_func.md",
"exercise_id":"eadb9c1f04a34868b5959e71ac9d2f5b" "exercise_id": "eadb9c1f04a34868b5959e71ac9d2f5b",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "pointers_n_array.md", "source": "pointers_n_array.md",
"exercise_id":"0b03c7473dad4edf9ca08013144dda13" "exercise_id": "0b03c7473dad4edf9ca08013144dda13",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "pointers_arithmetic_op.md", "source": "pointers_arithmetic_op.md",
"exercise_id":"c6b7a18807e34a14b921cfa70d06b7d0" "exercise_id": "c6b7a18807e34a14b921cfa70d06b7d0",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "pointers_array.md", "source": "pointers_array.md",
"exercise_id":"7c21ed88658c4513a24afbc96d043028" "exercise_id": "7c21ed88658c4513a24afbc96d043028",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "pointers_2_func.md", "source": "pointers_2_func.md",
"exercise_id":"e023179d0b874df6a4b442ca62c93d1c" "exercise_id": "e023179d0b874df6a4b442ca62c93d1c",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "string_io.md", "source": "string_io.md",
"exercise_id":"228416f6eaa44195810950a1f41de7a4" "exercise_id": "228416f6eaa44195810950a1f41de7a4",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "string_func.md", "source": "string_func.md",
"exercise_id":"20a63ce313e241a49b6d7ccd2eb1d9e2" "exercise_id": "20a63ce313e241a49b6d7ccd2eb1d9e2",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "structures.md", "source": "structures.md",
"exercise_id":"51df13a16d96417bb5dbe6476c1ec05f" "exercise_id": "51df13a16d96417bb5dbe6476c1ec05f",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "structures_array.md", "source": "structures_array.md",
"exercise_id":"ce458884b396456d8b9993004272720e" "exercise_id": "ce458884b396456d8b9993004272720e",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "structures_pointers.md", "source": "structures_pointers.md",
"exercise_id":"5fe2bafbe9974e62bf3544e50aefa3cc" "exercise_id": "5fe2bafbe9974e62bf3544e50aefa3cc",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "structures_n_func.md", "source": "structures_n_func.md",
"exercise_id":"d05a0cfc3bd6483b9de9d0c97cc0ace8" "exercise_id": "d05a0cfc3bd6483b9de9d0c97cc0ace8",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "linked_list.md", "source": "linked_list.md",
"exercise_id":"af79a964ebfa4116a79cd623357bee1d" "exercise_id": "af79a964ebfa4116a79cd623357bee1d",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "unions.md", "source": "unions.md",
"exercise_id":"73886fb5ce5c4b1e9db67223b260ee72" "exercise_id": "73886fb5ce5c4b1e9db67223b260ee72",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "enum.md", "source": "enum.md",
"exercise_id":"44888a39b3be432a854447cd603b348e" "exercise_id": "44888a39b3be432a854447cd603b348e",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "ccat", "author": "ccat",
"source": "check.md", "source": "check.md",
"exercise_id":"7deb64fd1f71418d9951f05c99d3694c" "exercise_id": "7deb64fd1f71418d9951f05c99d3694c",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "ccat", "author": "ccat",
"source": "count.md", "source": "count.md",
"exercise_id":"277ffa9a36b648c8a55a512c7e5daf99" "exercise_id": "277ffa9a36b648c8a55a512c7e5daf99",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "ccat", "author": "ccat",
"source": "oct.md", "source": "oct.md",
"exercise_id":"b15add5a05e84ecdbdf862dcfa722b30" "exercise_id": "b15add5a05e84ecdbdf862dcfa722b30",
"notebook_enable": true
} }
\ No newline at end of file
...@@ -2,5 +2,6 @@ ...@@ -2,5 +2,6 @@
"type": "code_options", "type": "code_options",
"author": "huanhuilong", "author": "huanhuilong",
"source": "bin_to_hex.md", "source": "bin_to_hex.md",
"exercise_id": "bfae271b73284a6fa5f48bcde4a7f3e0" "exercise_id": "bfae271b73284a6fa5f48bcde4a7f3e0",
"notebook_enable": true
} }
\ No newline at end of file
...@@ -2,5 +2,6 @@ ...@@ -2,5 +2,6 @@
"type": "code_options", "type": "code_options",
"author": "huanhuilong", "author": "huanhuilong",
"source": "bit_op.md", "source": "bit_op.md",
"exercise_id": "0952044cc5e54770b7418ed868d201a2" "exercise_id": "0952044cc5e54770b7418ed868d201a2",
"notebook_enable": true
} }
\ No newline at end of file
...@@ -2,5 +2,6 @@ ...@@ -2,5 +2,6 @@
"type": "code_options", "type": "code_options",
"author": "huanhuilong", "author": "huanhuilong",
"source": "pack01.md", "source": "pack01.md",
"exercise_id": "4aa8ae84487d433e943a5a9ef6293dbd" "exercise_id": "4aa8ae84487d433e943a5a9ef6293dbd",
"notebook_enable": true
} }
\ No newline at end of file
...@@ -2,5 +2,6 @@ ...@@ -2,5 +2,6 @@
"type": "code_options", "type": "code_options",
"author": "huanhuilong", "author": "huanhuilong",
"source": "pack02.md", "source": "pack02.md",
"exercise_id": "03f964d865b54fe9947e728585a27486" "exercise_id": "03f964d865b54fe9947e728585a27486",
"notebook_enable": true
} }
\ No newline at end of file
...@@ -2,5 +2,6 @@ ...@@ -2,5 +2,6 @@
"type": "code_options", "type": "code_options",
"author": "huanhuilong", "author": "huanhuilong",
"source": "bit_field.md", "source": "bit_field.md",
"exercise_id": "3956873149544809b85309a109c6c03b" "exercise_id": "3956873149544809b85309a109c6c03b",
"notebook_enable": true
} }
\ No newline at end of file
...@@ -2,5 +2,6 @@ ...@@ -2,5 +2,6 @@
"type": "code_options", "type": "code_options",
"author": "huanhuilong", "author": "huanhuilong",
"source": "define_constant.md", "source": "define_constant.md",
"exercise_id": "cf66c975dc9745569c51062217f19a37" "exercise_id": "cf66c975dc9745569c51062217f19a37",
"notebook_enable": true
} }
\ No newline at end of file
...@@ -2,5 +2,6 @@ ...@@ -2,5 +2,6 @@
"type": "code_options", "type": "code_options",
"author": "huanhuilong", "author": "huanhuilong",
"source": "define_func_1.md", "source": "define_func_1.md",
"exercise_id": "792339ab818c45a185ec88fa11a8473f" "exercise_id": "792339ab818c45a185ec88fa11a8473f",
"notebook_enable": true
} }
\ No newline at end of file
...@@ -2,5 +2,6 @@ ...@@ -2,5 +2,6 @@
"type": "code_options", "type": "code_options",
"author": "huanhuilong", "author": "huanhuilong",
"source": "define_func_2.md", "source": "define_func_2.md",
"exercise_id": "392152f3c66a4a68aad267134b31fee0" "exercise_id": "392152f3c66a4a68aad267134b31fee0",
"notebook_enable": true
} }
\ No newline at end of file
...@@ -2,5 +2,6 @@ ...@@ -2,5 +2,6 @@
"type": "code_options", "type": "code_options",
"author": "huanhuilong", "author": "huanhuilong",
"source": "define_func_3.md", "source": "define_func_3.md",
"exercise_id": "e7ec2bbd28a149afa0d8942a7753222a" "exercise_id": "e7ec2bbd28a149afa0d8942a7753222a",
"notebook_enable": true
} }
\ No newline at end of file
...@@ -2,5 +2,6 @@ ...@@ -2,5 +2,6 @@
"type": "code_options", "type": "code_options",
"author": "huanhuilong", "author": "huanhuilong",
"source": "undef.md", "source": "undef.md",
"exercise_id": "30aebb75361b4a38853e7e7a4e1bba1d" "exercise_id": "30aebb75361b4a38853e7e7a4e1bba1d",
"notebook_enable": true
} }
\ No newline at end of file
...@@ -2,5 +2,6 @@ ...@@ -2,5 +2,6 @@
"type": "code_options", "type": "code_options",
"author": "huanhuilong", "author": "huanhuilong",
"source": "ifdef01.md", "source": "ifdef01.md",
"exercise_id": "049d8ddcb35f41df908dbdb23653271c" "exercise_id": "049d8ddcb35f41df908dbdb23653271c",
"notebook_enable": true
} }
\ No newline at end of file
...@@ -2,5 +2,6 @@ ...@@ -2,5 +2,6 @@
"type": "code_options", "type": "code_options",
"author": "huanhuilong", "author": "huanhuilong",
"source": "ifdef02.md", "source": "ifdef02.md",
"exercise_id": "8717491239a6490da3e0ec17e1e54cc6" "exercise_id": "8717491239a6490da3e0ec17e1e54cc6",
"notebook_enable": true
} }
\ No newline at end of file
...@@ -2,5 +2,6 @@ ...@@ -2,5 +2,6 @@
"type": "code_options", "type": "code_options",
"author": "huanhuilong", "author": "huanhuilong",
"source": "inline01.md", "source": "inline01.md",
"exercise_id": "1dcb399d754b44b58810f41fc1dd997e" "exercise_id": "1dcb399d754b44b58810f41fc1dd997e",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "huanhuilong", "author": "huanhuilong",
"source": "file01.md", "source": "file01.md",
"exercise_id": "2e78bd9001cc45049141672c176a232f" "exercise_id": "2e78bd9001cc45049141672c176a232f",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "huanhuilong", "author": "huanhuilong",
"source": "file02.md", "source": "file02.md",
"exercise_id": "3f8e44050e62451cae8185f9f48ab57b" "exercise_id": "3f8e44050e62451cae8185f9f48ab57b",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "huanhuilong", "author": "huanhuilong",
"source": "file03.md", "source": "file03.md",
"exercise_id": "941a3f5a05d54ef9ac03b9be3ee42d85" "exercise_id": "941a3f5a05d54ef9ac03b9be3ee42d85",
"notebook_enable": true
} }
\ No newline at end of file
...@@ -2,5 +2,6 @@ ...@@ -2,5 +2,6 @@
"type": "code_options", "type": "code_options",
"author": "huanhuilong", "author": "huanhuilong",
"source": "file_hash.md", "source": "file_hash.md",
"exercise_id": "9d4b6d322fba4772b00f736f73dc5428" "exercise_id": "9d4b6d322fba4772b00f736f73dc5428",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "storage_categories.md", "source": "storage_categories.md",
"exercise_id":"089799ddb1c3419a836a94abe8b39270" "exercise_id": "089799ddb1c3419a836a94abe8b39270",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "memory_management.md", "source": "memory_management.md",
"exercise_id":"a714745a7e4d4543a90483a3be3a0f73" "exercise_id": "a714745a7e4d4543a90483a3be3a0f73",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "math.md", "source": "math.md",
"exercise_id":"f764910c876044a3ba3d538a76520386" "exercise_id": "f764910c876044a3ba3d538a76520386",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "qsort.md", "source": "qsort.md",
"exercise_id":"902f13f3450445e9b2fa9cb99d78a2b8" "exercise_id": "902f13f3450445e9b2fa9cb99d78a2b8",
"notebook_enable": true
} }
\ No newline at end of file
{ {
"type": "code_options", "type": "code_options",
"author": "u010280923", "author": "u010280923",
"source": "assert.md", "source": "assert.md",
"exercise_id":"4f37695a19624483b4f9e0b694bc3723" "exercise_id": "4f37695a19624483b4f9e0b694bc3723",
"notebook_enable": true
} }
\ No newline at end of file
此差异已折叠。
...@@ -87,7 +87,9 @@ class TreeWalker: ...@@ -87,7 +87,9 @@ class TreeWalker:
root_node = { root_node = {
"node_id": root["node_id"], "node_id": root["node_id"],
"keywords": root["keywords"], "keywords": root["keywords"],
"children": [] "children": [],
"keywords_must": root["keywords_must"],
"keywords_forbid": root["keywords_forbid"]
} }
self.tree[root["tree_name"]] = root_node self.tree[root["tree_name"]] = root_node
self.load_levels(root_node) self.load_levels(root_node)
...@@ -138,8 +140,10 @@ class TreeWalker: ...@@ -138,8 +140,10 @@ class TreeWalker:
result = { result = {
name: { name: {
"node_id": config["node_id"], "node_id": config["node_id"],
"keywords": config["keywords"], "keywords": config["keywords"],
"children": [], "children": [],
"keywords_must": config["keywords_must"],
"keywords_forbid": config["keywords_forbid"]
} }
} }
...@@ -191,6 +195,8 @@ class TreeWalker: ...@@ -191,6 +195,8 @@ class TreeWalker:
"tree_name": self.name, "tree_name": self.name,
"keywords": [], "keywords": [],
"node_id": self.gen_node_id(), "node_id": self.gen_node_id(),
"keywords_must": [],
"keywords_forbid": []
} }
dump_json(config_path, config, exist_ok=True, override=True) dump_json(config_path, config, exist_ok=True, override=True)
else: else:
...@@ -220,7 +226,9 @@ class TreeWalker: ...@@ -220,7 +226,9 @@ class TreeWalker:
if not os.path.exists(config_path): if not os.path.exists(config_path):
config = { config = {
"node_id": self.gen_node_id(), "node_id": self.gen_node_id(),
"keywords": [] "keywords": [],
"keywords_must": [],
"keywords_forbid": []
} }
dump_json(config_path, config, exist_ok=True, override=True) dump_json(config_path, config, exist_ok=True, override=True)
else: else:
...@@ -286,6 +294,8 @@ class TreeWalker: ...@@ -286,6 +294,8 @@ class TreeWalker:
"node_id": config["node_id"], "node_id": config["node_id"],
"keywords": config["keywords"], "keywords": config["keywords"],
"children": [], "children": [],
"keywords_must": config["keywords_must"],
"keywords_forbid": config["keywords_forbid"]
} }
} }
return num, result return num, result
...@@ -297,7 +307,9 @@ class TreeWalker: ...@@ -297,7 +307,9 @@ class TreeWalker:
name: { name: {
"node_id": config["node_id"], "node_id": config["node_id"],
"keywords": config["keywords"], "keywords": config["keywords"],
"children": config.get("children", []) "children": config.get("children", []),
"keywords_must": config["keywords_must"],
"keywords_forbid": config["keywords_forbid"]
} }
} }
# if "children" in config: # if "children" in config:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册