mirror of
https://github.com/Noratrieb/brainfuck.git
synced 2026-01-14 13:35:00 +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 {
|
||||
return this._programCounter === this._code.length;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,9 +12,9 @@ const CodeDisplay = ({code, index}: CodeDisplayProps) => {
|
|||
|
||||
return (
|
||||
<div className="code-display-wrapper">
|
||||
<span>{firstCodePart}</span>
|
||||
<span style={{backgroundColor: "red"}}>{code[index] || " "}</span>
|
||||
<span>{secondCodePart}</span>
|
||||
<code>{firstCodePart}</code>
|
||||
<code style={{backgroundColor: "red"}}>{code[index] || " "}</code>
|
||||
<code>{secondCodePart}</code>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue