Commit Graph

1232 Commits

Author SHA1 Message Date
Fatih Arslan 0255587e95 scnaner: implement scanning hexadecimal numbers 2015-10-04 23:47:06 +03:00
Fatih Arslan 5d75c5a143 scanner: initial number lexing 2015-10-04 23:21:34 +03:00
Fatih Arslan 9629512599 scanner: organize Scan() so it's easier to read 2015-10-04 22:53:20 +03:00
Fatih Arslan aa9105226b scanner: reuse tests code 2015-10-04 22:17:59 +03:00
Fatih Arslan 1f011b4e82 scanner: implement string scanning 2015-10-04 22:01:10 +03:00
Fatih Arslan 94bd4afe4d scanner: small fixes 2015-10-04 20:22:37 +03:00
Fatih Arslan 52befe2093 scanner: use new hcl/token package 2015-10-04 20:19:39 +03:00
Fatih Arslan df82bd3e9c hcl: split up package for more control 2015-10-04 20:16:43 +03:00
Fatih Arslan f2aa1fbc4a lexer: fix tests 2015-10-04 20:13:38 +03:00
Fatih Arslan 3bf9d71be5 parser: more idiomatic call 2015-10-04 01:35:29 +03:00
Fatih Arslan c859b8a1a4 lexer: fix Position() call 2015-10-04 01:32:45 +03:00
Fatih Arslan 32ad59fcd7 lexer: more robust implementation 2015-10-04 01:29:13 +03:00
Fatih Arslan 97fb05dd4a lexer: scan strings 2015-10-04 00:20:26 +03:00
Fatih Arslan cc7a91eeab lexer: implement positions 2015-10-03 23:50:50 +03:00
Fatih Arslan 4b72853d41 lexer: scanner is more Go idiomatic 2015-10-03 21:25:21 +03:00
Fatih Arslan 1b6ead19c2 parser: add scanning ident test 2015-10-03 21:06:30 +03:00
Fatih Arslan ca906622c2 lexer: add peek() method 2015-10-03 20:33:51 +03:00
Fatih Arslan 70845ccfec lexer: back to the roots 2015-10-03 20:32:27 +03:00
Fatih Arslan 4711a01f76 lexer: various changes, trying text/scanner 2015-10-03 19:45:57 +03:00
Fatih Arslan e6ba36eaca parser: initial lexer next method 2015-10-03 17:08:09 +03:00
Fatih Arslan 01a609f812 parser: add position for upcoming requirements 2015-10-03 15:36:24 +03:00
Fatih Arslan 6fb7de55d3 token: add token representations 2015-10-03 15:34:06 +03:00
Fatih Arslan 7e929f0990 hcl: start to implement our own lexer and parser 2015-10-03 14:32:19 +03:00
Fatih Arslan e5a8a1fa62 hclprinter: initial printer package 2015-10-03 03:30:57 +03:00
Fatih Arslan 9c29a82788 hclfmt: only parse hcl files 2015-10-03 02:18:04 +03:00
Fatih Arslan c61b08ec1c hclfmt: initial skeleton 2015-10-03 01:11:30 +03:00
Mitchell Hashimoto 4de51957ef hcl: fix trailing comma + comment parse error
https://github.com/hashicorp/terraform/issues/3249
2015-09-16 09:54:29 -07:00
Mitchell Hashimoto 5486421143 hcl: multi-line comments aren't allowed to terminate with EOF 2015-06-23 21:38:11 -07:00
Mitchell Hashimoto 0be569fb26 update README for block comment update 2015-06-23 21:35:34 -07:00
Mitchell Hashimoto 681623f4e1 hcl: don't allow nested comments
This copies C's behavior and disallows nested block comments. It ignores
a new /* within an existing block comment and ends at the first */
2015-06-23 21:34:40 -07:00
Mitchell Hashimoto 513e04c400 hcl: use stringer to generate string values for ValueType 2015-01-15 15:12:25 -08:00
Mitchell Hashimoto 3c3a30a1e5 Use go generate to generate parsers 2015-01-15 15:11:14 -08:00
Ryan Uber e37b5bd61b Merge pull request #26 from amalaviy/go-multierror
Modified to import go-multierror rather than terraform
2014-12-29 12:01:23 -08:00
Atin Malaviya 98bdeedb2c Missed one more go-multierror 2014-12-24 18:34:28 -05:00
Atin Malaviya 5f50053914 Modified to import github.com/hashicorp/go-multierror rather than terraform's multierror. 2014-12-24 17:49:50 -05:00
Mitchell Hashimoto 256bb51ed8 hcl: support "." in identifier 2014-12-17 11:39:45 -08:00
Mitchell Hashimoto 2c88e7ea6e json: true, false, null lex [GH-22] 2014-11-21 10:59:12 -08:00
Mitchell Hashimoto e51eabcdf8 parse floats 1.02 properly [GH-19] 2014-11-12 21:29:07 -08:00
Mitchell Hashimoto 88ef419bd9 Properly decode \\n 2014-11-12 21:12:45 -08:00
Mitchell Hashimoto ab2c4c3120 hcl: complex keys can be set using strings 2014-11-12 21:08:08 -08:00
Seth Vargo 96d5b40433 Merge pull request #17 from ceh/fix-format-errors
decoder: fix format error due to invalid argument (byte to string)
2014-11-02 09:28:30 -05:00
Emil Hessman bfbcde0237 decoder: fix format error due to invalid argument (byte to string) 2014-11-02 12:57:26 +01:00
Mitchell Hashimoto 0998ab58fc Merge pull request #16 from hartzler/typo
fixup comment typo
2014-10-16 07:54:55 -07:00
Matt Hartzler f41fb6a9c4 fixup comment typo 2014-10-16 09:53:03 -05:00
Mitchell Hashimoto 25719dbfed Update README.md 2014-10-15 20:29:50 -07:00
Mitchell Hashimoto 764b0ad3c0 Allow escaping quotes in HCL string [GH-14] 2014-10-10 16:07:25 -07:00
Mitchell Hashimoto 09d7815762 fix a crash if a non-pointer is given to Decode
/cc @sethvargo
2014-10-09 20:57:50 -07:00
Mitchell Hashimoto cd87a48c3c decode strings to ints 2014-09-30 22:29:21 -07:00
Mitchell Hashimoto 6606366746 hcl: trailing comma support in HCL 2014-09-30 14:58:50 -07:00
Mitchell Hashimoto b00a1b045d Empty files are HCL 2014-09-15 09:40:47 -07:00