Chris Lattner
d23c2f26f3
Document and implement lexer and parser support for trivial import decls. No Sema/AST support yet.
...
Swift SVN r285
2011-03-18 22:52:48 +00:00
Chris Lattner
cabbe439ed
Update to describe handling of integer_literal_type.
...
Swift SVN r284
2011-03-18 21:02:54 +00:00
Chris Lattner
bd4ccf1a55
Fix structs to require that their element type be a syntactic tuple. Rejecting the testcase.
...
Swift SVN r251
2011-03-02 07:11:34 +00:00
Chris Lattner
80e1ae6104
Rework a bunch of stuff in the type system: now the *only* way to name a type is through a 'typealias' and there is no such thing as a OneOfDecl. Instead, we have OneOfType's, which are always anonymous. "oneof declarations" and "struct declarations" are now both just sugar.
...
This eliminates the NamedTypeDecl class (because there is now only one named type decl), eliminates OneOfDecl, renames AliasTypeDecl to NameAliasTypeDecl for good measure, and introduces OneOfType.
This preserves all existing syntax, and allows stuff like this:
func test6(checkboxenabled : oneof { Yep, Nope }) {
test6(:Yep)
}
Which is an anonymous oneof.
Swift SVN r237
2011-02-26 02:03:01 +00:00
Chris Lattner
7bbe52b52a
Expand the swift language to allow typealiases, oneof, and struct within a brace expression. This allows us to have shadowing of type names.
...
Swift SVN r236
2011-02-22 07:41:44 +00:00
Chris Lattner
2cc0b81d20
Introduce bool into the standard library, updating comparisons and short circuit operators. Expand the documentation for standard types and the operators. Fix the precedence of the comparison operators to be correct.
...
Swift SVN r224
2010-11-29 06:54:29 +00:00
Chris Lattner
8234b6fd66
Add some sema for tuple elements which are specified with a default value. Still not used for conversions yet.
...
Swift SVN r219
2010-11-25 21:18:48 +00:00
Chris Lattner
bc616e9fcd
Split the initializer syntax from var decls out to their own 'value-specifier' production
...
Swift SVN r217
2010-11-25 17:00:34 +00:00
Chris Lattner
28789d43d2
Resolve a fixme: use foo.$1 instead of foo.field1
...
Swift SVN r216
2010-11-11 23:04:29 +00:00
Chris Lattner
3bd8a85784
Fix weirdness in the lang spec by making $123 be a special type of implementation identifier token, handling it uniformly in the grammar in the few places that it is valid.
...
Swift SVN r215
2010-11-11 22:27:39 +00:00
Chris Lattner
2653092ae5
Change the grammar for oneof elements to require a ':' make them more swift like and less ml like. Before we had:
...
oneof MaybeInt {
None,
Some int
}
Now we have:
oneof MaybeInt {
None,
Some : int
}
This resolves a fixme in the langref.
Swift SVN r214
2010-11-11 21:06:00 +00:00
Chris Lattner
70bb5880bc
Various updates thanks to comments from DaveZ, add a right hand sidebar with commentary.
...
Move the .js file internally so we're not dependent on the go server.
Swift SVN r213
2010-11-11 05:20:00 +00:00
Chris Lattner
906ba908fd
Rename 'data' to 'oneof', resolving a fixme in the spec. Yay for CLU!
...
Swift SVN r212
2010-11-11 01:20:36 +00:00
Chris Lattner
3892ef2e1d
add some FIXMEs for comments from bertrand
...
Swift SVN r211
2010-10-24 16:46:39 +00:00
Chris Lattner
2f0d96885a
Move field exprs to their own section in langref. Document subscript exprs. Still no sema support.
...
Swift SVN r210
2010-10-18 06:34:46 +00:00
Chris Lattner
f66d7a6faf
Update langref for array types.
...
Swift SVN r208
2010-10-17 13:57:10 +00:00
Chris Lattner
fd54c7f5a0
add parser support for array types, no sema or ast yet.
...
Swift SVN r205
2010-10-15 11:54:34 +00:00
Chris Lattner
d6862a7e5f
Fix decl-brace to not require ';'s
...
Swift SVN r204
2010-10-15 11:16:36 +00:00
Chris Lattner
154c0c6eb9
Resolve a fixme by eliminating the ; in func decls and making the grammar more restrictive.
...
Swift SVN r203
2010-10-15 11:07:49 +00:00
Chris Lattner
4b0f1a4a22
flesh out a lot more of the langref.
...
Swift SVN r201
2010-10-12 23:31:17 +00:00
Chris Lattner
fc5bbfbe65
Add an initial swift language manual, much work still needed.
...
Swift SVN r200
2010-10-12 07:24:55 +00:00