This repository has been archived by the owner on Jun 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make vector type syntax more symmetric with the expression syntax.
- Loading branch information
alexrp
committed
Jun 8, 2013
1 parent
fec95a1
commit 9d6fa12
Showing
8 changed files
with
35 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Error: vec_no_size.fl(3,25): Expected vector size integer, but got '}' | ||
Error: vec_no_size.fl(3,18): Expected vector size integer, but got 'int' | ||
pub mod vec_no_size { | ||
pub struct VecNoSize { | ||
pub v : {int .. }; | ||
^ | ||
^ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pub mod vec_no_size { | ||
pub struct VecNoSize { | ||
pub v : {42 .. }; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Error: vec_no_type.fl(3,24): Expected type signature, but got '}' | ||
pub mod vec_no_size { | ||
pub struct VecNoSize { | ||
pub v : {42 .. }; | ||
^ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
pub mod vector_types { | ||
pub struct VectorTypes { | ||
pub a : {int .. 32}; | ||
pub b : {foo .. 123456789}; | ||
pub c : {(foo, bar) .. 4}; | ||
pub a : {32 .. int}; | ||
pub b : {123456789 .. foo}; | ||
pub c : {4 .. (foo, bar)}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters