-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* First round of refreshed syntax errors. Not working yet * Unit test now uses external file and not handcoded one * Syntax package now works * Basic version of syntax errors now works
- Loading branch information
Showing
16 changed files
with
426 additions
and
221 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,4 +22,4 @@ go.work | |
|
||
# Go binaries | ||
solgo | ||
examples/examples | ||
prototype/* |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
pragma solidity ^0.8.0; | ||
|
||
contract TestContract { | ||
uint256 public count; | ||
|
||
// Missing semicolon | ||
function increment() public { | ||
count += 1 | ||
} | ||
|
||
// Mismatched parentheses | ||
function decrement() public { | ||
count -= 1; | ||
} | ||
|
||
// Missing function keyword | ||
setCount(uint256 _count) public { | ||
count = _count; | ||
} | ||
|
||
// Extraneous input 'returns' | ||
function getCount() public returns (uint256) { | ||
return count | ||
} | ||
} |
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 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 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.
Oops, something went wrong.