Commit Graph

5236 Commits

Author SHA1 Message Date
Denton Liu
50eb3b8f8f Moved comment to more logical place 2016-05-12 09:49:49 -04:00
Denton Liu
e60a17379e Removed trailing spaces 2016-05-12 09:48:56 -04:00
chriseth
73ede5bb38 Merge pull request #552 from mario02423/patch-1
Update style-guide.rst
2016-05-12 12:40:13 +02:00
chriseth
67ca3bb4b9 Allow access to functions in inline assembly. 2016-05-12 12:30:48 +02:00
chriseth
1ab0f25dff Merge pull request #402 from VoR0220/fixedDataType
Fixed Type initial PR
2016-05-12 12:30:10 +02:00
Denton Liu
52a8d7b3f5 Added content 2016-05-11 17:07:25 -04:00
Denton Liu
08b7d4aebe Changed the title 2016-05-11 17:02:28 -04:00
Denton Liu
ef56723060 Created scoping section 2016-05-11 15:47:05 -04:00
Denton Liu
b6fd6ddc99 Change whitespace section to include exception
For single-line functions, some whitespace padding
makes the functions slightly more readable.
2016-05-11 15:16:18 -04:00
Denton Liu
d4125c4f07 Changed do_something to doSomething
This is in accordance to the style guide
2016-05-11 15:16:18 -04:00
chriseth
d4206b7cd0 Remove unused tests and add asserts for not implemented parts in code generation.
quick fix on christian's rational

change so that ubuntu will stop yelling

be more specific with rational declaration for Windows sake

rational in namespace correction for windows
2016-05-10 16:03:33 -05:00
chriseth
656405240e Simplify interface of RationalNumber. 2016-05-10 19:40:37 +02:00
chriseth
cf226f0607 Special case for moving sign bit to fractional part. 2016-05-10 19:40:37 +02:00
chriseth
02e1c9be0d Cleanup. 2016-05-10 19:40:37 +02:00
chriseth
4dfe9a216c Disallow explicit fixed->enum, but allow bytes->fixed. 2016-05-10 19:40:37 +02:00
chriseth
ef7049f9a6 Some cleanup. 2016-05-10 19:40:37 +02:00
chriseth
22318c0c1a Replace "unsigned int" by "unsigned". 2016-05-10 19:40:37 +02:00
chriseth
80c368dac1 Prefer mobileType() to check rational range. 2016-05-10 19:40:35 +02:00
chriseth
af354d7555 Correctly handle unexpected exceptions during tests. 2016-05-10 19:33:30 +02:00
mario02423
873c54106c Update style-guide.rst
Removed extraneous comma from line 366
2016-05-09 15:42:57 -05:00
VoR0220
a6fc3c8f30 reorganized tests and fixed mobile types and implicit conversions of rationals and fixed point types
one final tweak

check for null types
2016-05-09 11:41:03 -05:00
VoR0220
bfc238c8d1 updated algorithm for bit finding...now to figure out literal value
tiny fixups

changed location of the check

got rid of extra space and fixed a couple of things

added binary results bits

change back literal value
2016-05-09 11:41:03 -05:00
VoR0220
5bddb2d6ff changed algorithm for finding bits 2016-05-09 11:41:03 -05:00
VoR0220
4b3e1f140c much better way of doing modulus 2016-05-09 11:41:03 -05:00
VoR0220
82039b732e added bytes conversion tests, resolved that, converted to binary scaling, refactored the find algo to prevent large numbers and take into account integer bytes
think we're good on solidity type name resolution now

removed couts

updates to documentation and more removed couts along with literal value implementation

forgot semicolons
2016-05-09 11:41:03 -05:00
VoR0220
f0ea817580 fixing modulus and Solidity Name and Type Resolution
minor fixes

current attempts at binary fixup
2016-05-09 11:41:03 -05:00
VoR0220
f67bfd24a3 rational renaming 2016-05-09 11:41:03 -05:00
VoR0220
4b749fc333 changed names for Rational Constants and categories 2016-05-09 11:41:02 -05:00
VoR0220
4d283b2b30 currently what we have 2016-05-09 11:41:02 -05:00
RJ Catalano
93295ae8f8 got exponents up and working with their inverse, changed a few of the tests....something is working that likely shouldn't be
slight changes to how to flip the rational negative around...still trying to figure it out

