Christian
d4d1369f6e
Move implementations of ::accept out of AST.cpp.
10 years ago
Christian
a03f2870c6
More const cleanup.
10 years ago
Christian
2506b42da8
Clear separation between ASTVisitor and ASTConstVisitor and more const specifiers.
10 years ago
Christian
169139a066
Const functions for ASTVisitor and const ASTPrinter.
10 years ago
Christian
8621949067
Import directive.
10 years ago
Christian
a2aa117a6b
Disallow assignments to structs and mappings.
10 years ago
Christian
d759075528
More general function types and references.
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
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
Christian
e1c01722d4
Re-added some changes lost in merges.
10 years ago
Christian
bfafb32b0b
More information for type expectation errors.
10 years ago
Christian
5bd4640b17
Detect integer length from literals and remove "std::".
10 years ago
Christian
5dc7609c80
Minor cleanup.
10 years ago
Christian
052b74b1dc
Stylistic corrections.
10 years ago
Christian
37216a246a
Converted all asserts to exceptions.
10 years ago
chriseth
0f0a464b4e
Stylistic changes.
10 years ago
Christian
ea6d58a0d1
Contract compiler and also add ExpressionStatement to AST.
ExpressionStatement functions as glue between Statements and Expressions.
This way it is possible to detect when the border between statements and
expressions is crossed while walking the AST. Note that ExpressionStatement is
not the only border, almost every statement can contains expressions.
10 years ago
Christian
9ae4efd311
Bugfix: Allow empty return statements without type checking.
10 years ago
Christian
c6c7f86b82
Further const placement changes.
10 years ago
Christian
2b6d66374d
Compiler for assignments.
10 years ago
Christian
fd7fc4293e
Removed std:: where it made sense.
10 years ago
Christian
62ca0b2b43
Replace BOOST_ASSERT by assert.
10 years ago
Christian
d4d5f23e8f
Expression compiler.
10 years ago
Christian
19e7a08b0e
Remove nullptr comparisons.
10 years ago
Christian
7bab242f5f
Use createTypeError everywhere and stream out Location.
10 years ago
Christian
8bb71c4ebf
Use boost errinfo.
10 years ago
Christian
bf3a76f5af
Improved exceptions and reporting exceptions for command-line compiler.
10 years ago
Christian
fa22722e0e
Pointer type cleanup: Use ASTPointer only for AST nodes and shared_ptr for type
pointer.
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
df43644111
Some fixes for the type system, should be quite usable now.
10 years ago
Christian
b71e993223
Added meaningful exception types.
10 years ago
Christian
2f9d821967
Type system, not yet complete.
10 years ago
Christian
8aad54050c
AST printer and command line tool, some fixes.
10 years ago
Christian
3fd9358c3e
Corrected indentation.
10 years ago
Christian
961327ee7d
Solidity parser, can not parse much yet.
10 years ago