Commit Graph

1110 Commits

Author SHA1 Message Date
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
Fatih Arslan
b5330a1d78 scanner: more internal renamings 2015-10-06 19:59:12 +03:00
Fatih Arslan
3631451bd2 scanner: change signature of Scanner 2015-10-06 19:53:56 +03:00
Fatih Arslan
da40013062 scanner: change API for a better usage 2015-10-06 19:03:32 +03:00
Fatih Arslan
62a4ab3db7 scanner: fix all errors 2015-10-06 01:11:02 +03:00
Fatih Arslan
ea92162955 scanner: add more tests for capturing errors 2015-10-05 18:48:26 +03:00
Fatih Arslan
bc777d79f3 scanner: implement fully workable positions 2015-10-05 18:23:56 +03:00
Fatih Arslan
ac40da147e scanner: fix tests 2015-10-05 18:18:09 +03:00
Fatih Arslan
81a8399ed1 scanner: improvements around Position 2015-10-05 17:43:29 +03:00
Fatih Arslan
89db79cf63 scanner: improve forward seeking 2015-10-05 17:36:14 +03:00
Fatih Arslan
bbf8cf2ac0 scanner: various fixes and improvements around NUMBER and FLOAT 2015-10-05 17:34:45 +03:00
Fatih Arslan
d9a424d177 scnaner: reorganize tests for upcoming additional tests 2015-10-05 13:44:55 +03:00
Fatih Arslan
9a71fdff07 scanner: split float and number tests 2015-10-05 13:38:53 +03:00
Fatih Arslan
6e23b0404d scanner: implement comments 2015-10-05 13:36:28 +03:00
Fatih Arslan
a299665100 scanner: // style comments are implemented too 2015-10-05 13:26:18 +03:00
Fatih Arslan
2216cd81e9 scanner: # style line comment scanning implemented 2015-10-05 13:24:38 +03:00
Fatih Arslan
9096153a34 scanner: implement remaning tokens 2015-10-05 13:12:48 +03:00
Fatih Arslan
dd848e3dab scanner: peek instead of next. 2015-10-05 13:03:46 +03:00
Fatih Arslan
00e06fb432 scanner: finalize float scanning 2015-10-05 12:59:55 +03:00
Fatih Arslan
c7955d276f scanner: parse floats in form of .9 , .123 2015-10-05 12:31:26 +03:00
Fatih Arslan
69796c9fd2 scanner: parse a set of fractions 2015-10-05 12:26:22 +03:00
Fatih Arslan
b33f1a99db scanner: implement parsing octals 2015-10-05 11:56:11 +03:00
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