Commit Graph

44 Commits

Author SHA1 Message Date
Christian
307a83e1de More convenient function type construction. 2015-01-12 12:46:52 +01:00
Christian
400d68b81d Arbitrary precision integer constants. 2015-01-07 21:44:17 +01:00
Lefteris Karapetsas
ca733fd319 style: curlies 2015-01-05 16:55:17 +01:00
Lefteris Karapetsas
b4712773d3 Fix for sol scanner where empty multiline comment became Natspec comment 2015-01-05 16:37:43 +01:00
Lefteris Karapetsas
1da53d1681 Factoring forward slash scanning out to its own function 2014-12-18 17:30:10 +01:00
Lefteris Karapetsas
e6e5d5ea24 More multiline natspec tests and small issue fix 2014-12-18 16:48:25 +01:00
Lefteris Karapetsas
d97bdba471 Adressing some natspec issues 2014-12-18 16:27:17 +01:00
Lefteris Karapetsas
a6b0fba227 Changes in InterfaceHandler to deal with multiline natspec
- Also now Solidity scanner considers Carriage Return as whitespace
- Tests for Natspec generation with the new multiline comments
2014-12-18 15:03:45 +01:00
Lefteris Karapetsas
f73278c8b2 Scanner properly scans multiline natspec comments
- Single and multiline natspect comments get the initial whitespace
  skipped now

- Some rules introduced for the multiline comments. If first line is
  empty then no newline is added to the literal. Same thing with the
  last line. Finally in all lines initial '*' are skipped
2014-12-18 15:03:45 +01:00
Lefteris Karapetsas
d3234c51b9 Work in progress for /** ... */ natspec comments
- Work in progress on the scanner for recognizing the second
      type of doxygen comments for Natspec.
2014-12-18 15:03:45 +01:00
Christian
5a1a83ff42 Assertions that throw InternalCompilerErrors. 2014-12-17 16:24:56 +01:00
Christian
d2cf345483 Improved external interface for multi-source and multi-contract compilation. 2014-12-03 18:52:28 +01:00
Christian
254df50fea Multi-source and multi-contract compiler. 2014-12-03 18:51:59 +01:00
Christian
7b54d957d8 Comments for the TOKEN_LIST usage. 2014-12-03 09:41:12 +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
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
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
c50cd646ce Contracts as types and framework for special global variables. 2014-11-23 21:28:44 +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
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
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
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
Christian
627c80f0a8 Support for negative literals. 2014-11-06 02:44:43 +01:00
Christian
b5e77678c9 Keywords for all integer types. 2014-11-06 02:40:39 +01:00
Christian
c1f7a1665f Converted all asserts to exceptions. 2014-11-05 15:01:24 +01:00
Christian
a36db1f241 Actual contract creator and add solidity to AlethZero interface. 2014-10-31 14:37:23 +01:00
Christian
6a96b6b5ad Removed std:: where it made sense. 2014-10-24 19:42:38 +02:00
Christian
58be273506 Replace BOOST_ASSERT by assert. 2014-10-24 19:40:47 +02:00
Christian
c8b008558d Cleanup of copyright headers. 2014-10-20 16:37:04 +02:00
Christian
be885dc3cf Pointer type cleanup: Use ASTPointer only for AST nodes and shared_ptr for type
pointer.
2014-10-20 16:23:49 +02:00
Christian
f0c334670d Coding style cleanup: const and vecptr. 2014-10-20 13:02:06 +02:00
Christian
646f106a34 Keyword cleanup 2014-10-17 12:52:39 +02:00
Christian
a7f9815c0f Coding style and cleanup 2014-10-17 12:37:51 +02:00
Christian
8a506b505f Corrected coding style. 2014-10-16 14:08:54 +02:00
Christian
c3faa433ef Corrected indentation. 2014-10-09 12:36:17 +02:00
Christian
0a1ebe4f51 Parse everything up to function bodies and report parser errors with location. 2014-10-08 20:53:50 +02:00
Christian
56e9cc8db7 Solidity parser, can not parse much yet. 2014-10-08 13:49:34 +02:00
Christian
ef59373871 Solidity scanner and some unit tests.
The scanner is a modified version of the v8 javascript scanner.
2014-10-08 11:11:50 +02:00