mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-18 07:11:53 +03:00
54a9691b73
652: ASG refactor r=collinc97 a=Protryon ## Motivation This PR makes the ASG more user friendly by using arenas instead of RefCell/Arc: 1. Impossible to leak the ASG by creating a circular strong reference chain 2. We don't need RefCell's everywhere to implement passes 663: Bug 625/fix negative fields not allowed r=collinc97 a=gluax Resolves #625. Logic used to do so is in check if first character of string to convert is a negative sign. If so remove first character convert from string to field, and then negate it on the leo side. If first character wasn't a negative sign, do the same as before. Co-authored-by: Protryon <max.bruce12@gmail.com> Co-authored-by: gluax <jonathan.t.pavlik@gmail.com> Co-authored-by: gluax <16431709+gluax@users.noreply.github.com> |
||
---|---|---|
.. | ||
address | ||
array | ||
boolean | ||
circuits | ||
compiler | ||
compiler_output | ||
console | ||
core | ||
definition | ||
field | ||
function | ||
group | ||
import | ||
input_files | ||
integers | ||
mutability | ||
statements | ||
syntax | ||
tuples | ||
mod.rs |