Skip to content

rust code rendering #92

@lens0021

Description

@lens0021

https://docs.amber-lang.com/0.4.0-alpha/contribute/guide_book#2-2-translator

Actual

Image

Expected

// This will translate `1 + 2` into `(( 1 + 2 ))`
fn translate() -> String {

    // self.digit_1 and self.digit_2 is set earlier by the parser
    format!("(( {} + {} ))", self.digit_1, self.digit_2)
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions