coderkalyan / coderkalyan/femtoc

ast, hir, llvm: crash debug information

Open
#56 0 comments 0 reactions 0 assignees View on GitHub
good first issue
Dominant language
Zig
Stars
2
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Currently, we have a lot of crashes. Most of these happen in HIR, where most of the logic happens (initial flattening of the AST, followed by a lot of semantic analysis). Ast crashes occasionally, as well as codegen. Debugging these is difficult because the backtrace that zig provides isn't enough to figure out which part of the input source code triggered the issue - so we end up commenting out code until we find the line that crashes. It would be great to have some debug reporting that indicates the current token/statement/instruction being parsed during a crash and where in the pipeline we are.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.