walnuthq / cairovm.codes

Source code for cairovm.codes — a web app to compile Cairo programs into Sierra and CASM with step-through execution capabilities.
https://cairovm.codes
MIT License
29 stars 24 forks source link

chore: Highlight multiple Cairo code segments per Sierra statement #138

Closed barabanovro closed 2 months ago

barabanovro commented 2 months ago

We have updated the run API, and now it returns multiple Cairo code segment locations per Sierra statement. You can find cairo_locations here: sierra_to_cairo_debug_info.sierra_statements_to_cairo_info.[sierra_statement_index].cairo_locations.

Implement highlighting of multiple code segments per Sierra statement instead of just one. Single cairo_location is deprecated now.

melnikga commented 2 months ago

I can take this task. I believe that it can be solved by refining the already existing useeffect function to highlight code fragments. I can also make changes to the cairoVMApiContext file to get the current cairo_locations.

Since I made the functionality for highlighting the code, this revision should not take much time.

barabanovro commented 2 months ago

@melnikga, the issue has been assigned to you