Commit Graph

15568 Commits (092817a0461430c77bf5c2542aca103a7de9ff6b)
 

Author SHA1 Message Date
Max Brunsfeld fb4ace990e Fix issues with preprocessor defininitions 2015-11-01 21:53:45 +07:00
Max Brunsfeld 52df4807bd ⬆️ tree-sitter-compiler 2015-11-01 21:53:22 +07:00
Max Brunsfeld 74444328e7 Drop the 'node-' prefix from the repo name
/cc @robrix I'm renaming the repo, since it's not just for node.js.
2015-10-29 12:14:41 +07:00
Max Brunsfeld 3204b80fa7 Drop the 'node-' prefix from the repo name
The generated parser can be used from any language
2015-10-28 21:31:51 +07:00
Max Brunsfeld 1844ad2d93 Add some error recovery points 2015-10-28 17:52:12 +07:00
Max Brunsfeld f6dc4d7942 Add structure to #ifdef blocks 2015-10-28 10:04:38 +07:00
Max Brunsfeld d6d31778ba Allow trailing commas in enum specifiers 2015-10-28 09:50:21 +07:00
Max Brunsfeld 8190b6ea7f Add hexadecimal, binary and unsigned integer literals 2015-10-27 23:57:24 +07:00
Max Brunsfeld 3695e0dfaf Handle comma-separated expressions in for loops 2015-10-26 23:37:34 +07:00
Max Brunsfeld fa30191e88 Update grammar to use new tree-sitter API
Also, rewrite the way declarators are handled to produce a clearer AST
2015-10-26 23:31:13 +07:00
Max Brunsfeld 5acee08f86 Simplify handling of line-breaks
Also, recompile parser after tree-sitter bugfix
2015-10-26 17:23:46 +07:00
Max Brunsfeld 07e352a421 Fix tests 2015-10-26 15:46:16 +07:00
Max Brunsfeld 127f97d83a Temporarily disallow comma expressions in most places 2015-10-24 14:27:18 +07:00
Max Brunsfeld 73746423f5 Expect terminator after do while loop 2015-10-24 13:59:39 +07:00
Max Brunsfeld d5d38e851b Allow alphabetical regex flags besides i and g 2015-10-24 12:52:02 +07:00
Max Brunsfeld e599acb158 Add missing pre-increment operators 2015-10-23 12:02:15 +07:00
Max Brunsfeld da200b925e Prefer object literals to empty statement blocks 2015-10-23 12:01:20 +07:00
Max Brunsfeld 7378d5a3a7 Add modulo operator 2015-10-22 21:10:56 +07:00
Max Brunsfeld 49d71baa08 Add some missing bitwise operators 2015-10-22 21:06:16 +07:00
Max Brunsfeld bc94ac1806 Use new travis infrastructure 2015-10-20 23:57:03 +07:00
Max Brunsfeld df52ba776e Update to new tree-sitter API 2015-10-20 22:46:17 +07:00
Max Brunsfeld 9bc2e2e19f Upgrade tree-sitter-compiler 2015-09-11 10:32:23 +07:00
Max Brunsfeld d6d926183c Update tree-sitter-compiler, use new grammar API 2015-09-11 10:12:50 +07:00
Max Brunsfeld cabc2bbfe1 Upgrade tree-sitter-compiler, get tests passing again 2015-09-11 09:56:15 +07:00
Max Brunsfeld 809c155a31 Link to source grammar in README 2015-04-17 11:43:37 +07:00
Max Brunsfeld 280ff87fd0 Use latest tree-sitter-compiler 2015-04-17 11:37:23 +07:00
Max Brunsfeld ca30310c72 Update grammar for latest tree-sitter-compiler
* No more keyword function
* Add required precedences
2015-03-23 22:58:15 +07:00
Max Brunsfeld ede17def38 Check in generated files for now 2015-03-13 12:25:07 +07:00
Max Brunsfeld 6775e737a6 Fix error in sizeof expressions 2015-03-09 19:22:41 +07:00
Max Brunsfeld 87ad2e9c69 Base grammar on existing C99 grammar 2015-03-09 19:08:09 +07:00
Max Brunsfeld ae3a41b13f Add all storage classes 2015-03-08 13:11:58 +07:00
Max Brunsfeld e1871c5213 Allow identifiers starting w/ underscores 2015-03-08 12:55:26 +07:00
Max Brunsfeld cdb08d5aff Add math assignment operators 2015-03-08 01:23:04 +07:00
Max Brunsfeld 81d2af76bd Add subscript operator 2015-03-08 00:21:46 +07:00
Max Brunsfeld 845921d558 Add storage classes to function defs 2015-03-08 00:08:51 +07:00
Max Brunsfeld 1bc8eeb11b Use new format in grammar file 2015-03-07 23:53:52 +07:00
Max Brunsfeld 386f48d111 0.0.2 2015-03-07 23:51:31 +07:00
Max Brunsfeld 261237e6c6 0.0.1 2015-03-07 23:51:18 +07:00
Max Brunsfeld 3293e97bbc Test against node 0.12 on travis 2015-03-07 16:52:08 +07:00
Max Brunsfeld 4d74578e4c ⬆️ nan, regenerate parser w/ no tree-sitter 2015-03-07 16:51:46 +07:00
Max Brunsfeld a7b1daf72d Test against node 0.12 and iojs on travis 2015-03-07 16:43:07 +07:00
Max Brunsfeld 6346f107dd ⬆️ nan 2015-03-07 16:41:44 +07:00
Max Brunsfeld 9964b428fd Add pointer operations 2014-10-30 12:41:09 +07:00
Max Brunsfeld ebd581c2bd Add compound literals 2014-10-29 00:48:29 +07:00
Max Brunsfeld 485141c5c0 Add functions w/ pointer return types 2014-10-29 00:37:06 +07:00
Max Brunsfeld 5da068fe83 Check in generated files
This makes it easier to pull in this package from github
in a dependent module's package.json
2014-10-29 00:30:14 +07:00
Max Brunsfeld afac264377 Add #ifndef et al 2014-10-28 08:55:14 +07:00
Max Brunsfeld ccdbf809ad Allow pointer types in typedefs 2014-10-28 08:24:03 +07:00
Max Brunsfeld 5c22801870 Add char literals 2014-10-28 08:20:02 +07:00
Max Brunsfeld 11ce0da541 Add while statements 2014-10-28 08:10:28 +07:00