Christian
9e91596c8d
Save the scope for every declaration.
2014-12-01 17:33:21 +01:00
Lefteris Karapetsas
43d6726dd7
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
2014-12-01 17:03:04 +01:00
Christian
b685735b3a
Cleanup of scanner.
...
Removed redundancy of keyword definitions and removed some unused token
predicates.
2014-12-01 13:46:04 +01:00
chriseth
3fc2708d65
Merge pull request #545 from LefterisJP/sol_com_in_ast
...
Solidity function AST nodes get documentation attribute
2014-12-01 12:43:32 +01:00
Lefteris Karapetsas
4b84507310
simplifying Scanner::reset()
2014-12-01 01:05:55 +01:00
Lefteris Karapetsas
21fdd84c09
Moving LiteralScope to Scanner.cpp
2014-11-30 23:25:42 +01:00
Lefteris Karapetsas
a595464739
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()
2014-11-30 22:43:40 +01:00
Gav Wood
4b0d949df3
Warning fix.
...
ECDSA recover fix.
2014-11-28 14:28:02 +01:00
Lefteris Karapetsas
db7b118ece
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
2014-11-28 11:17:18 +01:00
Lefteris Karapetsas
e3e90c4e6b
Solidity FunctionDefinition used ASTString shared ptr for docstrings
2014-11-28 01:26:37 +01:00
Lefteris Karapetsas
034870b4c0
Fixing multiline comment parsing in solidity
2014-11-28 00:06:38 +01:00
Lefteris Karapetsas
e11e651929
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
2014-11-27 18:57:50 +01:00
Christian
3e32ce5d4f
Minor changes to magic variables.
...
gas moves to "msg", ripemd160 returns hash160.
2014-11-27 18:24:59 +01:00
Lefteris Karapetsas
6ddfebafae
Solidity function AST nodes get documentation attribute
2014-11-27 15:21:22 +01:00
Christian
c4a43c64c2
Global functions.
2014-11-26 15:42:54 +01:00
Christian
f30dc68cdd
Sending ether.
2014-11-26 15:35:25 +01:00
Christian
a2715c5f34
More general function types and references.
2014-11-26 15:35:25 +01:00
Christian
6e6b85b58a
Access to blockchain data.
2014-11-24 13:24:03 +01:00
chriseth
5d75263ff1
Whitespace change.
2014-11-24 00:00:46 +01:00
Christian
583a315d3d
Magic variables.
2014-11-23 21:28:45 +01:00
Christian
c50cd646ce
Contracts as types and framework for special global variables.
2014-11-23 21:28:44 +01:00
Christian
fa987e0a20
Convenience class for type members.
2014-11-23 21:04:39 +01:00
Christian
735dbe6986
We only care about member types.
2014-11-23 21:04:39 +01:00
Lefteris Karapetsas
93c98a6e52
no c_ prefix for const parameter names
2014-11-21 17:43:24 +01:00
Lefteris Karapetsas
4cbfb5a903
modifying solidity scanner class to conform with the coding standards
2014-11-21 17:08:35 +01:00
chriseth
c7b933b4db
Merge pull request #524 from LefterisJP/sol_parse_comments
...
Solidity scanner taking documentation comments into account
2014-11-21 15:35:17 +01:00
Lefteris Karapetsas
3b16ffa8ab
simplifying scanDocumentationComment()
2014-11-21 09:09:39 +01:00
Lefteris Karapetsas
cda2532de6
cleaning up the external interface of Scanner::next(). No special cases
2014-11-20 23:56:24 +01:00
Lefteris Karapetsas
a93916b5f9
extra comments scanning test
2014-11-20 23:18:05 +01:00
Lefteris Karapetsas
b4b0e37e7a
styling fixes
2014-11-20 22:08:16 +01:00
Lefteris Karapetsas
43961a552d
documentation comments are now always skipped but saved as special tokens at the Scanner
2014-11-19 16:21:42 +01:00
Christian
3ba9649dde
Special handling for constructor.
2014-11-19 13:19:43 +01:00
Lefteris Karapetsas
4e6d3a38cd
fixing typo and alignment
2014-11-19 02:05:55 +01:00
Lefteris Karapetsas
3174f5eca3
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
2014-11-19 01:58:32 +01:00
Gav Wood
3e57086efe
Fix warnings, release errors.
2014-11-18 17:49:31 +01:00
Gav Wood
ff9331185c
Merge branch 'filter_logs' into develop
2014-11-18 13:40:53 +01:00
Marek Kotewicz
48b89901c2
Merge branch 'develop' into js_abi
2014-11-14 14:08:44 +01:00
Christian
c560a62352
Struct types.
2014-11-14 14:08:14 +01:00
Christian
46dd629820
Mapping types.
2014-11-14 14:08:14 +01:00
Gav Wood
c4a65cf688
Merge pull request #509 from chriseth/sol_jsonInterface
...
Provide interface for calls in JSON and some other formatting changes.
2014-11-14 12:07:33 +01:00
Christian
8c6bf21c01
Provide interface for calls in JSON and some other formatting changes.
2014-11-11 17:41:48 +01:00
Christian
d1789250b6
Merge remote-tracking branch 'ethereum/develop' into sol_jumptable
...
Conflicts:
libsolidity/Compiler.cpp
2014-11-11 10:39:59 +01:00
Marek Kotewicz
c3e80e69f9
Merge branch 'develop' into js_abi
...
Conflicts:
libjsqrc/main.js
libweb3jsonrpc/WebThreeStubServer.cpp
libweb3jsonrpc/WebThreeStubServer.h
libweb3jsonrpc/abstractwebthreestubserver.h
libweb3jsonrpc/spec.json
test/webthreestubclient.h
2014-11-10 23:04:35 +01:00
Marek Kotewicz
5a3a5b9abc
merge
2014-11-10 22:51:10 +01:00
Christian
a0c72065fe
Merge remote-tracking branch 'ethereum/develop' into sol_optimizer
...
Conflicts:
libevmcore/Instruction.cpp
2014-11-10 13:30:59 +01:00
Christian
41b26e491b
Replace function selector jump table by more resilient linear time check.
2014-11-10 13:13:53 +01:00
Gav Wood
d9822190c6
Merge pull request #498 from ethereum/solidity_cmake
...
add headers to solidity's add_library
2014-11-10 11:57:29 +00:00
Christian
5af66a6cb3
Merge remote-tracking branch 'ethereum/develop' into sol_stateVariables
...
Conflicts:
libsolidity/ExpressionCompiler.cpp
2014-11-10 00:45:58 +01:00
Christian
91f9a7b7c4
Do not return after throw.
2014-11-10 00:42:12 +01:00
Marek Kotewicz
d6e7b82d3c
add headers to solidity's add_library
2014-11-08 23:48:24 +01:00