Skip to content

Commit

Permalink
ast: Parsing function declarations, definitions & calls
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkajetanp committed Aug 26, 2024
1 parent de5de73 commit a829f65
Show file tree
Hide file tree
Showing 4 changed files with 267 additions and 103 deletions.
12 changes: 12 additions & 0 deletions samples/functions.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
int sum(int first, int second);

int sum(int a, int b) {
return a + b;
}

int main(void) {
int one = 5;
int two = 6;
int result = sum(one, two);
return result;
}
Loading

0 comments on commit a829f65

Please sign in to comment.