Christian
92b0ff7a10
Fix: Storage offset of first struct member should be zero.
10 years ago
Lefteris Karapetsas
9ff245ab52
Simplifying lambda function in CompilerStack::getInterface()
10 years ago
Lefteris Karapetsas
c89fc7df63
Removing unneeded local variable in CompilerStack::getDocumentation()
10 years ago
Lefteris Karapetsas
93c488ce73
Handle absence of Natspec doc and add option to solc
10 years ago
Lefteris Karapetsas
88b1bb2540
More Natspec JSON export tests and better error reporting
10 years ago
Lefteris Karapetsas
eed32824c3
Using jsoncpp for exporting ABI interface from solidity
- Also changing the interface JSON test to have a shorter name
plus to provide meaningful error message in case of failure
10 years ago
Christian
a2aa117a6b
Disallow assignments to structs and mappings.
10 years ago
Christian
b514546927
Save the scope for every declaration.
10 years ago
Lefteris Karapetsas
60ac4d3a2c
Exporting Natspec documentation to a JSON interface
- Adding a getDocumentation() function to solidity compiler stack
so that we can obtain the natspec interface for a contract
- Adding libjsoncpp as a dependency of libsolidity. This is done
in a dirty way, using libjsonrpc-cpp s an intermediate dependency
for the moment. Will fix soon.
- Start of a test file for Natspec exporting to JSON
10 years ago
Christian
53608c9d77
Cleanup of scanner.
Removed redundancy of keyword definitions and removed some unused token
predicates.
10 years ago
Lefteris Karapetsas
6e0839efe3
simplifying Scanner::reset()
10 years ago
Lefteris Karapetsas
87c58e4866
Moving LiteralScope to Scanner.cpp
10 years ago
Lefteris Karapetsas
eb5369d6f2
Simplifying scanning for natspec documentation
- Scanner no longer remembers the last natspect comment until
a new one is encountered. It remembers it only until the next
scan()
10 years ago
Gav Wood
362e5d8145
Warning fix.
ECDSA recover fix.
10 years ago
Lefteris Karapetsas
7ac651726f
Solidity natspec docstring test improvements
- Adding a test for docstring being between function signature and
function body
- Properly checking for exceptions in parsing
- Small parser fix
10 years ago
Lefteris Karapetsas
4bb7cc9f67
Solidity FunctionDefinition used ASTString shared ptr for docstrings
10 years ago
Lefteris Karapetsas
170ff1a07f
Fixing multiline comment parsing in solidity
10 years ago
Lefteris Karapetsas
e5da1ba6c6
Solidity work for documentation strings
- Still a work in progress
- Parser now properly gets each function's doc comment
- Small changes in the scanner
- Multiline comments are considered
10 years ago
Christian
390e2e8634
Minor changes to magic variables.
gas moves to "msg", ripemd160 returns hash160.
10 years ago
Lefteris Karapetsas
43f269ce9a
Solidity function AST nodes get documentation attribute
10 years ago
Christian
68acfc0544
Global functions.
10 years ago
Christian
898f989aa1
Sending ether.
10 years ago
Christian
d759075528
More general function types and references.
10 years ago
Christian
b185a748a5
Access to blockchain data.
10 years ago
chriseth
0669eb8d4c
Whitespace change.
10 years ago
Christian
27d20cd849
Magic variables.
10 years ago
Christian
638960f22f
Contracts as types and framework for special global variables.
10 years ago
Christian
6ee07c2cb8
Convenience class for type members.
10 years ago
Christian
ad1a1f3ee2
We only care about member types.
10 years ago
Lefteris Karapetsas
86e5a3bb48
no c_ prefix for const parameter names
10 years ago
Lefteris Karapetsas
d455d6f651
modifying solidity scanner class to conform with the coding standards
10 years ago
Lefteris Karapetsas
7f959f1292
simplifying scanDocumentationComment()
10 years ago
Lefteris Karapetsas
babddd394e
cleaning up the external interface of Scanner::next(). No special cases
10 years ago
Lefteris Karapetsas
06e2c08af7
extra comments scanning test
10 years ago
Lefteris Karapetsas
03f8208b6b
styling fixes
10 years ago
Lefteris Karapetsas
be1d8881af
documentation comments are now always skipped but saved as special tokens at the Scanner
10 years ago
Christian
c7972ba850
Special handling for constructor.
10 years ago
Lefteris Karapetsas
0788e326ce
fixing typo and alignment
10 years ago
Lefteris Karapetsas
0c101d89f8
solidity scanner takes triple slash doc comments into account
- Conditionally scanning for the documentation comments and gettings their
contents.
- Adding tests for this functionality of the scanner
10 years ago
Gav Wood
a01859b285
Fix warnings, release errors.
10 years ago
Christian
bbc3a1b37e
Struct types.
10 years ago
Christian
ec2b010047
Mapping types.
10 years ago
Christian
104dd11456
Provide interface for calls in JSON and some other formatting changes.
10 years ago
Marek Kotewicz
6cc9e6952e
merge
10 years ago
Christian
f5730edddb
Replace function selector jump table by more resilient linear time check.
10 years ago
Christian
650b31777b
Do not return after throw.
10 years ago
Marek Kotewicz
e2c9f19550
add headers to solidity's add_library
10 years ago
Christian
a5542ba2de
State variables.
10 years ago
Christian
0c40ba83f0
Bugfix: Bit width of address types.
10 years ago
Christian
11f65d50b8
Evaluate expressions in convenient order.
10 years ago