@@ -22,20 +22,16 @@ echo E. Build NHibernate (Debug)
2222echo F. Build NHibernate (Release)
2323echo G. Build Release Package (Also runs tests and creates documentation)
2424echo .
25- echo --- GRAMMAR ---
26- echo H. Grammar operations (related to Hql.g and HqlSqlWalker.g)
27- echo .
2825echo --- TeamCity (CI) build options
2926echo I. TeamCity build menu
3027echo .
3128echo --- Exit ---
3229echo X. Make the beautiful build menu go away.
3330echo .
3431
35- %BUILDTOOL% prompt ABCDEFGHIX
36- if errorlevel 9 goto end
37- if errorlevel 8 goto teamcity-menu
38- if errorlevel 7 goto grammar-menu
32+ %BUILDTOOL% prompt ABCDEFGIX
33+ if errorlevel 8 goto end
34+ if errorlevel 7 goto teamcity-menu
3935if errorlevel 6 goto build-release-package
4036if errorlevel 5 goto build-release
4137if errorlevel 4 goto build-debug
@@ -194,77 +190,6 @@ echo including NuGet packages and tools to push them.
194190echo .
195191goto main-menu
196192
197- :grammar-menu
198- echo .
199- echo --- GRAMMAR ---
200- echo A. Regenerate all grammars.
201- echo Hql.g to HqlLexer.cs
202- echo Hql.g to HqlParser.cs
203- echo HqlSqlWalker.g to HqlSqlWalker.cs
204- echo SqlGenerator.g to SqlGenerator.cs
205- echo B. Regenerate all grammars, with Hql.g in debug mode.
206- echo C. Regenerate all grammars, with HqlSqlWalker.g in debug mode.
207- echo D. Regenerate all grammars, with SqlGenerator.g in debug mode.
208- echo E. Quick instructions on using debug mode.
209- echo .
210- echo X. Exit to main menu.
211- echo .
212-
213- %BUILDTOOL% prompt ABCDEX
214- if errorlevel 5 goto main-menu
215- if errorlevel 4 goto antlr-debug
216- if errorlevel 3 goto antlr-sqlgenerator-debug
217- if errorlevel 2 goto antlr-hqlsqlwalker-debug
218- if errorlevel 1 goto antlr-hql-debug
219- if errorlevel 0 goto antlr-all
220-
221- :antlr-all
222- echo *** Regenerating from Hql.g
223- call src\NHibernate\Hql\Ast\ANTLR\AntlrHql.bat
224- echo *** Regenerating from HqlSqlWalker.g
225- call src\NHibernate\Hql\Ast\ANTLR\AntlrHqlSqlWalker.bat
226- echo *** Regenerating from SqlGenerator.g
227- call src\NHibernate\Hql\Ast\ANTLR\AntlrSqlGenerator.bat
228- goto main-menu
229-
230- :antlr-hql-debug
231- echo *** Regenerating from Hql.g (Debug Enabled)
232- call src\NHibernate\Hql\Ast\ANTLR\AntlrHqlDebug.bat
233- echo *** Regenerating from HqlSqlWalker.g
234- call src\NHibernate\Hql\Ast\ANTLR\AntlrHqlSqlWalker.bat
235- echo *** Regenerating from SqlGenerator.g
236- call src\NHibernate\Hql\Ast\ANTLR\AntlrSqlGenerator.bat
237- goto main-menu
238-
239- :antlr-hqlsqlwalker-debug
240- echo *** Regenerating from Hql.g
241- call src\NHibernate\Hql\Ast\ANTLR\AntlrHql.bat
242- echo *** Regenerating from HqlSqlWalker.g (Debug Enabled)
243- call src\NHibernate\Hql\Ast\ANTLR\AntlrHqlSqlWalkerDebug.bat
244- echo *** Regenerating from SqlGenerator.g
245- call src\NHibernate\Hql\Ast\ANTLR\AntlrSqlGenerator.bat
246- goto main-menu
247-
248- :antlr-sqlgenerator-debug
249- echo *** Regenerating from Hql.g
250- call src\NHibernate\Hql\Ast\ANTLR\AntlrHql.bat
251- echo *** Regenerating from HqlSqlWalker.g
252- call src\NHibernate\Hql\Ast\ANTLR\AntlrHqlSqlWalker.bat
253- echo *** Regenerating from SqlGenerator.g (Debug Enabled)
254- call src\NHibernate\Hql\Ast\ANTLR\AntlrSqlGeneratorDebug.bat
255- goto main-menu
256-
257- :antlr-debug
258- echo To use the debug grammar:
259- echo 1. Create a unit test that runs the hql parser on the input you're interested in.
260- echo The one you want to debug must be the first grammar parsed.
261- echo 2. Run the unit test. It will appear to stall.
262- echo 3. Download and run AntlrWorks (java -jar AntlrWorks.jar).
263- echo 4. Open the grammar you intend to debug in AntlrWorks.
264- echo 5. Choose " Debug Remote" and accept the default port.
265- echo 6. You should now be connected and able to step through your grammar.
266- goto main-menu
267-
268193:teamcity-menu
269194echo .
270195echo --- TeamCity (CI) build options
0 commit comments