File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11using CommandLine ;
22using ExprSharp . Runtime ;
3+ using iExpr ;
34using System ;
45using System . IO ;
56
@@ -135,7 +136,8 @@ static object run(string code)
135136 {
136137 try
137138 {
138- return runtime . Execute ( code ) ;
139+ var x = runtime . Execute ( code ) ;
140+ return x ;
139141 }
140142 catch ( Exception ex )
141143 {
@@ -154,7 +156,8 @@ static void Work_Loaded(string cmd)
154156 if ( File . Exists ( path ) )
155157 {
156158 var v = run ( File . ReadAllText ( path ) ) ;
157- if ( v != null ) Console . WriteLine ( v . ToString ( ) ) ;
159+ var ou = v ? . ToString ( ) ;
160+ if ( ! String . IsNullOrEmpty ( ou ) ) Console . WriteLine ( ou ) ;
158161 }
159162 else
160163 {
@@ -188,7 +191,8 @@ static void Work_Loaded(string cmd)
188191 WithNotParsed ( errs =>
189192 {
190193 var v = run ( cmd ) ;
191- if ( v != null ) Console . WriteLine ( v . ToString ( ) ) ;
194+ var ou = v ? . ToString ( ) ;
195+ if ( ! String . IsNullOrEmpty ( ou ) ) Console . WriteLine ( ou ) ;
192196 } ) ;
193197 }
194198 }
Original file line number Diff line number Diff line change 11{
22 "profiles" : {
33 "ExprSharp.Repl" : {
4- "commandName" : " Project"
4+ "commandName" : " Project" ,
5+ "workingDirectory" : " G:\\ 设计\\ design\\ ExprSharp\\ test"
56 }
67 }
78}
Original file line number Diff line number Diff line change 33</div >
44
55![ ] ( https://img.shields.io/badge/framework-.netcore2.0-blue.svg )
6- ![ ] ( https://img.shields.io/badge/iexpr.core-v0.5.2-brightgreen.svg )
7- ![ ] ( http://progressed.io/bar/40?title=done )
8-
9- [ x ] : 
10- [ x ] : 
11- [ x ] : [](https://www.nuget.org/packages/iExpr.Core/0.5.2.2)
6+ ![ ] ( https://img.shields.io/badge/iexpr.core-v0.5.6-brightgreen.svg )
7+ ![ ] ( http://progressed.io/bar/50?title=done )
128
139+ Author: Stardust D.L.
1410+ Version: 0.1
1511
16- The REPL environment for ExprSharp.
12+ The REPL environment for ExprSharp * (need ExprSharp.Core)* .
13+
14+ > ExprSharp: A tiny code language based on [ iExpr.Core] ( https://github.com/iExpr/iExpr.Core ) .
15+
16+ > For more information about ExprSharp, please see [ ** Wiki** ] ( https://github.com/ExprSharp/ExprSharp.Core/wiki )
1717
1818# Commands
1919| Items| Description|
You can’t perform that action at this time.
0 commit comments