Coding Cactus
Coding Cactus
You would need to replace the [usage of `stmt_block()`](https://github.com/PseudocodeEditor/editor/blob/0983d4809f7f88fb29e7e1a90de10d12cafd398a/PS2/ps2/parser/parser.py#L324) with your own function which looks ahead to see if there is either a new case branch starting (by looking for...
You shouldn't need to edit that function other than changing the line assigning to `stmt_list`. You should just need to change the use of `self.stmt_block()` to your own function called...
You need to add a bit which looks ahead for the start of the next case branch.
Where you are checking for `TT.ENDCASE` you also need to check for, but not consume, the start of the next case branch. The start of the next case branch is...
I don't see how that would work for case branches containing more than one statement. e.g. ``` DECLARE a : INTEGER a
I don't think input directly into an array is mentioned in the pseudocode guide.
See https://github.com/PseudocodeEditor/editor/blob/main/CONTRIBUTING.md
Will be useful → https://github.com/codemirror/lint
An example of linting cm6 https://codemirror.net/6/screenreaderdemo/ ```js const {EditorState, EditorView, basicSetup} = CM["@codemirror/basic-setup"]; const {html} = CM["@codemirror/lang-html"]; const {linter} = CM["@codemirror/lint"]; const replace = ["cardamom", "hummingbird", "granfalloon", "galleass", "capybara", "lemur",...
🛑 (On hold until the interpreter is implemented)