mirror of
https://github.com/avinal/xeus-basic.git
synced 2026-01-10 23:28:36 +05:30
Add multiline program support
Signed-off-by: Avinal Kumar <avinal.xlvii@gmail.com> Co-authored-by: Sarita Singh <saritasingh.0425@gmail.com>
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
#ifndef XBASIC_INTERPRETER_HPP_
|
||||
#define XBASIC_INTERPRETER_HPP_
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include "basic/basic.hpp"
|
||||
#include "nlohmann/json.hpp"
|
||||
#include "xeus/xinterpreter.hpp"
|
||||
|
||||
|
||||
using xeus::xinterpreter;
|
||||
namespace nl = nlohmann;
|
||||
|
||||
@@ -13,7 +14,8 @@ namespace xbasic {
|
||||
|
||||
class xbasic_interpreter : public xinterpreter {
|
||||
private:
|
||||
basic code_runner;
|
||||
basic* code_runner = nullptr;
|
||||
|
||||
public:
|
||||
xbasic_interpreter() = default;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user