Jon Meow
5047cd6447
Switch executable_semantics to lit/filecheck tests. ( #819 )
2021-09-09 11:15:41 -07:00
Jon Meow
a03536a196
Add syntax for package and library ( #792 )
...
Doesn't add much logic, only takes advantage of parser structure for the ordering enforcement.
Note import_nonexistent tests should probably fail, but writing import tests needs a chain of functionality, and I figured I'd just start adding some to validate the syntax (not adding existent imports because that'd require multi-file structure).
2021-09-02 16:01:15 -07:00
Jon Meow
6164cdfd6d
Verify that provision/omission of return types matches ( #717 )
...
This is finishing #678
2021-08-06 15:18:39 -07:00
Jon Meow and Geoff Romer
2620ba066d
Move Int parsing to i32 for #543 ( #700 )
...
Note this doesn't support other sizes or types, it just errors on them.
Co-authored-by: Geoff Romer <gromer@google.com >
2021-08-05 09:34:12 -07:00
Richard Smith
567b9bb5a4
Reverse 'type: identifier' to 'identifier: type' in executable
...
semantics.
2021-06-02 11:33:50 -07:00
Richard Smith
da403db9ff
Revert "Remove : from vars in exec semantics ( #504 )"
...
This reverts commit 05663633d3 .
2021-06-02 11:33:50 -07:00
Jon Meow
b1d11bae7e
Fix 6c -> carbon ext ( #536 )
...
Chandler reminded me of this, the `.carbon` extension is noted here:
https://github.com/carbon-language/carbon-lang/tree/trunk/docs/design/code_and_name_organization#overview
2021-05-17 08:15:07 -07:00