josh11b
9c8fd6864e
Implement rename me -> self ( #2444 )
...
Implements change proposed in #1382
Replaces #1624
2022-12-06 20:17:00 -08:00
pk19604014
4c47d87d95
Regenerated fuzzer corpus with regen_corpus.py ( #2008 )
...
To pick up proto updates (field renames etc.) and new carbon source samples added to testdata.
```
$ rm explorer/fuzzing/fuzzer_corpus/*
$ explorer/fuzzing/regen_corpus.py
```
2022-08-15 10:14:06 -07:00
Richard Smith
59ae6e31b6
Rename PrimitiveOperatorExpression to OperatorExpression. ( #1530 )
...
This isn't modeling only primitive operators any more: it also models operators
that are rewritten as calls to an interface function.
2022-07-22 11:36:36 -07:00
pk19604014
e206c3123f
Removed .textproto extensions from explorer fuzzer corpus files + updated the corpus with regen_corpus.py ( #1303 )
...
Also added fuzzer_corpus to codespell precommit exclusions
2022-06-02 14:54:50 -04:00
Darshal Shetty
e4a2d0f047
Addr Keyword Implementation ( #1255 )
...
* Implement addr keyword
* Add files that were deleted during merge
Some files got deleted during merging trunk because of the executable
semantics rename.
* Implement changes from code review.
Major changes:
- Rename AddrBindingPattern to AddrPattern
- Fix AddrPattern related changes in fuzzing
* Update documentation for GetField
* Fix AddPattern according to @zygoloid's suggestions
* Apply @zygoloid's changes to method comment
* Add a multi-component field example
* Incorporate AST changes to fuzzer corpus
* Refactor the deduced_param_list grammar rule
Suggested by @zygoloid
2022-06-01 13:51:37 -04:00
pk19604014
19d2407de7
Similar to #1272 , changed the type of alternative signature from generic Expression to TupleLiteral to match the grammar ( #1291 )
2022-05-24 17:53:49 -07:00
Richard Smith
4cf7ed4f12
Rename some classes to match the design better ( #1287 )
...
* `FieldAccessExpression` -> `SimpleMemberAccessExpression`
* Member `aggregate` -> `object`
* Member `field` -> `member`
* `CompoundFieldAccessExpression` -> `CompoundMemberAccessExpression`
* `GetField` -> `GetMember`
As discussed in #1233 .
2022-05-24 17:51:54 -07:00
pk19604014
8b07d1ce5d
Fuzz input fix for function type literal changed in #1272 ( #1289 )
...
This reverts commit aa7c98802c .
2022-05-24 10:36:53 -07:00
pk19604014
f0a34e4bf7
Added TypeCheckTypeExp() and changed function type literal and similar type-checking logic to use the new function ( #1256 )
2022-05-23 16:26:35 -07:00
pk19604014
cdc9428984
Changed the type of parameter in FunctionType ctor from generic Expression to TupleLiteral to match the grammar ( #1272 )
2022-05-20 17:36:17 -07:00
pk19604014
45b18098ed
Add continuation name to name resolution after processing continuation body ( #1264 )
...
Fixes #1263
This makes the continuation behave similar to this C++ lambda construct - auto f = []() { f(); }; which doesn't compile.
2022-05-18 10:36:11 -04:00
pk19604014
88be617360
Changed ExpectReturnOnAllPaths() to treat continuation, run and await as missing returns ( #1258 )
...
Fixes #1257
2022-05-17 09:07:16 -07:00
pk19604014
589930b703
Fix for a crash caused by choice alternative name being the same as choice name ( #1243 )
...
Fixes #1248
Changed resolve names logic to add choice name to name resolution after choice's alternatives are added.
2022-05-11 11:03:19 -07:00
pk19604014
aea04209ee
Added a few files to explorer fuzzer corpus (top files by size after converting from explorer test_data sources) ( #1236 )
...
Generated with:
$ bazel build explorer/fuzzing:fuzzverter
$ cd explorer/testdata/
$ find . -name "*.carbon" | while read t; do mkdir -p "/tmp/fuzzer_corpus/$(dirname $t)" && ../../bazel-bin/explorer/fuzzing/fuzzverter --mode carbon_to_proto --input $t --output "/tmp/fuzzer_corpus/$(dirname $t)/$(basename $t .carbon).textproto" ; done
$ du -ah /tmp/fuzzer_corpus/ | grep -v fail_ | grep textproto | sort -rh | head -32 | cut -f 2 | while read t; do cp $t ../fuzzing/fuzzer_corpus/`shasum $t | cut -d ' ' -f1`.textproto; done
Tested:
$ bazel test -k explorer/...
2022-05-11 10:07:47 -07:00
Jon Meow
309ec35f95
Rename executable_semantics to explorer ( #1188 )
...
Change generated with:
```
#!/usr/bin/bash -eux
# Helper script for renaming pending work.
# Run from the repo root.
# Rename executable_semantics in code.
sed -i 's/executable_semantics/explorer/g' \
$(git grep -l 'executable_semantics' . | grep -v proposals)
sed -i 's/executable semantics/explorer/g' \
$(git grep -l 'executable semantics' . | grep -v proposals)
sed -i 's/Executable semantics/Explorer/g' \
$(git grep -l 'Executable semantics' . | grep -v proposals)
sed -i 's/Executable Semantics/Explorer/g' \
$(git grep -l 'Executable Semantics' . | grep -v proposals)
sed -i 's/EXECUTABLE_SEMANTICS/EXPLORER/g' \
$(git grep -l 'EXECUTABLE_SEMANTICS' . | grep -v proposals)
sed -i 's/ExecutableSemantics/Explorer/g' \
$(git grep -l 'ExecutableSemantics' . | grep -v proposals)
sed -i 's/executable-semantics/explorer/g' \
$(git grep -l 'executable-semantics' . | grep -v proposals)
# This is only needed for the initial move.
mv executable_semantics explorer
mv explorer/fuzzing/executable_semantics_fuzzer.cpp explorer/fuzzing/explorer_fuzzer.cpp
```
Verified with `bazel test ...`
2022-04-29 13:20:25 -07:00