Lefteris Karapetsas
631bd9ab38
Fix for sol scanner where empty multiline comment became Natspec comment
10 years ago
Lefteris Karapetsas
49f60a1d6d
Factoring forward slash scanning out to its own function
10 years ago
Lefteris Karapetsas
61a1f4436c
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
10 years ago
Lefteris Karapetsas
6d48f3e987
Work in progress for /** ... */ natspec comments
- Work in progress on the scanner for recognizing the second
type of doxygen comments for Natspec.
10 years ago
Christian
04c8d8bdc0
Improved external interface for multi-source and multi-contract compilation.
10 years ago
Christian
50b61e3dd3
Multi-source and multi-contract compiler.
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
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
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
Lefteris Karapetsas
d455d6f651
modifying solidity scanner class to conform with the coding standards
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
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
Christian
1b9e014374
Support for negative literals.
10 years ago
Christian
37216a246a
Converted all asserts to exceptions.
10 years ago
Christian
adcf062367
Actual contract creator and add solidity to AlethZero interface.
10 years ago
Christian
c6c7f86b82
Further const placement changes.
10 years ago
Christian
62ca0b2b43
Replace BOOST_ASSERT by assert.
10 years ago
Christian
2c5b1c5262
Documentation for AST, Parser, Scanner and other classes.
10 years ago
Christian
9a059ec662
Corrected spacing around colon.
10 years ago
Christian
cf2cc8e8ba
Cleanup of copyright headers.
10 years ago
Christian
fb35847012
Access modifier cleanup.
10 years ago
Christian
c253a90fc4
Coding style cleanup: const and vecptr.
10 years ago
Christian
116070f304
Coding style and cleanup
10 years ago
Christian
68a85f4f80
Corrected coding style.
10 years ago
Christian
3fd9358c3e
Corrected indentation.
10 years ago
Christian
4c1739169a
Parse everything up to function bodies and report parser errors with location.
10 years ago
Christian
961327ee7d
Solidity parser, can not parse much yet.
10 years ago
Christian
2d50851ea3
Solidity scanner and some unit tests.
The scanner is a modified version of the v8 javascript scanner.
10 years ago