Liana Husikyan
3cfe1cabda
Update NameAndTypeResolver.cpp
10 years ago
Liana Husikyan
1c6fcca6e2
small fix
10 years ago
Liana Husikyan
7b72aa68be
fixed the order of error msgs
10 years ago
Liana Husikyan
da309c3853
created secondarySoureLocation error type
added additional information to error msgs
10 years ago
chriseth
46182cd82f
Styling.
10 years ago
chriseth
0b36ca86d7
Fixed function overloads.
Added tests, disallowed non-calling usage of non-unique function
references.
10 years ago
Lu Guanqun
17f79a5c6e
implement overload resolution
10 years ago
Christian
30bd6f271f
Parsing of array types and basic implementation.
10 years ago
Liana Husikyan
87e956729c
Inline member initialisation
renamed VariableDefinition class to VariableDeclarationStatement
added tests
10 years ago
Gav Wood
2c6b18f01b
Add EVMJIT.
10 years ago
Lefteris Karapetsas
952350bec1
Bugfix for functions override
- Functions with byte array type parameters can now be safely
overriden. Parameter location is now set at the right place.
- Also made a test for the fix
10 years ago
Christian
0185ac5a0d
"external" visibility specifier.
10 years ago
Christian
4b0a566e70
Some changes to enums.
10 years ago
Lefteris Karapetsas
2dbf739119
Enums NameAndTypeResolution - WIP
- Also adding an EndToEnd enum test
10 years ago
Christian
cc00f49870
Fix scoping of event arguments.
10 years ago
Christian
d3e2d2adf3
Parsing of events.
10 years ago
Christian
fdf791149d
Compilation of function modifiers.
10 years ago
Christian
2566466a6c
Type resolution for function modifiers.
10 years ago
Christian
6fb537f48c
Reverse order of inheritance in base list.
10 years ago
Christian
813af2c4ee
Call constructors of base classes.
10 years ago
Christian
50c0a0ed66
Constructor arguments for base classes.
10 years ago
Christian
4fe47c5014
Explicit calls to base class function.
10 years ago
Christian
ffead7b4d5
Check overrides and provide inherited public interface.
10 years ago
Christian
feff325023
Import inherited members into the contract's scope.
10 years ago
Christian
46664c44b3
Assertions that throw InternalCompilerErrors.
10 years ago
Christian
41948b1309
Fix: Resolve function types of all contracts before checking types inside functions.
10 years ago
Christian
a3473ad88d
Check that constructor does not have "returns" directive.
10 years ago
Christian
a03f2870c6
More const cleanup.
10 years ago
Christian
dcce76392b
Renamed url to identifier and added some comments.
10 years ago
Christian
50b61e3dd3
Multi-source and multi-contract compiler.
10 years ago
Christian
b514546927
Save the scope for every declaration.
10 years ago
Christian
638960f22f
Contracts as types and framework for special global variables.
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
37216a246a
Converted all asserts to exceptions.
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
fd7fc4293e
Removed std:: where it made sense.
10 years ago
Christian
62ca0b2b43
Replace BOOST_ASSERT by assert.
10 years ago
Christian
92ee64f443
Some documentation.
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
9a059ec662
Corrected spacing around colon.
10 years ago
Christian
fa22722e0e
Pointer type cleanup: Use ASTPointer only for AST nodes and shared_ptr for type
pointer.
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