From 609559e0a76c5825cee300c46d970a1a7b33c92e Mon Sep 17 00:00:00 2001 From: chenxinquan Date: Mon, 7 Nov 2022 12:10:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9B=E5=BB=BA=E7=BC=96=E5=86=99InterIO.go?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/genmai/Interpreter/InterIO.go | 41 +++++++++++++++++++++++++++ src/genmai/Interpreter/Interpreter.go | 11 +++---- 2 files changed, 45 insertions(+), 7 deletions(-) create mode 100644 src/genmai/Interpreter/InterIO.go diff --git a/src/genmai/Interpreter/InterIO.go b/src/genmai/Interpreter/InterIO.go new file mode 100644 index 0000000..27efbd2 --- /dev/null +++ b/src/genmai/Interpreter/InterIO.go @@ -0,0 +1,41 @@ +//////////////////////////////////////////////////////////////// +// +// Filename: InterIO.go +// +// Version: 1.0 +// Created: 2022年11月07日 12时08分53秒 +// Revision: none +// Compiler: go +// +// Author: alpha +// Organization: alpha +// Contacts: chenxinquan@kylinos.com +// +//////////////////////////////////////////////////////////////// + +//////////////////////////////////////////////////////////////// +// Description: +//////////////////////////////////////////////////////////////// + +//////////////////////////////////////////////////////////////// +// Log: +//////////////////////////////////////////////////////////////// + +//////////////////////////////////////////////////////////////// +// Todo: +// +//////////////////////////////////////////////////////////////// + +package Interpreter + +import ( + "bufio" +) + +//////////////////////////////////////////////////////////////// +// InterIO struct +type InterIO struct { + reader *bufio.Reader + writer *bufio.Writer +} + diff --git a/src/genmai/Interpreter/Interpreter.go b/src/genmai/Interpreter/Interpreter.go index 597ba02..fb4f860 100644 --- a/src/genmai/Interpreter/Interpreter.go +++ b/src/genmai/Interpreter/Interpreter.go @@ -29,14 +29,11 @@ package Interpreter import ( - "bufio" ) -type InterIO struct { - reader *bufio.Reader - writer *bufio.Writer -} - +//////////////////////////////////////////////////////////////// +// Interpreter interface type Interpreter interface { -} + process(path string) (InterIO, error) +}