Closed onbjerg closed 6 years ago
Balance: 0.000000 ETH Tokens: ANT: 10.00 Contract address: 0x4893b8ed3ce0e589563c6cd59e5b58499f32de94 Network: Mainnet Paid to: oivoodoo Visit https://openbounty.status.im to learn more.
@onbjerg , i want to take this. Which file is this ?
Thanks
@linuxchip Multiple files. You will have to adjust the scanner, parser and evaluator. I think a good starting point would be to check how multiplication works in the interpreter :)
@onbjerg , thanks for the input. I will start working on this
Cool! Let me know if you have questions 😊
@onbjerg , just one quick question.
Which interpreter you are mentioning here ?
@linuxchip The Radspec interpreter
@onbjerg , i checked aragon/radspec directory, but somehow i am not getting exactly.
I see multiplication code in parser/index.js at line 150 ( is this you are mentioning to check how multiplication works in interpreter ? )
multiplication () { let node = this.unary()
while (this.matches('SLASH', 'STAR')) {
let operator = this.previous().type
let right = this.unary()
node = {
type: 'BinaryExpression',
operator,
left: node,
right
}
}
return node
}
Thanks
That's the parser. It takes in tokens (in this case, for multiplication, it is the STAR
token).
The parser takes in tokens and generates an Abstract Syntax Tree which is then read by the evaluator to actually perform the multiplication.
@onbjerg could you check the transfer?
@onbjerg it's still status Pending maintainer confirmation
. Could you check it? it would be great to verify that it's transferable
@onbjerg and again write you about the pending status
:)
@oivoodoo we are confirming bounties now, payout should arrive shortly
@luisivan, it looks like I received it. in this time I setup metamask and bounty program properly. Thank you!
Instead of having to write 10^18 manually (10 with 18 zeroes), it would be nice if we could just write 10^18.
Acceptance criteria
^
)