Commit Graph

22 Commits

Author SHA1 Message Date
Danila Fedorin 3b79b5751a Add true and false keywords to the parser. 2018-08-10 16:06:30 -07:00
Danila Fedorin 39dd07b134 Add pseudo-refcounting to tree creation. 2018-06-12 23:34:18 -07:00
Danila Fedorin 5d3130d39d Format the code with clang-format. 2018-04-21 14:09:01 -07:00
Danila Fedorin 3ada78a557 Use reference counting for types. 2018-04-17 22:14:28 -07:00
Danila Fedorin 77123561f0 Add a function to check if a tree node has a scope. 2018-03-24 00:36:10 -07:00
Danila Fedorin 7ab5eba529 Make distinction between prefix and postfix unary operators in trees. 2018-03-17 18:25:23 -07:00
Danila Fedorin c131fbc758 Implement reserved operator parsing. 2018-03-16 23:09:41 -07:00
Danila Fedorin bb61dbcd54 Add support for the return keyword. 2018-03-08 21:31:24 -08:00
Danila Fedorin f3f1cc8c43 Rename all the tree enums to have a prefix.
This prevents some possible naming collisions.
2018-03-08 21:13:25 -08:00
Danila Fedorin 2d26e45e90 Add function node parsing. 2018-03-08 21:10:05 -08:00
Danila Fedorin ac8e2ff418 Implement the do-while loop. 2018-02-27 12:30:37 -08:00
Danila Fedorin 976b6d1b1a Add code to parse while loops. 2018-02-27 11:57:45 -08:00
Danila Fedorin 88108bb3c0 Make the has string and has vector functions public. 2018-02-25 22:57:45 -08:00
Danila Fedorin 7a84babf1e Add basic function call parsing. 2018-02-24 20:08:17 -08:00
Danila Fedorin 8ffcbb0ee2 Make blocks expressions, and add implicit void expression at block ends. 2018-02-18 21:05:06 -08:00
Danila Fedorin 96b2dc234f Remove currently unused node types from the tree code. 2018-02-18 19:42:54 -08:00
Danila Fedorin 811704be25 Add a recursive tree freeing function. 2018-02-17 19:20:10 -08:00
Danila Fedorin 841c2f15e5 Add function to free tree nodes. 2018-02-17 12:55:50 -08:00
Danila Fedorin 74034c7b76 Rename header files. 2018-02-11 22:32:42 -08:00
Danila Fedorin f67b98d7a6 Add a parser struct. 2018-02-11 22:26:19 -08:00
Danila Fedorin e5351c17a2 Fix code to stick to proper naming convention. 2018-02-11 21:22:01 -08:00
Danila Fedorin 03f27bda18 Write a basic tree header file to hold the structure of the parsed code. 2018-02-10 22:15:51 -08:00