tests added

updated tests

odd differences in trying soltest from solc binary, let me know if you can replicate

test not working for odd reason

fixed test problem with fixed literals...still need a way to log this error

broken up the tests, added some, changed some things in types and began compiler work

moar tests and prepping for rebuilding much of the types.cpp file

further fixing

infinite loop still happening but it's somewhere in the fixedPoint methodd

fractional bits needed algo improved! Eliminated 2 errors

Corrected problems with the previous commit. No infinite loops. Actually appear to have corrected an error
2016-05-09 11:41:02 -05:00
RJ Catalano
a1a2eac5fd size capabilities functioning properly for fixed types 2016-05-09 11:41:02 -05:00
RJ Catalano
91fda50922 fixed problem with var...probably a conversion problem for fixed in size capabilities
adding fixed type tests

Removing bitshift and regrouping fixed type tests together
2016-05-09 11:41:02 -05:00
RJ Catalano
dff1a26f55 fix for token bug, also quick fix for the wei and seconds 2016-05-09 11:41:02 -05:00
RJ Catalano
6fa5e0fac9 Rational implemented...trying to figure out exponential 2016-05-09 11:41:02 -05:00
RJ Catalano
9a075458ad initial work for fixed types...potentially needing a constant literal type for this
notation

Rational implemented...trying to figure out exponential

fix for token bug, also quick fix for the wei and seconds

fixed problem with var...probably a conversion problem for fixed in size capabilities

adding fixed type tests

Removing bitshift and regrouping fixed type tests together

size capabilities functioning properly for fixed types

got exponents up and working with their inverse, changed a few of the tests....something is working that likely shouldn't be

slight changes to how to flip the rational negative around...still trying to figure it out

tests added

updated tests

odd differences in trying soltest from solc binary, let me know if you can replicate

test not working for odd reason

fixed test problem with fixed literals...still need a way to log this error

broken up the tests, added some, changed some things in types and began compiler work

moar tests and prepping for rebuilding much of the types.cpp file

further fixing

initial work for fixed types...potentially needing a constant literal type for this
2016-05-09 11:41:02 -05:00
Raine Revere
4bfec4efa9 Update units-and-global-variables.rst with link to address ref 2016-05-09 10:15:58 -06:00
chriseth
a927efb151 Correctly use not/bnot/iszero.
A long time ago, some opcodes were renamed. Now we should only have
not (bitwise negation) and iszero (logical negation).
2016-05-09 10:52:23 +02:00
Raine Revere
5e6e9df7dd Add this.balance and this.send to units-and-global-variables.rst
I looked here for this information and didn't initially find it. Hoping to help out others who think the same way as me and look here.
2016-05-08 13:27:30 -06:00
chriseth
9e36bdda8a Merge pull request #541 from Denton-L/develop
Minor Documentation Changes
2016-05-06 19:03:28 +02:00
Denton Liu
7e94a1d84d Added a clause about short functions 2016-05-06 10:19:28 -04:00
Denton Liu
7f940e498e Removed trailing whitespace 2016-05-06 09:53:06 -04:00
Denton Liu
7bc9777b70 Removed bulleted list 2016-05-06 09:42:05 -04:00
Denton Liu
961eb53f41 Moved the location of the "||" 2016-05-06 09:40:05 -04:00
chriseth
1b7e2d3068 Merge pull request #515 from ssonicblue/patch-1
Update natspec summary in layout-of-source-files.rst
2016-05-06 01:01:26 +02:00
Denton Liu
ffade949de Fixed up formatting 2016-05-05 15:31:00 -04:00
Denton Liu
88bb63a507 Corrected formatting 2016-05-05 15:10:32 -04:00
Denton Liu
3abb987179 Rephrased awkward phrasing 2016-05-05 15:06:04 -04:00
Denton Liu
50f894393a Removed a trailing space 2016-05-05 15:05:05 -04:00
Denton Liu
4650280fff Corrected misspelling 2016-05-05 15:02:47 -04:00
Denton Liu
565866dd87 Reformatted according to style guide 2016-05-05 14:58:02 -04:00