Skip to content

Commit

Permalink
feat: add for
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchezcarlosjr committed Nov 19, 2023
1 parent d2290ba commit ab2fbc4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 34 deletions.
2 changes: 2 additions & 0 deletions src/app/notebook/cellTypes/languages/Cpp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ function autocompleteCpp(context: CompletionContext): CompletionResult | null {
return 0;
}`, detail: "function"},
{label: "int", type: "variable", apply: "int x=0;",detail: "create a int variable"},
{label: "for", type: "loop", apply: `for(int i=0; i<n;i++) {
}`,detail: "create a for i=0;i<n;i++"},
{label: "hello world", type: "text", apply: `#include <stdio.h>
int main() {
printf("Hello World");
Expand Down
2 changes: 1 addition & 1 deletion src/app/notebook/cellTypes/languages/cpp/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class App {
if (writeStack) {
msg = msg + `\n${exn.stack}`
}
msg += '\x1b[0m\n'
msg += ''
this.memfs.hostWrite(msg)

// Propagate error.
Expand Down
33 changes: 0 additions & 33 deletions src/app/notebook/cellTypes/languages/cpp/worker.ts

This file was deleted.

0 comments on commit ab2fbc4

Please sign in to comment.