Skip to content

Commit 7f3a3b5

Browse files
committed
command interpreter
1 parent 2fc673c commit 7f3a3b5

File tree

5 files changed

+438
-0
lines changed

5 files changed

+438
-0
lines changed

Interpreter/Interpreter.pro

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
TEMPLATE = app
2+
CONFIG += console
3+
CONFIG -= app_bundle
4+
CONFIG -= qt
5+
6+
SOURCES += main.cpp \
7+
../interpreter.cpp \
8+
interpreter.cpp
9+
10+
HEADERS += \
11+
../interpreter.h \
12+
interpreter.h
13+

Interpreter/Interpreter.pro.user

Lines changed: 239 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,239 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE QtCreatorProject>
3+
<!-- Written by Qt Creator 2.6.2, 2013-11-16T20:16:54. -->
4+
<qtcreator>
5+
<data>
6+
<variable>ProjectExplorer.Project.ActiveTarget</variable>
7+
<value type="int">0</value>
8+
</data>
9+
<data>
10+
<variable>ProjectExplorer.Project.EditorSettings</variable>
11+
<valuemap type="QVariantMap">
12+
<value type="bool" key="EditorConfiguration.AutoIndent">true</value>
13+
<value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value>
14+
<value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value>
15+
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0">
16+
<value type="QString" key="language">Cpp</value>
17+
<valuemap type="QVariantMap" key="value">
18+
<value type="QString" key="CurrentPreferences">CppGlobal</value>
19+
</valuemap>
20+
</valuemap>
21+
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1">
22+
<value type="QString" key="language">QmlJS</value>
23+
<valuemap type="QVariantMap" key="value">
24+
<value type="QString" key="CurrentPreferences">QmlJSGlobal</value>
25+
</valuemap>
26+
</valuemap>
27+
<value type="int" key="EditorConfiguration.CodeStyle.Count">2</value>
28+
<value type="QByteArray" key="EditorConfiguration.Codec">UTF-8</value>
29+
<value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value>
30+
<value type="int" key="EditorConfiguration.IndentSize">4</value>
31+
<value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value>
32+
<value type="bool" key="EditorConfiguration.MouseNavigation">true</value>
33+
<value type="int" key="EditorConfiguration.PaddingMode">1</value>
34+
<value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value>
35+
<value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value>
36+
<value type="bool" key="EditorConfiguration.SpacesForTabs">true</value>
37+
<value type="int" key="EditorConfiguration.TabKeyBehavior">0</value>
38+
<value type="int" key="EditorConfiguration.TabSize">8</value>
39+
<value type="bool" key="EditorConfiguration.UseGlobal">true</value>
40+
<value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value>
41+
<value type="bool" key="EditorConfiguration.addFinalNewLine">true</value>
42+
<value type="bool" key="EditorConfiguration.cleanIndentation">true</value>
43+
<value type="bool" key="EditorConfiguration.cleanWhitespace">true</value>
44+
<value type="bool" key="EditorConfiguration.inEntireDocument">false</value>
45+
</valuemap>
46+
</data>
47+
<data>
48+
<variable>ProjectExplorer.Project.PluginSettings</variable>
49+
<valuemap type="QVariantMap"/>
50+
</data>
51+
<data>
52+
<variable>ProjectExplorer.Project.Target.0</variable>
53+
<valuemap type="QVariantMap">
54+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 5.0.1 MinGW 32bit</value>
55+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 5.0.1 MinGW 32bit</value>
56+
<value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">qt.501.win32_mingw47.essentials_kit</value>
57+
<value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
58+
<value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
59+
<value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
60+
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
61+
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
62+
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
63+
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
64+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
65+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
66+
<value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
67+
<value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value>
68+
<value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">true</value>
69+
<value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
70+
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
71+
</valuemap>
72+
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
73+
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
74+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
75+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
76+
<value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
77+
<value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value>
78+
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value>
79+
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
80+
</valuemap>
81+
<value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
82+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">构建</value>
83+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
84+
<value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
85+
</valuemap>
86+
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
87+
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
88+
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
89+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
90+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
91+
<value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
92+
<value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value>
93+
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
94+
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
95+
</valuemap>
96+
<value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
97+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">清理</value>
98+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
99+
<value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
100+
</valuemap>
101+
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
102+
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
103+
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
104+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Debug</value>
105+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
106+
<value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
107+
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value>
108+
<value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">C:/Documents and Settings/Administrator/桌面/桌面清理/EMC/新建文件夹/Interpreter-build-Desktop_Qt_5_0_1_MinGW_32bit-Debug</value>
109+
<value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value>
110+
</valuemap>
111+
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1">
112+
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
113+
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
114+
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
115+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
116+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
117+
<value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
118+
<value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value>
119+
<value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">true</value>
120+
<value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
121+
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
122+
</valuemap>
123+
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
124+
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
125+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
126+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
127+
<value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
128+
<value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value>
129+
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value>
130+
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
131+
</valuemap>
132+
<value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
133+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">构建</value>
134+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
135+
<value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
136+
</valuemap>
137+
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
138+
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
139+
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
140+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
141+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
142+
<value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
143+
<value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value>
144+
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
145+
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
146+
</valuemap>
147+
<value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
148+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">清理</value>
149+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
150+
<value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
151+
</valuemap>
152+
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
153+
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
154+
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
155+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Release</value>
156+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
157+
<value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
158+
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
159+
<value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">C:/Documents and Settings/Administrator/桌面/桌面清理/EMC/新建文件夹/Interpreter-build-Desktop_Qt_5_0_1_MinGW_32bit-Release</value>
160+
<value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value>
161+
</valuemap>
162+
<value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">2</value>
163+
<valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0">
164+
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
165+
<value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value>
166+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">部署</value>
167+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
168+
<value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
169+
</valuemap>
170+
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
171+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">在本地部署</value>
172+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
173+
<value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
174+
</valuemap>
175+
<value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
176+
<valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
177+
<value type="bool" key="Analyzer.Project.UseGlobal">true</value>
178+
<valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/>
179+
<value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
180+
<value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
181+
<value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
182+
<value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
183+
<value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
184+
<value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
185+
<value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
186+
<value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value>
187+
<value type="int" key="Analyzer.Valgrind.NumCallers">25</value>
188+
<valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
189+
<value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value>
190+
<value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
191+
<valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds">
192+
<value type="int">0</value>
193+
<value type="int">1</value>
194+
<value type="int">2</value>
195+
<value type="int">3</value>
196+
<value type="int">4</value>
197+
<value type="int">5</value>
198+
<value type="int">6</value>
199+
<value type="int">7</value>
200+
<value type="int">8</value>
201+
<value type="int">9</value>
202+
<value type="int">10</value>
203+
<value type="int">11</value>
204+
<value type="int">12</value>
205+
<value type="int">13</value>
206+
<value type="int">14</value>
207+
</valuelist>
208+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Interpreter</value>
209+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
210+
<value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:E:/Interpreter/Interpreter.pro</value>
211+
<value type="int" key="Qt4ProjectManager.Qt4RunConfiguration.BaseEnvironmentBase">2</value>
212+
<value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value>
213+
<value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">Interpreter.pro</value>
214+
<value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix">false</value>
215+
<value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseTerminal">true</value>
216+
<valuelist type="QVariantList" key="Qt4ProjectManager.Qt4RunConfiguration.UserEnvironmentChanges"/>
217+
<value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"></value>
218+
<value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value>
219+
<value type="bool" key="RunConfiguration.UseCppDebugger">true</value>
220+
<value type="bool" key="RunConfiguration.UseMultiProcess">false</value>
221+
<value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
222+
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
223+
</valuemap>
224+
<value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
225+
</valuemap>
226+
</data>
227+
<data>
228+
<variable>ProjectExplorer.Project.TargetCount</variable>
229+
<value type="int">1</value>
230+
</data>
231+
<data>
232+
<variable>ProjectExplorer.Project.Updater.EnvironmentId</variable>
233+
<value type="QString">{b454b0c5-253d-4b6f-bea0-fbded5eacdbc}</value>
234+
</data>
235+
<data>
236+
<variable>ProjectExplorer.Project.Updater.FileVersion</variable>
237+
<value type="int">12</value>
238+
</data>
239+
</qtcreator>

0 commit comments

Comments
 (0)