Commit Graph

1203 Commits

Author SHA1 Message Date
Fatih Arslan
e947512362 printer: add spacewidth support 2015-10-25 18:02:40 +03:00
Fatih Arslan
0fc42b65df printer: implement file tests 2015-10-25 17:51:18 +03:00
Fatih Arslan
2ea5683566 printer: simplify indenting of objects 2015-10-25 16:13:06 +03:00
Fatih Arslan
4d7ec81122 printer: add newline after each object 2015-10-25 16:12:08 +03:00
Fatih Arslan
958093df59 printer: implement a working version 2015-10-25 16:08:09 +03:00
Fatih Arslan
5918e3592b printer: initial implementation. I'm still experimenting though 2015-10-25 01:23:50 +03:00
Fatih Arslan
71105156e2 parser: add Parse() and make it compatible with printer 2015-10-25 00:04:31 +03:00
Fatih Arslan
de7241ebe5 ast: print unknown node type 2015-10-24 23:12:28 +03:00
Fatih Arslan
a995361468 parser: collect comments 2015-10-24 23:11:03 +03:00
Fatih Arslan
6b5bd170f6 parser: fix all tests, comments are still WIP 2015-10-24 22:10:10 +03:00
Fatih Arslan
1a63f537eb scanner: negative float and int should be supported as well 2015-10-19 02:11:07 +03:00
Fatih Arslan
3c21f6b72b parser: simplify parsing object key even more and fix unscan 2015-10-19 02:01:33 +03:00
Fatih Arslan
17aa3f3c5a parser: add better ObjectKey parser 2015-10-19 01:30:14 +03:00
Fatih Arslan
9468aa324e parser: add official HCL tests, WIP 2015-10-18 23:25:17 +03:00
Fatih Arslan
393af546c0 parser: add TestObjectType 2015-10-18 23:19:56 +03:00
Fatih Arslan
1f47d675b9 parser: fix parser test 2015-10-18 22:51:10 +03:00
Fatih Arslan
0cf842255d parser: add list tests 2015-10-17 02:16:33 +03:00
Fatih Arslan
39f76a99eb parser: just return node :) 2015-10-17 01:48:38 +03:00
Fatih Arslan
0ed9465e4b parser: add support for normal and nested objects 2015-10-17 01:39:49 +03:00
Fatih Arslan
16d5eb5f08 parser: add support for object type 2015-10-17 01:14:40 +03:00
Fatih Arslan
4e690ec67d parser: add ListType support 2015-10-17 00:00:05 +03:00
Fatih Arslan
32f4e84345 token: rename TokenType to Type 2015-10-16 23:23:23 +03:00
Fatih Arslan
9ee8cdff12 hcl: move not finished files into their own folders 2015-10-16 23:22:28 +03:00
Fatih Arslan
e93a8e97ca hcl: split into meaningful packages 2015-10-16 23:12:26 +03:00
Fatih Arslan
72f3456c0f scanner: do not panic if there is nothing to unread 2015-10-16 22:58:38 +03:00
Fatih Arslan
38490ad4dc parser: add Walk scanner: fix tests 2015-10-16 22:57:56 +03:00
Fatih Arslan
378bec0cf4 parser: parse assignments, WIP 2015-10-16 14:44:11 +03:00
Fatih Arslan
f432878452 parser: simplfiy code 2015-10-16 14:16:12 +03:00
Fatih Arslan
628bc89026 parser: implement parseObjectKey function 2015-10-16 02:00:02 +03:00
Fatih Arslan
17205f8484 parser: be more specific about keys and identifiers 2015-10-16 01:11:54 +03:00
Fatih Arslan
62caacf06f parser: assignments and objects are actually items and the same 2015-10-16 00:57:57 +03:00
Fatih Arslan
3832ed0981 parser: improve node parsing, remove string() and many other small fixes 2015-10-15 01:27:35 +03:00
Fatih Arslan
45d01fe82d parser: more improvements around ATS 2015-10-12 23:44:53 +03:00
Fatih Arslan
8d60ae5dc5 parser: imrprovements to AST types 2015-10-12 22:53:40 +03:00
Fatih Arslan
0a3fe0e81e parser: return error, we might need it 2015-10-12 10:37:37 +03:00
Fatih Arslan
0e668f87b2 parser: working assignstatement is finished 2015-10-12 02:49:07 +03:00
Fatih Arslan
00c13fa7e1 parser: it's not a statement 2015-10-12 02:28:27 +03:00
Fatih Arslan
f3dba35acc parser: change how we obtain tokens 2015-10-12 02:27:43 +03:00
Fatih Arslan
99099cda62 parser: implement parsing assignments, stil wip 2015-10-12 01:38:59 +03:00
Fatih Arslan
82c5032a95 parser: implement node interface methods 2015-10-12 00:20:17 +03:00
Fatih Arslan
77c7bc18c5 parser: rename it back to Pos() 2015-10-09 12:36:40 +03:00
Fatih Arslan
8e99146570 parser: add initial AST definitions 2015-10-08 01:38:39 +03:00
Fatih Arslan
c62cc48b92 scanner: add string test for token type 2015-10-07 15:31:27 +03:00
Fatih Arslan
f507aa7d78 token: remove package, no need to abstract that much 2015-10-07 15:22:52 +03:00
Fatih Arslan
a790a9664e scanner: remove non used function 2015-10-07 15:06:02 +03:00
Fatih Arslan
0728686f59 scanner: simplify token text reading 2015-10-07 15:04:34 +03:00
Fatih Arslan
fa991d3df2 scanner: fix tests 2015-10-07 12:24:03 +03:00
Fatih Arslan
8169cb79d7 scanner: use a better token type 2015-10-07 12:20:35 +03:00
Fatih Arslan
760a028e8a scanner: add NewScannerString, update docs 2015-10-07 12:11:52 +03:00
Fatih Arslan
85e52052c6 scanner: add a real example test 2015-10-06 20:57:10 +03:00