Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement using function calls as values #8

Closed
pzipper opened this issue Jun 3, 2023 · 0 comments
Closed

Implement using function calls as values #8

pzipper opened this issue Jun 3, 2023 · 0 comments
Assignees
Labels
A-air Area: the Amp intermediate representation (generic expansion and optimization phase) A-backend-clif Area: the Cranelift backend A-sema Area: the semantic analysis phase on the AST B-none Breaks: nothing, updates are internal and/or don't change existing features C-feature-tracking Category: tracking a planned feature which is not yet implemented P-high Priority: should ship in the earliest possible release
Milestone

Comments

@pzipper
Copy link
Member

pzipper commented Jun 3, 2023

For example,

export const Add = func Add(i32, i32): i32;
export const PrintNumber = func PrintNumber(i32);

export const Main = func(): i32 {
    PrintNumber(Add(42, 42)); // => 84
    return 0;
}
@pzipper pzipper added A-sema Area: the semantic analysis phase on the AST A-air Area: the Amp intermediate representation (generic expansion and optimization phase) A-backend-clif Area: the Cranelift backend B-none Breaks: nothing, updates are internal and/or don't change existing features C-feature-tracking Category: tracking a planned feature which is not yet implemented P-high Priority: should ship in the earliest possible release labels Jun 3, 2023
@pzipper pzipper added this to the 0.5.0-alpha milestone Jun 3, 2023
@pzipper pzipper self-assigned this Jun 3, 2023
@pzipper pzipper closed this as completed Jun 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-air Area: the Amp intermediate representation (generic expansion and optimization phase) A-backend-clif Area: the Cranelift backend A-sema Area: the semantic analysis phase on the AST B-none Breaks: nothing, updates are internal and/or don't change existing features C-feature-tracking Category: tracking a planned feature which is not yet implemented P-high Priority: should ship in the earliest possible release
Projects
None yet
Development

No branches or pull requests

1 participant