Chris Lattner
5450892284
Set up trivial parser support stuff and sketch out a few
...
productions. We can now get this far:
simple.swift:4:5: error: expected a top level declaration
var x : int;
^
simple.swift:5:5: error: expected a top level declaration
var x2 = 4;
^
Yay for amazing error recovery!
Swift SVN r14
2010-07-18 21:00:30 +00:00
Chris Lattner
05f5028b7a
stub out a parser hook.
...
Swift SVN r13
2010-07-18 20:17:04 +00:00
Chris Lattner
3cd9e46705
add numeric constant support, we can now lex exciting stuff
...
like this:
// Comment.
var x : int;
var x2 = 4;
var x3 = 4+5;
Swift SVN r11
2010-07-18 19:01:18 +00:00
Chris Lattner
6236deaabc
implement lexer support for identifiers and our 2 keywords so far.
...
Swift SVN r10
2010-07-18 18:57:12 +00:00
Chris Lattner
80ba9c7e66
add some more punctuator characters and // comments.
...
Swift SVN r9
2010-07-18 01:44:13 +00:00
Chris Lattner
461f41edb1
start lexing trivial tokens, discard whitespace between them.
...
Swift SVN r8
2010-07-18 01:32:14 +00:00
Chris Lattner
db8e1301ff
Start setting up the lexer object.
...
Swift SVN r7
2010-07-18 01:14:09 +00:00
Chris Lattner
874badb51b
consolidate lexer stuff into the Parser lib.
...
Swift SVN r6
2010-07-18 00:50:29 +00:00
Chris Lattner
5e88a21755
sketch out lexer and token interfaces.
...
Swift SVN r5
2010-07-18 00:48:07 +00:00
Chris Lattner
afc81c1855
initial checkin, nothing much to see here.
...
Swift SVN r4
2010-07-18 00:04:11 +00:00
Chris Lattner
18844bc652
initial swift test
...
Swift SVN r3
2010-07-17 23:50:59 +00:00