Implement Parsing, resolves #6 #88
Annotations
4 errors, 10 warnings, and 5 notices
src/ast.c:3:10 [clang-diagnostic-error]:
src/ast.c#L3
'ast.h' file not found
|
src/parser.c:1:10 [clang-diagnostic-error]:
src/parser.c#L1
'ast.h' file not found
|
tests/test_parser_regex.c:3:10 [clang-diagnostic-error]:
tests/test_parser_regex.c#L3
'lexer.h' file not found
|
linter
Process completed with exit code 1.
|
src/ast.c:6:7 [cppcoreguidelines-avoid-non-const-global-variables]:
src/ast.c#L6
variable 'ast_str' is non-const and globally accessible, consider making it const
|
tests/test_parser.c:24:6 [cppcoreguidelines-avoid-non-const-global-variables]:
tests/test_parser.c#L24
variable 'regex' is non-const and globally accessible, consider making it const
|
tests/test_parser.c:25:7 [cppcoreguidelines-avoid-non-const-global-variables]:
tests/test_parser.c#L25
variable 'lexer' is non-const and globally accessible, consider making it const
|
tests/test_parser.c:26:8 [cppcoreguidelines-avoid-non-const-global-variables]:
tests/test_parser.c#L26
variable 'parser' is non-const and globally accessible, consider making it const
|
tests/test_parser.c:72:5 [readability-function-cognitive-complexity]:
tests/test_parser.c#L72
function 'test_peek' has cognitive complexity of 62 (threshold 25)
|
tests/test_parser.c:108:5 [readability-function-cognitive-complexity]:
tests/test_parser.c#L108
function 'test_next' has cognitive complexity of 68 (threshold 25)
|
tests/test_parser.c:146:5 [readability-function-cognitive-complexity]:
tests/test_parser.c#L146
function 'test_expect' has cognitive complexity of 44 (threshold 25)
|
tests/test_parser.c:152:9 [cppcoreguidelines-init-variables]:
tests/test_parser.c#L152
variable 'ret' is not initialized
|
tests/test_parser.c:182:5 [readability-function-cognitive-complexity]:
tests/test_parser.c#L182
function 'test_parse_base' has cognitive complexity of 58 (threshold 25)
|
tests/test_parser.c:258:5 [readability-function-cognitive-complexity]:
tests/test_parser.c#L258
function 'test_parse_factor' has cognitive complexity of 120 (threshold 25)
|
Run clang-format on include/ast.h:
include/ast.h#L1
File include/ast.h does not conform to Custom style guidelines. (lines 2, 8, 9, 10, 11, 12, 13, 15, 28, 29, 30, 31, 33, 34, 35, 36, 38, 39, 40, 41, 42, 43, 45, 46, 48, 53, 59, 70, 78, 85)
|
Run clang-format on src/ast.c:
src/ast.c#L1
File src/ast.c does not conform to Custom style guidelines. (lines 3, 6, 7, 8, 9, 10, 11, 16, 17, 19, 20, 21, 22, 23, 26, 30, 31, 32, 33, 35, 36, 37, 38, 39, 42, 46, 47, 48, 49, 51, 52, 53, 54, 56, 58, 59, 60, 65, 66)
|
Run clang-format on src/parser.c:
src/parser.c#L1
File src/parser.c does not conform to Custom style guidelines. (lines 1, 7, 8, 9, 10, 19, 20, 21, 22, 24, 25, 26, 29, 39, 40, 41, 42, 44, 45, 46, 49, 59, 60, 61, 62, 64, 65, 66, 68, 69, 70, 71, 74, 90, 91, 92, 93, 95, 96, 98, 99, 100, 101, 102, 104, 105, 106, 107, 108, 110, 112, 113, 114, 115, 117, 119, 120, 121, 122, 125, 141, 142, 143, 144, 146, 148, 150, 151, 153, 154, 155, 156, 158, 159, 160, 162, 163, 164, 166, 167, 168, 170, 171, 172, 173, 176, 192, 193, 194, 195, 197, 199, 201, 202, 203, 204, 206, 207, 208, 209, 210, 212, 213, 214, 215, 216, 217, 220, 221, 223, 224, 227, 243, 244, 245, 246, 249, 251, 253, 254, 255, 257, 258, 259, 260, 261, 263, 264, 265, 266, 267, 268, 271, 272, 274, 275, 281, 282, 284, 285, 286, 287, 293, 294, 295, 296, 298, 300, 301, 302, 308, 309, 310, 311, 317, 318)
|
Run clang-format on tests/test_parser.c:
tests/test_parser.c#L1
File tests/test_parser.c does not conform to Custom style guidelines. (lines 14, 15, 16, 17, 18, 19, 20, 28, 29, 30, 33, 34, 35, 41, 42, 44, 46, 47, 48, 49, 50, 52, 53, 54, 59, 60, 61, 63, 64, 65, 67, 72, 73, 74, 76, 77, 79, 80, 82, 84, 85, 86, 88, 89, 91, 92, 93, 95, 96, 98, 99, 100, 101, 103, 108, 109, 110, 112, 113, 115, 116, 118, 120, 121, 122, 124, 126, 127, 129, 130, 131, 133, 134, 136, 137, 138, 139, 141, 146, 147, 148, 150, 152, 153, 154, 156, 157, 158, 159, 161, 162, 163, 165, 166, 167, 168, 170, 171, 172, 174, 182, 183, 184, 186, 187, 188, 189, 191, 193, 194, 195, 197, 198, 200, 201, 203, 204, 206, 207, 208, 209, 210, 211, 212, 213, 215, 217, 218, 220, 222, 223, 224, 226, 227, 228, 229, 231, 232, 234, 236, 237, 239, 240, 241, 258, 259, 260, 262, 263, 264, 265, 267, 269, 270, 272, 273, 274, 275, 276, 278, 279, 280, 282, 283, 285, 286, 288, 289, 291, 293, 294, 295, 296, 297, 313, 314, 315, 317, 318, 319, 321, 323, 324, 326, 327, 329, 330, 331, 333, 334, 335, 337, 338, 339, 341, 342, 343, 344, 346, 348, 349, 351, 352, 353, 355, 356, 357, 359, 360, 362, 363, 365, 366, 368, 380, 381, 382, 384, 385, 386, 388, 390, 391, 392, 394, 396, 397, 398, 399, 401, 402, 403, 405, 406, 407, 408, 409, 411, 413, 414, 415, 417, 419, 420, 421, 422, 424, 425, 426, 427, 429, 430, 431, 432, 433, 435, 436, 437, 449, 450, 451, 453, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 474, 475, 476, 477, 478, 479, 480, 481, 483, 484, 485, 486, 487, 488, 489, 490, 491, 493, 494, 495, 497, 498, 499, 501, 502, 503, 505, 506, 508, 510, 512, 513, 514, 516, 517, 518, 520, 521, 522, 524, 525, 526, 528, 529, 530, 532, 533, 534, 536, 537, 538, 539, 541, 542, 543, 545, 546, 548, 549, 550, 551, 553, 555, 556, 557, 559, 560, 562, 563, 564, 565, 567, 569, 570, 571, 573, 574, 576, 577, 578, 579, 581, 583, 584, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 600, 603, 604)
|
Run clang-format on tests/test_parser_regex.c:
tests/test_parser_regex.c#L1
File tests/test_parser_regex.c does not conform to Custom style guidelines. (lines 1, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17, 19, 20, 21, 22, 24, 25, 26, 27, 28, 29, 30, 31, 32, 41, 42, 44, 45, 47, 49, 50, 52, 56, 57, 59, 60, 62, 63, 64, 65, 66, 68, 69, 71, 75, 76, 78, 79, 81, 82, 83, 84, 85, 87, 88, 90, 94, 95, 97, 98, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 126, 127, 129, 133, 134, 136, 137, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 165, 166, 168, 172, 173, 175, 176, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 196, 197, 199, 203, 204, 206, 207, 209, 211, 215, 216, 218, 219, 221, 223, 227, 228, 230, 231, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 251, 252, 254, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 272, 273)
|