Този сайт работи по-добре с JavaScript.
Начало
Каталог
Помощ
Вход
isprogram
/
tree-sitter-c
огледало от
https://github.com/tree-sitter/tree-sitter-c
Наблюдаван
1
Харесван
0
Разклонения
0
Код
Задачи
0
Projects
0
Версии
79
Уики
Activity
Преглед на файлове
Fix malformed test that wasn't being run
pull/2/head
Max Brunsfeld
преди 10 години
родител
a309768a19
ревизия
c57b5a58f2
променени са
2 файла
, в които са
добавени 2
реда и са
изтрити 3
реда
Разделен изглед
Diff Options
Показване на статистика
Download Patch File
Download Diff File
+0
-1
grammar.js
+2
-2
grammar_test/statements.txt
+ 0
- 1
grammar.js
Целия файл
@ -30,7 +30,6 @@ module.exports = grammar({
conflicts
:
$
=>
[
[
$
.
_type_specifier
,
$
.
_expression
]
,
[
$
.
_type_specifier
,
$
.
direct_declarator
]
,
[
$
.
sizeof_expression
,
$
.
cast_expression
]
,
]
,
+ 2
- 2
grammar_test/statements.txt
Целия файл
@ -74,12 +74,12 @@ int main() {
printf("hi");
}
---
---
(translation_unit
(function_definition
(identifier)
(
direct
_declarator (identifier))
(
function
_declarator (identifier))
(compound_statement
(while_statement (identifier)
(expression_statement (call_expression (identifier) (string_literal)))))))
Пиши
Преглед
Зареждане…
Отказ
Запис