mirror of
https://github.com/Noratrieb/brainfuck.git
synced 2026-01-16 14:25:03 +01:00
small changes
This commit is contained in:
parent
0a8ecd3a92
commit
206e0293ec
2 changed files with 3 additions and 7 deletions
|
|
@ -114,10 +114,6 @@ export default class Interpreter {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public prev() {
|
|
||||||
// - will add some day
|
|
||||||
}
|
|
||||||
|
|
||||||
get reachedEnd(): boolean {
|
get reachedEnd(): boolean {
|
||||||
return this._programCounter === this._code.length;
|
return this._programCounter === this._code.length;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,9 +12,9 @@ const CodeDisplay = ({code, index}: CodeDisplayProps) => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="code-display-wrapper">
|
<div className="code-display-wrapper">
|
||||||
<span>{firstCodePart}</span>
|
<code>{firstCodePart}</code>
|
||||||
<span style={{backgroundColor: "red"}}>{code[index] || " "}</span>
|
<code style={{backgroundColor: "red"}}>{code[index] || " "}</code>
|
||||||
<span>{secondCodePart}</span>
|
<code>{secondCodePart}</code>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue