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

connect inline assembly errors from zig back to the source #2080

Closed
andrewrk opened this issue Mar 20, 2019 · 1 comment
Closed

connect inline assembly errors from zig back to the source #2080

andrewrk opened this issue Mar 20, 2019 · 1 comment
Labels
enhancement Solving this issue will likely involve adding new logic or components to the codebase. frontend Tokenization, parsing, AstGen, Sema, and Liveness.
Milestone

Comments

@andrewrk
Copy link
Member

andrewrk commented Mar 20, 2019

Related to #246 which is for when LLVM emits assembly errors. This issue is for when Zig emits assembly template parsing errors and is a prerequisite of #246. Also related is #215.

comptime {
    asm(
        \\line 1
        \\line 2 %
        \\line 3
    );
}

output:

/home/andy/downloads/zig/build/test.zig:2:5: error: expected a '%' or '['
    asm(
    ^

The error points at the asm keyword which does not help you find where the problem is.

@andrewrk andrewrk added the enhancement Solving this issue will likely involve adding new logic or components to the codebase. label Mar 20, 2019
@andrewrk andrewrk added this to the 0.5.0 milestone Mar 20, 2019
@andrewrk andrewrk added the stage1 The process of building from source via WebAssembly and the C backend. label Mar 20, 2019
@andrewrk andrewrk modified the milestones: 0.5.0, 0.6.0 Sep 20, 2019
@andrewrk andrewrk modified the milestones: 0.6.0, 0.7.0 Oct 17, 2019
@andrewrk andrewrk added frontend Tokenization, parsing, AstGen, Sema, and Liveness. and removed stage1 The process of building from source via WebAssembly and the C backend. labels Oct 10, 2020
@andrewrk andrewrk modified the milestones: 0.7.0, 0.8.0 Oct 10, 2020
@andrewrk andrewrk modified the milestones: 0.8.0, 0.9.0 Jun 4, 2021
@andrewrk andrewrk modified the milestones: 0.9.0, 0.10.0 Nov 21, 2021
@andrewrk
Copy link
Member Author

andrewrk commented Feb 1, 2022

duplicate of #246

@andrewrk andrewrk closed this as completed Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Solving this issue will likely involve adding new logic or components to the codebase. frontend Tokenization, parsing, AstGen, Sema, and Liveness.
Projects
None yet
Development

No branches or pull requests

1 participant