view interps/sadol/Console.hpp @ 12014:4f03bd239f7c draft

<kspalaiologos> ` cat > wisdom/labels.pl <<<"Preprocessor for asm2bf to support labels. Use % to refer to a label, use @ to declare one."
author HackEso <hackeso@esolangs.org>
date Thu, 14 Nov 2019 16:16:14 +0000
parents 859f9b4339e6
children
line wrap: on
line source

/*
 * BDSM2
 * Author: Adam Sawicki
 * http://www.regedit.risp.pl
 * mailto:regedit@risp.pl
 */
#ifndef CONSOLE_H_
#define CONSOLE_H_

class Console
{
private:
	char m_Buffer[65536];

public:
	// one raw character from input
	char InChar();
	// one line from input
	void InString(string *s);
	// one line from input
	int InInteger();
	// one line from input
	double InDouble();

	void OutInteger(int x);
	void OutDouble(double x);
	void OutString(const string &s);
};

extern Console g_Console;

#endif