Skip to content

Commit 5c44833

Browse files
authored
Merge pull request #551 from hazzik/NH-3945
NH-3945 - Update Antlr3 to v 3.5.1
2 parents dc32ec2 + 1918d1c commit 5c44833

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+21
-47577
lines changed

ShowBuildMenu.bat

Lines changed: 3 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,16 @@ echo E. Build NHibernate (Debug)
2222
echo F. Build NHibernate (Release)
2323
echo G. Build Release Package (Also runs tests and creates documentation)
2424
echo.
25-
echo --- GRAMMAR ---
26-
echo H. Grammar operations (related to Hql.g and HqlSqlWalker.g)
27-
echo.
2825
echo --- TeamCity (CI) build options
2926
echo I. TeamCity build menu
3027
echo.
3128
echo --- Exit ---
3229
echo X. Make the beautiful build menu go away.
3330
echo.
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
3935
if errorlevel 6 goto build-release-package
4036
if errorlevel 5 goto build-release
4137
if errorlevel 4 goto build-debug
@@ -194,77 +190,6 @@ echo including NuGet packages and tools to push them.
194190
echo.
195191
goto 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
269194
echo.
270195
echo --- TeamCity (CI) build options

Tools/Antlr/Antlr3.Runtime.Debug.dll

-45 KB
Binary file not shown.

Tools/Antlr/Antlr3.Runtime.dll

-101 KB
Binary file not shown.

Tools/Antlr/Antlr3.exe

-706 KB
Binary file not shown.

Tools/Antlr/Antlr3.exe.config

Lines changed: 0 additions & 7 deletions
This file was deleted.

Tools/Antlr/Antlr3.targets

Lines changed: 0 additions & 169 deletions
This file was deleted.
-37.5 KB
Binary file not shown.

Tools/Antlr/Antlr4.StringTemplate.dll

-191 KB
Binary file not shown.

Tools/Antlr/AntlrBuildTask.dll

-17 KB
Binary file not shown.

0 commit comments

Comments
 (0)