Цей веб-сайт працює краще з JavaScript.
Головна
Огляд
Довідка
Увійти
isprogram
/
tree-sitter-c
дзеркало
https://github.com/tree-sitter/tree-sitter-c
Слідкувати
1
В обрані
0
Форк
0
Код
Проблеми
0
Projects
0
Релізи
79
Вікі
Активність
Переглянути джерело
Fix malformed test that wasn't being run
pull/2/head
Max Brunsfeld
10 роки тому
джерело
a309768a19
коміт
c57b5a58f2
2 змінених файлів
з
2 додано
та
3 видалено
Розділений перегляд
Параметри порівняння
Показати статистику
Завантажити патч
Завантажити файл різниці
+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)))))))
Писати
Попередній перегляд
Завантаження…
Відмінити
Зберегти