Преглед на файлове

Add functions w/ pointer return types

pull/1/head
Max Brunsfeld преди 11 години
родител
ревизия
485141c5c0
променени са 3 файла, в които са добавени 2122 реда и са изтрити 2104 реда
  1. +1
    -1
      grammar.coffee
  2. +2
    -2
      grammar_test/declarations.txt
  3. +2119
    -2101
      src/parser.c

+ 1
- 1
grammar.coffee Целия файл

@ -69,7 +69,7 @@ module.exports = grammar
function_declaration: -> seq(
@type,
@identifier,
@type_expression,
"(", @formal_parameters, ")",
choice(";", @statement_block))

+ 2
- 2
grammar_test/declarations.txt Целия файл

@ -141,7 +141,7 @@ int main(int argc, const char **argv);
Function definitions
============================================
void do_stuff(int arg1) {
void * do_stuff(int arg1) {
return 5;
}
@ -149,6 +149,6 @@ void do_stuff(int arg1) {
(function_declaration
(identifier)
(identifier)
(pointer_type (identifier))
(field (identifier) (identifier))
(statement_block (return_statement (number))))

+ 2119
- 2101
src/parser.c
Файловите разлики са ограничени, защото са твърде много
Целия файл


Зареждане…
Отказ
Запис