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

A bunch of minor bugs/feature requests #4

Open
ayaweb03 opened this issue Nov 10, 2024 · 2 comments
Open

A bunch of minor bugs/feature requests #4

ayaweb03 opened this issue Nov 10, 2024 · 2 comments

Comments

@ayaweb03
Copy link

  1. When a PL1/PL2 compilation error occurs, a line number is displayed. However, the lines of code are not numbered (furthermore, the line number in the error may change if the compilation is repeated).

  2. "break;" doesn't work for procedures and functions. Error:
    Encountered an unknown assembly instruction:
    Instruction: BREAK
    P.S. I didn't find the functionality of "exit;" function.

  3. Assembler (PL0) commands are not permitted in PL1 and PL2. For example, I would like to use the "HALT" command (because break; didn't worked out, see 2.)

  4. When a program is stopped by HALT, error, or a collision, the number of steps executed is not displayed. It would be nice to see it to assess a performance of an algorithm.

@ayaweb03
Copy link
Author

  1. Tab button doesn't work in the code editor

@mwernerds
Copy link
Collaborator

Thanks for all of these, they are now on the roadmap. We need to

  1. have line numbers in the web UI. Unfortunately, this is JavaScript hacking

  2. make sure than break and continue outside a loop context are invalid. This is a semantic error we need to carefully put in the grammar as a break, for example, in a function should not break. Hacky solution: if BREAK or CONTINUE are remaining in assembly, they were not inside a loop

  3. I think they are

  4. should be easy

  5. this is again javascript hacking, we will do it for the next version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants