import * as React from "react"; import { useEffect, useRef } from "react"; import { makeStyles, createStyles, Theme } from "@material-ui/core/styles"; import Grid from "@material-ui/core/Grid"; import Typography from "@material-ui/core/Typography"; import Paper from "@material-ui/core/Paper"; import Button from "@material-ui/core/Button"; import { _Console } from "../../src"; import SyntaxHighlighter from "./SyntaxHighlighter"; import QuickBasic from "./quickBasic"; // スタイルを定義 const useStyles = makeStyles((theme: Theme) => createStyles({ root: { padding: theme.spacing(6) }, title: { borderBottom: `2px solid ${theme.palette.primary.main}` }, paper: { padding: 18 }, button: { margin: theme.spacing(1) } }) ); // props の型を定義 type Props = {}; // コンポーネントを定義 function Example2({}: Props) { // ここでクラス名を取得 const classes = useStyles({}); const code = `PRINT "Hello World"`; useEffect(() => { return () => {}; }, []); return ( 1. HELLO.BAS

PRINT

PRINT is QBasic's text output function. PRINT is a QBasic function that requires arguments. The argument in the Hello World program we just ran were the words "Hello World". So, PRINT is the function and "Hello World" is the argument we pass-to the function.

PRINT [Text to screen]

); } export default Example2;