[PIC] BASICinterpreter
페이지 정보
작성일 19-09-25 09:57
본문
Download : BASICinterpreter.hwp
레포트/기타
BASICinterpreter
설명
BASICinterpreter
순서






A tiny BASIC interpreter
(c++로 변환)
컴퓨터과학과
2011011011
고아름
소스코드
#include `iostream`
#include `fstream`
#include `setjmp.h`
#include `ctype.h`
#include `stdlib.h`
#include `math.h`
#include `string`
#define NUM_LAB 100
#define LAB_LEN 10
#define FOR_NEST 25
#define SUB_NEST 25
#define PROG_SIZE 10000
#define DELIMITER 1
#define VARIABLE 2
#define NUMBER 3
#define COMMAND 4
#define STRING 5
#define QUOTE 6
#define PRIN...
A tiny BASIC interpreter
(c++로 변환)
컴퓨터과학과
2xxxxxxxxx
고아름
소스코드
#include `iostream`
#include `fstream`
#include `setjmp.h`
#include `ctype.h`
#include `stdlib.h`
#include `math.h`
#include `string`
#define NUM_LAB 100
#define LAB_LEN 10
#define FOR_NEST 25
#define SUB_NEST 25
#define PROG_SIZE 10000
#define DELIMITER 1
#define VARIABLE 2
#define NUMBER 3
#define COMMAND 4
#define STRING 5
#define QUOTE 6
#define PRINT 1
#define INPUT 2
#define IF 3
#define THEN 4
#define FOR 5
#define NEXT 6
#define TO 7
#define GOTO 8
#define EOL 9
#define FINISHED 10
#define GOSUB 11
#define RETURN 12
#define END 13
using namespace std;
struct commands { / keyword lookup table /
char command[20];
char tok;
} table = { / Commands must be entered lowercase /
`print`,PRINT, / in this table /
`input`,INPUT,
`if`,IF,
`then`…(skip)
BASICinterpreter , BASICinterpreter기타레포트 , BASICinterpreter
Download : BASICinterpreter.hwp( 51 )
BASICinterpreter,기타,레포트
다.