diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 00000000000..a087785bcf2
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,3 @@
+root = true
+[*]
+indent_style = tab
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
index 1d2ebb26f23..d65d9d2e06b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -23,3 +23,10 @@ bin/
/src/AddIns/Misc/PackageManagement/Packages/AvalonEdit/lib
/packages/
/src/Tools/ResGet/*.log
+
+
+*.ide/
+*.sdsettings
+*.DotSettings.user
+*.suo
+.DS_Store
\ No newline at end of file
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 00000000000..418de9e68eb
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,12 @@
+[submodule "src/Libraries/AvalonEdit"]
+ path = src/Libraries/AvalonEdit
+ url = https://github.com/icsharpcode/AvalonEdit.git
+[submodule "src/Libraries/NRefactory"]
+ path = src/Libraries/NRefactory
+ url = https://github.com/icsharpcode/NRefactory.git
+[submodule "src/Libraries/cecil"]
+ path = src/Libraries/cecil
+ url = https://github.com/jbevain/cecil.git
+[submodule "src/Libraries/WpfDesigner"]
+ path = src/Libraries/WpfDesigner
+ url = https://github.com/icsharpcode/WpfDesigner.git
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644
index 00000000000..e2a03295fba
--- /dev/null
+++ b/CONTRIBUTING.md
@@ -0,0 +1,11 @@
+# Contributing to SharpDevelop
+
+Thanks for helping to improve SharpDevelop.
+
+In order for your changes to be accepted you can either sign the [Joint Copyright Assignment](http://www.icsharpcode.net/TechNotes/JointCopyrightAssignment.pdf) or add the following statement to your pull request:
+
+_I certify that I own, and have sufficient rights to contribute, all source code and related material intended to be compiled or integrated with the source code for the #develop open source product (the "Contribution"). My Contribution is licensed under the MIT License._
+
+Unless we have a Joint Copyright Agreement on file or this statement is in your pull request, we cannot accept it.
+
+More information is available on [joining the team](https://github.com/icsharpcode/SharpDevelop/wiki/Joining-the-Team).
diff --git a/README.md b/README.md
index 82ab3df9c87..954a6f3fb09 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# #develop (short for SharpDevelop)
-##Overview
+## Overview
#develop is a free Integrated Development Environment
(IDE) for C#, VB.NET, Boo, IronPython, IronRuby and F# projects on Microsoft's
@@ -9,22 +9,19 @@ you would expect in an IDE plus a few more.
The #develop project started on September 11th, 2000. The project was initiated
by Mike Krüger. In the course of the project, several contributors joined in.
-If you want to contribute see ["Joining the team"](https://github.com/icsharpcode/SharpDevelop/wiki/Joining-the-Team).
-1. [Official Website](http://www.icsharpcode.net/OpenSource/SD/Default.aspx)
-2. [Forums](http://community.sharpdevelop.net/forums/)
-3. [Build Artefacts (Nightly Builds)](http://build.sharpdevelop.net/BuildArtefacts)
+Looking for the tech notes (Fine Art of Commenting, Coding Style Guide, and more)? These can be found as rtf files in [doc/technotes](https://github.com/icsharpcode/SharpDevelop/tree/master/doc/technotes)
-##How To Compile
+## How To Compile
#Develop can be compiled using the supplied .bat files, or in #Develop itself.
-##System Requirements (running #Develop)
+## System Requirements (running #Develop)
- Windows Vista or higher.
- [.NET 4.5](http://www.microsoft.com/en-au/download/details.aspx?id=30653)
- [Visual C++ 2008 SP1 Runtime](http://www.microsoft.com/downloads/details.aspx?familyid=A5C84275-3B97-4AB7-A40D-3802B2AF5FC2&displaylang=en)
-##Extended Requirements (building #Develop)
+## Extended Requirements (building #Develop)
- [Microsoft Build Tools 2013](http://www.microsoft.com/en-us/download/details.aspx?id=40760)
- [.NET 3.5 SP1](http://www.microsoft.com/en-au/download/details.aspx?id=22)
@@ -34,7 +31,7 @@ If you want to contribute see ["Joining the team"](https://github.com/icsharpcod
- [Windows PowerShell](http://www.microsoft.com/en-us/download/details.aspx?id=34595)
- If you have cloned the SD git repository: git must be available on your PATH
-##Libraries and Integrated tools:
+## Libraries and Integrated tools:
* [Avalon Dock](http://avalondock.codeplex.com/) : New BSD License (BSD) (thanks to **Adolfo Marinucci**)
* [Graph#](https://graphsharp.codeplex.com/)
@@ -48,7 +45,7 @@ If you want to contribute see ["Joining the team"](https://github.com/icsharpcod
* [SQLite](https://sqlite.org/)
* [WPFToolkit](https://wpf.codeplex.com/)
-##Integrated Tools (packaged with #Develop):
+## Integrated Tools (packaged with #Develop):
* [IronPython](http://ironpython.net/)
* [IronRuby](https://ironruby.codeplex.com/)
@@ -57,7 +54,7 @@ If you want to contribute see ["Joining the team"](https://github.com/icsharpcod
* [OpenCover](https://github.com/OpenCover/opencover)
* [WiX](https://wix.codeplex.com/)
-##Reusable Libraries (Part of #Develop):
+## Reusable Libraries (Part of #Develop):
* [AvalonEdit](http://avalonedit.net/)
* [Debugger.Core](https://github.com/icsharpcode/SharpDevelop/tree/master/src/AddIns/Debugger/Debugger.Core)
@@ -69,7 +66,7 @@ If you want to contribute see ["Joining the team"](https://github.com/icsharpcod
## #Develop Contributors
-###Developers
+### Developers
* [Mike Krüger](https://github.com/mkrueger) (Project Founder)
* [Daniel Grunwald](https://github.com/dgrunwald) (Technical Lead)
@@ -79,12 +76,12 @@ If you want to contribute see ["Joining the team"](https://github.com/icsharpcod
* [Siegfried Pammer](https://github.com/siegfriedpammer)
* [Peter Forstmeier]( https://github.com/PeterForstmeier)(#Develop Reports)
-###Non-Developers
+### Non-Developers
* Christoph Wille (PM)
* Bernhard Spuida (Kalfaktor)
-###Past Developers (Non-Exhaustive List)
+### Past Developers (Non-Exhaustive List)
* [Mike Krüger](https://github.com/mkrueger) (Project Founder)
* Alexandre Semenov
@@ -117,4 +114,4 @@ If you want to contribute see ["Joining the team"](https://github.com/icsharpcod
* Tomasz Tretkowski
* Troy Simpson
-######Copyright 2014 AlphaSierraPapa for the SharpDevelop team. SharpDevelop is distributed under the MIT license.
+###### Copyright 2014 AlphaSierraPapa for the SharpDevelop team. SharpDevelop is distributed under the MIT license.
diff --git a/SharpDevelop.Tests.sln b/SharpDevelop.Tests.sln
index 5f0aa86876a..97f1716a68d 100644
--- a/SharpDevelop.Tests.sln
+++ b/SharpDevelop.Tests.sln
@@ -1,7 +1,7 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
-# SharpDevelop 5.0
+# SharpDevelop 5.1
VisualStudioVersion = 12.0.20827.3
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Main", "Main", "{256F5C28-532C-44C0-8AB8-D8EC5E492E01}"
@@ -28,6 +28,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharpDevelop", "src\Main\Sh
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.SharpDevelop.BuildWorker120", "src\Main\ICSharpCode.SharpDevelop.BuildWorker120\ICSharpCode.SharpDevelop.BuildWorker120.csproj", "{6F273DA5-E10C-45A6-9071-7313ECD98C90}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.SharpDevelop.BuildWorker140", "src\Main\ICSharpCode.SharpDevelop.BuildWorker140\ICSharpCode.SharpDevelop.BuildWorker140.csproj", "{7BA66A6B-1ED8-4B4C-970C-8928E891418B}"
+EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Libraries", "Libraries", "{2A232EF1-EB95-41C6-B63A-C106E0C95D3C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mono.Cecil", "src\Libraries\cecil\Mono.Cecil.csproj", "{D68133BD-1E63-496E-9EDE-4FBDBF77B486}"
@@ -94,6 +96,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XamlBinding.Tests", "src\Ad
EndProject
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "VBBinding", "src\AddIns\BackendBindings\VBBinding\Project\VBBinding.vbproj", "{6D209CBB-D8C1-478A-BC30-D3FC87B7858F}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TypeScriptBinding", "src\AddIns\BackendBindings\TypeScript\Project\TypeScriptBinding.csproj", "{94BBCA55-A20E-4782-93B0-3566D185F7C1}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TypeScriptBinding.Tests", "src\AddIns\BackendBindings\TypeScript\Test\TypeScriptBinding.Tests.csproj", "{6F22CECC-2ABA-4D5D-A3F8-1C4F4A46C915}"
+EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Misc", "Misc", "{F3662720-9EA2-4591-BBC6-97361DCE50A9}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HelpViewer", "src\AddIns\Misc\HelpViewer\HelpViewer.csproj", "{80F76D10-0B44-4D55-B4BD-DAEB5464090C}"
@@ -178,15 +184,15 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.Data.SQLServer"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "WpfDesign", "WpfDesign", "{83BAB756-1010-4A2F-9B9D-7F9EBCB288F5}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WpfDesign", "src\AddIns\DisplayBindings\WpfDesign\WpfDesign\Project\WpfDesign.csproj", "{66A378A1-E9F4-4AD5-8946-D0EC06C2902F}"
-EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WpfDesign.AddIn", "src\AddIns\DisplayBindings\WpfDesign\WpfDesign.AddIn\WpfDesign.AddIn.csproj", "{9A9D6FD4-6A2E-455D-ACC3-DDA775FE9865}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WpfDesign.Tests", "src\AddIns\DisplayBindings\WpfDesign\WpfDesign.Designer\Tests\WpfDesign.Tests.csproj", "{943DBBB3-E84E-4CF4-917C-C05AFA8743C1}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WpfDesign", "src\Libraries\WpfDesigner\WpfDesign\Project\WpfDesign.csproj", "{66A378A1-E9F4-4AD5-8946-D0EC06C2902F}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WpfDesign.Designer", "src\AddIns\DisplayBindings\WpfDesign\WpfDesign.Designer\Project\WpfDesign.Designer.csproj", "{78CC29AC-CC79-4355-B1F2-97936DF198AC}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WpfDesign.Designer", "src\Libraries\WpfDesigner\WpfDesign.Designer\Project\WpfDesign.Designer.csproj", "{78CC29AC-CC79-4355-B1F2-97936DF198AC}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WpfDesign.XamlDom", "src\AddIns\DisplayBindings\WpfDesign\WpfDesign.XamlDom\Project\WpfDesign.XamlDom.csproj", "{88DA149F-21B2-48AB-82C4-28FB6BDFD783}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WpfDesign.XamlDom", "src\Libraries\WpfDesigner\WpfDesign.XamlDom\Project\WpfDesign.XamlDom.csproj", "{88DA149F-21B2-48AB-82C4-28FB6BDFD783}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WpfDesign.Tests", "src\Libraries\WpfDesigner\WpfDesign.Designer\Tests\WpfDesign.Tests.csproj", "{943DBBB3-E84E-4CF4-917C-C05AFA8743C1}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SettingsEditor", "src\AddIns\DisplayBindings\SettingsEditor\Project\SettingsEditor.csproj", "{85226AFB-CE71-4851-9A75-7EEC663A8E8A}"
EndProject
@@ -286,6 +292,10 @@ Global
{6F273DA5-E10C-45A6-9071-7313ECD98C90}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6F273DA5-E10C-45A6-9071-7313ECD98C90}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6F273DA5-E10C-45A6-9071-7313ECD98C90}.Release|Any CPU.Build.0 = Release|Any CPU
+ {7BA66A6B-1ED8-4B4C-970C-8928E891418B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {7BA66A6B-1ED8-4B4C-970C-8928E891418B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {7BA66A6B-1ED8-4B4C-970C-8928E891418B}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {7BA66A6B-1ED8-4B4C-970C-8928E891418B}.Release|Any CPU.Build.0 = Release|Any CPU
{D68133BD-1E63-496E-9EDE-4FBDBF77B486}.Debug|Any CPU.ActiveCfg = net_4_0_Debug|Any CPU
{D68133BD-1E63-496E-9EDE-4FBDBF77B486}.Debug|Any CPU.Build.0 = net_4_0_Debug|Any CPU
{D68133BD-1E63-496E-9EDE-4FBDBF77B486}.Release|Any CPU.ActiveCfg = net_4_0_Release|Any CPU
@@ -398,6 +408,14 @@ Global
{6D209CBB-D8C1-478A-BC30-D3FC87B7858F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6D209CBB-D8C1-478A-BC30-D3FC87B7858F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6D209CBB-D8C1-478A-BC30-D3FC87B7858F}.Release|Any CPU.Build.0 = Release|Any CPU
+ {94BBCA55-A20E-4782-93B0-3566D185F7C1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {94BBCA55-A20E-4782-93B0-3566D185F7C1}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {94BBCA55-A20E-4782-93B0-3566D185F7C1}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {94BBCA55-A20E-4782-93B0-3566D185F7C1}.Release|Any CPU.Build.0 = Release|Any CPU
+ {6F22CECC-2ABA-4D5D-A3F8-1C4F4A46C915}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {6F22CECC-2ABA-4D5D-A3F8-1C4F4A46C915}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {6F22CECC-2ABA-4D5D-A3F8-1C4F4A46C915}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {6F22CECC-2ABA-4D5D-A3F8-1C4F4A46C915}.Release|Any CPU.Build.0 = Release|Any CPU
{80F76D10-0B44-4D55-B4BD-DAEB5464090C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{80F76D10-0B44-4D55-B4BD-DAEB5464090C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{80F76D10-0B44-4D55-B4BD-DAEB5464090C}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -534,18 +552,14 @@ Global
{AFE34868-AFA1-4E1C-9450-47AB4BE329D5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AFE34868-AFA1-4E1C-9450-47AB4BE329D5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AFE34868-AFA1-4E1C-9450-47AB4BE329D5}.Release|Any CPU.Build.0 = Release|Any CPU
- {66A378A1-E9F4-4AD5-8946-D0EC06C2902F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {66A378A1-E9F4-4AD5-8946-D0EC06C2902F}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {66A378A1-E9F4-4AD5-8946-D0EC06C2902F}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {66A378A1-E9F4-4AD5-8946-D0EC06C2902F}.Release|Any CPU.Build.0 = Release|Any CPU
{9A9D6FD4-6A2E-455D-ACC3-DDA775FE9865}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9A9D6FD4-6A2E-455D-ACC3-DDA775FE9865}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9A9D6FD4-6A2E-455D-ACC3-DDA775FE9865}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9A9D6FD4-6A2E-455D-ACC3-DDA775FE9865}.Release|Any CPU.Build.0 = Release|Any CPU
- {943DBBB3-E84E-4CF4-917C-C05AFA8743C1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {943DBBB3-E84E-4CF4-917C-C05AFA8743C1}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {943DBBB3-E84E-4CF4-917C-C05AFA8743C1}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {943DBBB3-E84E-4CF4-917C-C05AFA8743C1}.Release|Any CPU.Build.0 = Release|Any CPU
+ {66A378A1-E9F4-4AD5-8946-D0EC06C2902F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {66A378A1-E9F4-4AD5-8946-D0EC06C2902F}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {66A378A1-E9F4-4AD5-8946-D0EC06C2902F}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {66A378A1-E9F4-4AD5-8946-D0EC06C2902F}.Release|Any CPU.Build.0 = Release|Any CPU
{78CC29AC-CC79-4355-B1F2-97936DF198AC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{78CC29AC-CC79-4355-B1F2-97936DF198AC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{78CC29AC-CC79-4355-B1F2-97936DF198AC}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -554,6 +568,10 @@ Global
{88DA149F-21B2-48AB-82C4-28FB6BDFD783}.Debug|Any CPU.Build.0 = Debug|Any CPU
{88DA149F-21B2-48AB-82C4-28FB6BDFD783}.Release|Any CPU.ActiveCfg = Release|Any CPU
{88DA149F-21B2-48AB-82C4-28FB6BDFD783}.Release|Any CPU.Build.0 = Release|Any CPU
+ {943DBBB3-E84E-4CF4-917C-C05AFA8743C1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {943DBBB3-E84E-4CF4-917C-C05AFA8743C1}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {943DBBB3-E84E-4CF4-917C-C05AFA8743C1}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {943DBBB3-E84E-4CF4-917C-C05AFA8743C1}.Release|Any CPU.Build.0 = Release|Any CPU
{85226AFB-CE71-4851-9A75-7EEC663A8E8A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{85226AFB-CE71-4851-9A75-7EEC663A8E8A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{85226AFB-CE71-4851-9A75-7EEC663A8E8A}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -654,6 +672,7 @@ Global
{8035765F-D51F-4A0C-A746-2FD100E19419} = {256F5C28-532C-44C0-8AB8-D8EC5E492E01}
{1152B71B-3C05-4598-B20D-823B5D40559E} = {256F5C28-532C-44C0-8AB8-D8EC5E492E01}
{6F273DA5-E10C-45A6-9071-7313ECD98C90} = {256F5C28-532C-44C0-8AB8-D8EC5E492E01}
+ {7BA66A6B-1ED8-4B4C-970C-8928E891418B} = {256F5C28-532C-44C0-8AB8-D8EC5E492E01}
{D68133BD-1E63-496E-9EDE-4FBDBF77B486} = {2A232EF1-EB95-41C6-B63A-C106E0C95D3C}
{6222A3A1-83CE-47A3-A4E4-A018F82D44D8} = {2A232EF1-EB95-41C6-B63A-C106E0C95D3C}
{E5A0F4D8-37FD-4A30-BEB0-4409DC4E0865} = {2A232EF1-EB95-41C6-B63A-C106E0C95D3C}
@@ -685,6 +704,8 @@ Global
{85C09AD8-183B-403A-869A-7226646218A9} = {E0646C25-36F2-4524-969F-FA621353AB94}
{F390DA70-1FE1-4715-81A0-389AB010C130} = {E0646C25-36F2-4524-969F-FA621353AB94}
{6D209CBB-D8C1-478A-BC30-D3FC87B7858F} = {E0646C25-36F2-4524-969F-FA621353AB94}
+ {94BBCA55-A20E-4782-93B0-3566D185F7C1} = {E0646C25-36F2-4524-969F-FA621353AB94}
+ {6F22CECC-2ABA-4D5D-A3F8-1C4F4A46C915} = {E0646C25-36F2-4524-969F-FA621353AB94}
{F3662720-9EA2-4591-BBC6-97361DCE50A9} = {39327899-ED91-4F7F-988C-4FE4E17C014D}
{80F76D10-0B44-4D55-B4BD-DAEB5464090C} = {F3662720-9EA2-4591-BBC6-97361DCE50A9}
{9196DD8A-B4D4-4780-8742-C5762E547FC2} = {F3662720-9EA2-4591-BBC6-97361DCE50A9}
@@ -727,11 +748,11 @@ Global
{EEF5E054-4192-4A57-8FBF-E860D808A51D} = {0F5192F2-0744-4BA9-A074-6BE82D111B8D}
{AFE34868-AFA1-4E1C-9450-47AB4BE329D5} = {0F5192F2-0744-4BA9-A074-6BE82D111B8D}
{83BAB756-1010-4A2F-9B9D-7F9EBCB288F5} = {11BF9245-88A3-4A0A-9A8A-EC9D98036B0F}
- {66A378A1-E9F4-4AD5-8946-D0EC06C2902F} = {83BAB756-1010-4A2F-9B9D-7F9EBCB288F5}
{9A9D6FD4-6A2E-455D-ACC3-DDA775FE9865} = {83BAB756-1010-4A2F-9B9D-7F9EBCB288F5}
- {943DBBB3-E84E-4CF4-917C-C05AFA8743C1} = {83BAB756-1010-4A2F-9B9D-7F9EBCB288F5}
+ {66A378A1-E9F4-4AD5-8946-D0EC06C2902F} = {83BAB756-1010-4A2F-9B9D-7F9EBCB288F5}
{78CC29AC-CC79-4355-B1F2-97936DF198AC} = {83BAB756-1010-4A2F-9B9D-7F9EBCB288F5}
{88DA149F-21B2-48AB-82C4-28FB6BDFD783} = {83BAB756-1010-4A2F-9B9D-7F9EBCB288F5}
+ {943DBBB3-E84E-4CF4-917C-C05AFA8743C1} = {83BAB756-1010-4A2F-9B9D-7F9EBCB288F5}
{85226AFB-CE71-4851-9A75-7EEC663A8E8A} = {11BF9245-88A3-4A0A-9A8A-EC9D98036B0F}
{7D7E92DF-ACEB-4B69-92C8-8AC7A703CD57} = {11BF9245-88A3-4A0A-9A8A-EC9D98036B0F}
{CBC6C247-747B-4908-B09A-4D2E0F640B6B} = {11BF9245-88A3-4A0A-9A8A-EC9D98036B0F}
diff --git a/SharpDevelop.sln b/SharpDevelop.sln
index 6f14419d1fb..1de7a8d728d 100644
--- a/SharpDevelop.sln
+++ b/SharpDevelop.sln
@@ -1,7 +1,7 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
-# SharpDevelop 5.0
+# SharpDevelop 5.1
VisualStudioVersion = 12.0.20827.3
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Main", "Main", "{256F5C28-532C-44C0-8AB8-D8EC5E492E01}"
@@ -24,6 +24,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharpDevelop", "src\Main\Sh
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.SharpDevelop.BuildWorker120", "src\Main\ICSharpCode.SharpDevelop.BuildWorker120\ICSharpCode.SharpDevelop.BuildWorker120.csproj", "{6F273DA5-E10C-45A6-9071-7313ECD98C90}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.SharpDevelop.BuildWorker140", "src\Main\ICSharpCode.SharpDevelop.BuildWorker140\ICSharpCode.SharpDevelop.BuildWorker140.csproj", "{7BA66A6B-1ED8-4B4C-970C-8928E891418B}"
+EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Libraries", "Libraries", "{2A232EF1-EB95-41C6-B63A-C106E0C95D3C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mono.Cecil", "src\Libraries\cecil\Mono.Cecil.csproj", "{D68133BD-1E63-496E-9EDE-4FBDBF77B486}"
@@ -79,6 +81,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.Scripting", "sr
EndProject
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "VBBinding", "src\AddIns\BackendBindings\VBBinding\Project\VBBinding.vbproj", "{6D209CBB-D8C1-478A-BC30-D3FC87B7858F}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TypeScriptBinding", "src\AddIns\BackendBindings\TypeScript\Project\TypeScriptBinding.csproj", "{94BBCA55-A20E-4782-93B0-3566D185F7C1}"
+EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Misc", "Misc", "{F3662720-9EA2-4591-BBC6-97361DCE50A9}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SearchAndReplace", "src\AddIns\Misc\SearchAndReplace\Project\SearchAndReplace.csproj", "{9196DD8A-B4D4-4780-8742-C5762E547FC2}"
@@ -149,13 +153,13 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.Data.SQLServer"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "WpfDesign", "WpfDesign", "{D54BEB89-8CBE-475C-8BB9-836D2FD71260}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WpfDesign", "src\AddIns\DisplayBindings\WpfDesign\WpfDesign\Project\WpfDesign.csproj", "{66A378A1-E9F4-4AD5-8946-D0EC06C2902F}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WpfDesign", "src\Libraries\WpfDesigner\WpfDesign\Project\WpfDesign.csproj", "{66A378A1-E9F4-4AD5-8946-D0EC06C2902F}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WpfDesign.AddIn", "src\AddIns\DisplayBindings\WpfDesign\WpfDesign.AddIn\WpfDesign.AddIn.csproj", "{9A9D6FD4-6A2E-455D-ACC3-DDA775FE9865}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WpfDesign.XamlDom", "src\Libraries\WpfDesigner\WpfDesign.XamlDom\Project\WpfDesign.XamlDom.csproj", "{88DA149F-21B2-48AB-82C4-28FB6BDFD783}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WpfDesign.XamlDom", "src\AddIns\DisplayBindings\WpfDesign\WpfDesign.XamlDom\Project\WpfDesign.XamlDom.csproj", "{88DA149F-21B2-48AB-82C4-28FB6BDFD783}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WpfDesign.Designer", "src\Libraries\WpfDesigner\WpfDesign.Designer\Project\WpfDesign.Designer.csproj", "{78CC29AC-CC79-4355-B1F2-97936DF198AC}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WpfDesign.Designer", "src\AddIns\DisplayBindings\WpfDesign\WpfDesign.Designer\Project\WpfDesign.Designer.csproj", "{78CC29AC-CC79-4355-B1F2-97936DF198AC}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WpfDesign.AddIn", "src\AddIns\DisplayBindings\WpfDesign\WpfDesign.AddIn\WpfDesign.AddIn.csproj", "{9A9D6FD4-6A2E-455D-ACC3-DDA775FE9865}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FormsDesigner", "src\AddIns\DisplayBindings\FormsDesigner\Project\FormsDesigner.csproj", "{7D7E92DF-ACEB-4B69-92C8-8AC7A703CD57}"
EndProject
@@ -235,6 +239,10 @@ Global
{6F273DA5-E10C-45A6-9071-7313ECD98C90}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6F273DA5-E10C-45A6-9071-7313ECD98C90}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6F273DA5-E10C-45A6-9071-7313ECD98C90}.Release|Any CPU.Build.0 = Release|Any CPU
+ {7BA66A6B-1ED8-4B4C-970C-8928E891418B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {7BA66A6B-1ED8-4B4C-970C-8928E891418B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {7BA66A6B-1ED8-4B4C-970C-8928E891418B}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {7BA66A6B-1ED8-4B4C-970C-8928E891418B}.Release|Any CPU.Build.0 = Release|Any CPU
{D68133BD-1E63-496E-9EDE-4FBDBF77B486}.Debug|Any CPU.ActiveCfg = net_4_0_Debug|Any CPU
{D68133BD-1E63-496E-9EDE-4FBDBF77B486}.Debug|Any CPU.Build.0 = net_4_0_Debug|Any CPU
{D68133BD-1E63-496E-9EDE-4FBDBF77B486}.Release|Any CPU.ActiveCfg = net_4_0_Release|Any CPU
@@ -319,6 +327,10 @@ Global
{6D209CBB-D8C1-478A-BC30-D3FC87B7858F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6D209CBB-D8C1-478A-BC30-D3FC87B7858F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6D209CBB-D8C1-478A-BC30-D3FC87B7858F}.Release|Any CPU.Build.0 = Release|Any CPU
+ {94BBCA55-A20E-4782-93B0-3566D185F7C1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {94BBCA55-A20E-4782-93B0-3566D185F7C1}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {94BBCA55-A20E-4782-93B0-3566D185F7C1}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {94BBCA55-A20E-4782-93B0-3566D185F7C1}.Release|Any CPU.Build.0 = Release|Any CPU
{9196DD8A-B4D4-4780-8742-C5762E547FC2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9196DD8A-B4D4-4780-8742-C5762E547FC2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9196DD8A-B4D4-4780-8742-C5762E547FC2}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -435,10 +447,6 @@ Global
{66A378A1-E9F4-4AD5-8946-D0EC06C2902F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{66A378A1-E9F4-4AD5-8946-D0EC06C2902F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{66A378A1-E9F4-4AD5-8946-D0EC06C2902F}.Release|Any CPU.Build.0 = Release|Any CPU
- {9A9D6FD4-6A2E-455D-ACC3-DDA775FE9865}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {9A9D6FD4-6A2E-455D-ACC3-DDA775FE9865}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {9A9D6FD4-6A2E-455D-ACC3-DDA775FE9865}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {9A9D6FD4-6A2E-455D-ACC3-DDA775FE9865}.Release|Any CPU.Build.0 = Release|Any CPU
{88DA149F-21B2-48AB-82C4-28FB6BDFD783}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{88DA149F-21B2-48AB-82C4-28FB6BDFD783}.Debug|Any CPU.Build.0 = Debug|Any CPU
{88DA149F-21B2-48AB-82C4-28FB6BDFD783}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -447,6 +455,10 @@ Global
{78CC29AC-CC79-4355-B1F2-97936DF198AC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{78CC29AC-CC79-4355-B1F2-97936DF198AC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{78CC29AC-CC79-4355-B1F2-97936DF198AC}.Release|Any CPU.Build.0 = Release|Any CPU
+ {9A9D6FD4-6A2E-455D-ACC3-DDA775FE9865}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {9A9D6FD4-6A2E-455D-ACC3-DDA775FE9865}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {9A9D6FD4-6A2E-455D-ACC3-DDA775FE9865}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {9A9D6FD4-6A2E-455D-ACC3-DDA775FE9865}.Release|Any CPU.Build.0 = Release|Any CPU
{7D7E92DF-ACEB-4B69-92C8-8AC7A703CD57}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7D7E92DF-ACEB-4B69-92C8-8AC7A703CD57}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7D7E92DF-ACEB-4B69-92C8-8AC7A703CD57}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -521,6 +533,7 @@ Global
{8035765F-D51F-4A0C-A746-2FD100E19419} = {256F5C28-532C-44C0-8AB8-D8EC5E492E01}
{1152B71B-3C05-4598-B20D-823B5D40559E} = {256F5C28-532C-44C0-8AB8-D8EC5E492E01}
{6F273DA5-E10C-45A6-9071-7313ECD98C90} = {256F5C28-532C-44C0-8AB8-D8EC5E492E01}
+ {7BA66A6B-1ED8-4B4C-970C-8928E891418B} = {256F5C28-532C-44C0-8AB8-D8EC5E492E01}
{D68133BD-1E63-496E-9EDE-4FBDBF77B486} = {2A232EF1-EB95-41C6-B63A-C106E0C95D3C}
{E5A0F4D8-37FD-4A30-BEB0-4409DC4E0865} = {2A232EF1-EB95-41C6-B63A-C106E0C95D3C}
{3B2A5653-EC97-4001-BB9B-D90F1AF2C371} = {E5A0F4D8-37FD-4A30-BEB0-4409DC4E0865}
@@ -545,6 +558,7 @@ Global
{E1B288A2-08EE-4318-8BBB-8AB72C69E33E} = {E0646C25-36F2-4524-969F-FA621353AB94}
{7048AE18-EB93-4A84-82D0-DD60EB58ADBD} = {E0646C25-36F2-4524-969F-FA621353AB94}
{6D209CBB-D8C1-478A-BC30-D3FC87B7858F} = {E0646C25-36F2-4524-969F-FA621353AB94}
+ {94BBCA55-A20E-4782-93B0-3566D185F7C1} = {E0646C25-36F2-4524-969F-FA621353AB94}
{F3662720-9EA2-4591-BBC6-97361DCE50A9} = {39327899-ED91-4F7F-988C-4FE4E17C014D}
{9196DD8A-B4D4-4780-8742-C5762E547FC2} = {F3662720-9EA2-4591-BBC6-97361DCE50A9}
{7D5C266F-D6FF-4D14-B315-0C0FC6C4EF51} = {F3662720-9EA2-4591-BBC6-97361DCE50A9}
@@ -581,9 +595,9 @@ Global
{AFE34868-AFA1-4E1C-9450-47AB4BE329D5} = {5FB020B2-B64B-4016-999A-CB8FD9274D72}
{D54BEB89-8CBE-475C-8BB9-836D2FD71260} = {11BF9245-88A3-4A0A-9A8A-EC9D98036B0F}
{66A378A1-E9F4-4AD5-8946-D0EC06C2902F} = {D54BEB89-8CBE-475C-8BB9-836D2FD71260}
- {9A9D6FD4-6A2E-455D-ACC3-DDA775FE9865} = {D54BEB89-8CBE-475C-8BB9-836D2FD71260}
{88DA149F-21B2-48AB-82C4-28FB6BDFD783} = {D54BEB89-8CBE-475C-8BB9-836D2FD71260}
{78CC29AC-CC79-4355-B1F2-97936DF198AC} = {D54BEB89-8CBE-475C-8BB9-836D2FD71260}
+ {9A9D6FD4-6A2E-455D-ACC3-DDA775FE9865} = {D54BEB89-8CBE-475C-8BB9-836D2FD71260}
{7D7E92DF-ACEB-4B69-92C8-8AC7A703CD57} = {11BF9245-88A3-4A0A-9A8A-EC9D98036B0F}
{CBC6C247-747B-4908-B09A-4D2E0F640B6B} = {11BF9245-88A3-4A0A-9A8A-EC9D98036B0F}
{7019F43E-DFD7-4D1C-8C96-E75D55646DE7} = {39327899-ED91-4F7F-988C-4FE4E17C014D}
diff --git a/clean.bat b/clean.bat
index 98b7efba833..3b6b2a7f521 100755
--- a/clean.bat
+++ b/clean.bat
@@ -1,5 +1,8 @@
@set PROGFILES=%PROGRAMFILES%
@if exist "%PROGRAMFILES(x86)%" set PROGFILES=%PROGRAMFILES(x86)%
+@if not exist "src\Libraries\AvalonEdit\ICSharpCode.AvalonEdit.sln" (
+ git submodule update --init || exit /b 1
+)
"%PROGFILES%\MSBuild\12.0\Bin\msbuild" /m SharpDevelop.sln /t:clean "/p:Platform=Any CPU" /p:Configuration=Debug
@IF %ERRORLEVEL% NEQ 0 PAUSE
"%PROGFILES%\MSBuild\12.0\Bin\msbuild" /m SharpDevelop.sln /t:clean "/p:Platform=Any CPU" /p:Configuration=Release
diff --git a/data/resources/StringResources.cz.resx b/data/resources/StringResources.cz.resx
index 2b525278f1c..6d188dad77b 100644
--- a/data/resources/StringResources.cz.resx
+++ b/data/resources/StringResources.cz.resx
@@ -231,6 +231,171 @@
Neznámý formát souboru:
+
+ Instalovat z archivu...
+
+
+ Depozitář:
+
+
+ Vyhledat:
+
+
+ Zobrazit předinstalované doplňky
+
+
+ Zobrazit předběžné vezre
+
+
+ AddInManager nelze odinstalovat - je ho třeba k opětovné instalaci doplňků!
+
+
+ Depozitář doplňků SharpDevelop
+
+
+ Vytvořil:
+
+
+ Závislosti:
+
+
+ Ke stažení:
+
+
+ Soubor:
+
+
+ Instalovaná verze:
+
+
+ Poslední změna:
+
+
+ Více informací
+
+
+ Nová verze:
+
+
+ Hodnocení:
+
+
+ Nahlásit zneužití
+
+
+ Verze:
+
+
+ Zobrazit licenční podmínky
+
+
+ Následující nainstalované doplňky závisí na "{0}":
+{1}
+Pokud doplněk deaktivujete, přestanou fungovat. Myslíte to vážně?
+
+
+ Balíček "{0}" potřebuje přinejmenším jeden další balíček, a to
+{1}
+Aplikace se vše potřebné také pokusí stáhnout a nainstalovat. Pokračovat?
+
+
+ Vybraný balíček neobsahuje platný doplněk SharpDevelop.
+
+
+ &Akceptuji
+
+
+ O&dmítám
+
+
+ Volbou "Akceptuji" vyjadřujete souhlas s licenčním ujednáním pro uvedený balíček. Pokud s licenčními podmínkami nesouhlasíte, zvolte "Odmítám".
+
+
+ Volbou "Akceptuji" vyjadřujete souhlas s licenčním ujednáním pro výše uvedený balíčky. Pokud s licenčními podmínkami nesouhlasíte, zvolte "Odmítám".
+
+
+ Následující balíček vyžaduje potvrdit licenční podmínky:
+
+
+ Následující balíčky vyžadují potvrdit licenční podmínky:
+
+
+ Licenční ujednání
+
+
+ Přidat
+
+
+ Automaticky vyhledávat aktualizace
+
+
+ Posunout dolů
+
+
+ Posunout nahoru
+
+
+ Jméno:
+
+
+ Odstranit
+
+
+ Zdroj:
+
+
+ Doplňky
+
+
+ Obecné
+
+
+ Depozitáře
+
+
+ Následující instalované doplňky závisí na "{0}":
+{1}
+Ty přestanou fungovat, pokud první doplněk odstraníte! Skutečně to chcete udělat?
+
+
+ Doplňky SharpDevelop |*.sdaddin;*.addin|Všechny soubory|*.*
+
+
+ Klikněte pro zobrazení aktualizací.
+
+
+ Jsou k dispozici aktualizace SharpDevelop
+
+
+ K dispozici
+
+
+ Nainstalováno
+
+
+ Aktualizace
+
+
+ Soubor obsahuje nekonzistentní znaky konce řádku.
+
+
+ Nekonzistentní odřádkování
+
+
+ Normalizovat
+
+
+ Chyba:
+
+
+ Najít další
+
+
+ Najít předchozí
+
+
+ Použít regulární výrazy
+
Ukázat diagram třídy
@@ -243,6 +408,57 @@
Zobrazit Obsah
+
+ Vyhledat
+
+
+ Knihovna nápovědy
+
+
+ Nastavit předvolby nápovědy
+
+
+ Nelze spustit Správce nápovědy, protože nebyl nainstalován nebo zvolen žadý katalog nápovědy. Zkontrolujte nastavení nápovědy (Nástroje > Volby > Nástroje > Microsoft Help Viewer).
+
+
+ Správce nápovědy nebyl nalezen. Chcete-li používat funkce nápovědy SharpDevelop, stáhněte si a nainstalujte MS Windows SDK 7.1.
+
+
+ Správce nápovědy (Help Library Manager) nebyl nalezen. Zkontrolujte, zda byl správně nainstalován.
+
+
+ Instalované katalogy nápovědy
+
+
+ Spustit správce nápovědy
+
+
+ Prohlížeč nápovědy Microsoft
+
+
+ Požadujete offline funkcionality v online módu. Aby byla použitelná, musíte změnit mód.
+
+
+ Vyhledat
+
+
+ Hledat:
+
+
+ Hledání
+
+
+ Ukázat nápovědu
+
+
+ Užívat externí prohlížeč nápovědy
+
+
+ Chci používat lokální nápovědu
+
+
+ Chci používat online nápovědu
+
Zpět
@@ -273,6 +489,51 @@
Nadpis
+
+ Výsledek
+
+
+ Zatříděné uzly
+
+
+ Všechny funkce pro {0}
+
+
+ Vybraná SharpDevelop profiling session byla vytvořena novější verzí SharpDevelopu, tudíž bohužel nejde otevřít.
+
+
+ Profilovací seance SharpDevelop
+
+
+ Projekt nemůže nastartovat, protože nebyl nalezen EXE. Zkontrolujte, zda projekt včetně všech závislostí byl korektně sestaven.
+
+
+ Žádný projekt schopný startu nebyl nalezen. Zazvonil zvonec...
+
+
+ Projekt nelze nastartovat. Chcete místo toho profilovat StartUp projekt celého řešení?
+
+
+ Příprava analýzy ...
+
+
+ Nelze zaregistrovat profiler v COM registry. Profilování nelze zahájit.
+
+
+ Profiler nelze odebrat z COM registry!
+
+
+ Volba EXE k profilování
+
+
+ Neplatné údaje. Zkuste to znovu a lépe!
+
+
+ Argumenty příkazového řádku:
+
+
+ Zvolte cestu k profilovanému EXE. Navíc můžete zvolit pracovní složku a parametry příkazového řádku.
+
Hledat...
@@ -339,12 +600,24 @@
Upravit konflikty
+
+ Chyba při mazání ${File}
+
Export
+
+ Smazat natvrdo
+
Historie
+
+ '{0}' odstraněn ze seznamu k ignoraci
+
+
+ Zámek pro get
+
Označit konflikty za vyřešené
@@ -375,12 +648,18 @@
Odebrat ze seznamu ignorovaných
+
+ Sobor sem byl právě přesunut, chcete ho vážně zase smazat?
+
Průzkumník repository
Revert
+
+ Soubor má lokálni změny. Skutečně ho chcete odstranit?
+
Graf revizí
diff --git a/data/resources/StringResources.de.resx b/data/resources/StringResources.de.resx
index 70ce433b9d4..026bebfe3ba 100644
--- a/data/resources/StringResources.de.resx
+++ b/data/resources/StringResources.de.resx
@@ -408,9 +408,6 @@ Sie werden nicht mehr funktionieren, nachdem dieses AddIn entfernt wurde! Sind S
Klassendiagramm anzeigen
-
- Konsole löschen
-
Verlauf löschen
diff --git a/data/resources/StringResources.es-mx.resx b/data/resources/StringResources.es-mx.resx
index 088c8c17a55..88cfab51aba 100644
--- a/data/resources/StringResources.es-mx.resx
+++ b/data/resources/StringResources.es-mx.resx
@@ -409,9 +409,6 @@ Dejarán de funcionar después de desinstalar este complemento! ¿Esta seguro de
Mostrar Diagrama de Clase
-
- Limpiar consola
-
Borrar Historial
diff --git a/data/resources/StringResources.es.resx b/data/resources/StringResources.es.resx
index 8aa10117866..c3886f0541a 100644
--- a/data/resources/StringResources.es.resx
+++ b/data/resources/StringResources.es.resx
@@ -1679,6 +1679,9 @@ Para crear/manipular un objeto ActiveX/COM, arrastre una clase de un Control/Bib
Cursiva
+
+ Subrayado
+
Exportar colores de resaltado
@@ -2077,6 +2080,9 @@ Para crear/manipular un objeto ActiveX/COM, arrastre una clase de un Control/Bib
Detener ejecución en la primera línea.
+
+ Seleccione excepciones
+
Habilitar decompilador
diff --git a/data/resources/StringResources.fr.resx b/data/resources/StringResources.fr.resx
index c44798f93d4..5e2fc361d7a 100644
--- a/data/resources/StringResources.fr.resx
+++ b/data/resources/StringResources.fr.resx
@@ -399,12 +399,33 @@ Ils ne fonctionneront plus si vous désinstallez cet Add-In! Souhaitez-vous cont
Afficher le diagramme des classes
-
- Vider la console
+
+ Effacer la console
Effacer l'historique
+
+ 'git.exe' est introuvable dans le dossier sélectionné!
+
+
+ Git n'est pas installé.
+
+
+ Choisir l'emplacement de Git
+
+
+ Emplacement de Git
+
+
+ Réinitialiser l'emplacement de Git.
+
+
+ Options Git
+
+
+ (détecté automatiquement)
+
TortoiseGit doit être installé pour exécuter cette action.
@@ -2598,6 +2619,69 @@ Voulez-vous ajouter le nouveau fichier au projet ${CurrentProjectName}?
Fichier de r&essources Win32:
+
+ Informations sur l'Assembly
+
+
+ Fichier Assembly.info introuvable. Veuillez vous assurer qu'il existe dans le projet.
+
+
+ Version:
+
+
+ Conforme CLS
+
+
+ Société:
+
+
+ Copyright:
+
+
+ Alias par défaut:
+
+
+ Description:
+
+
+ Version du fichier:
+
+
+ GUID:
+
+
+ Une valeur du fichier Assembly.info est incorrecte.
+
+
+ Version informelle:
+
+
+ Optimisation JIT
+
+
+ Suivi JIT
+
+
+ Rendre l'Assembly visible par COM:
+
+
+ Language neutre:
+
+
+ Nouveau GUID
+
+
+ Aucun
+
+
+ Produit:
+
+
+ Titre:
+
+
+ Trademark:
+
Avancé
@@ -4814,6 +4898,15 @@ Soit ils n'existent pas, soit le document Wix n'est pas pour WiX 3.0 et l'espace
Extension Visual Studio
+
+ Activer l'analyse de App.xml
+
+
+ Editeur WPF
+
+
+ Appuyer sur "Alt" pour saisir un Conteneur
+
Vignettes du Concepteur WPF
diff --git a/data/resources/StringResources.it.resx b/data/resources/StringResources.it.resx
index 41a443dd530..7743977f624 100644
--- a/data/resources/StringResources.it.resx
+++ b/data/resources/StringResources.it.resx
@@ -164,7 +164,7 @@ una riga a capo
Il componente è stato installato due volte. Rimuovere una copia.
- L'AddIn deve avere un <Identity> per poter essere utilizzato dal gestore di AddIn.
+ Il componente deve avere un <Identity> per poter essere utilizzato dal gestore di AddIn.
Il componente sarà rimosso dopo il riavvio di SharpDevelop
@@ -173,7 +173,7 @@ una riga a capo
Il componente sarà aggiornato dopo il riavvio di SharpDevelop
- L'AddIn sarà disabilitato dopo il riavvio di SharpDevelop
+ Il componente sarà disabilitato dopo il riavvio di SharpDevelop
Impossibile disabilitare il gestore degli AddIn in quanto è necessario riabilitare gli AddIn !!!
@@ -182,13 +182,13 @@ una riga a capo
Impossibile installare gli AddIn dentro la cartella ${ProductName}, essi verranno caricati come AddIn preinstallati automaticamente.
- Annulla rimozione del componente/i selezionato/i.
+ Annulla disinstallazione del/i componente/i selezionato/i.
- Annulla l'installazione dei componenti selezionati
+ Annulla l'installazione del/i componente/i selezionato/i
- Annulla l'aggiornamento del componente/i selezionato/i
+ Annulla l'aggiornamento del/i componente/i selezionato/i
Disabilita il componente/i selezionato/i.
@@ -197,20 +197,20 @@ una riga a capo
Abilita il componente/i selezionato/i.
- La selezione non è consistente, scegli solo AddIn con lo stesso status.
+ La selezione non è consistente, scegli solo Componenti con lo stesso status.
Pacchetto Installazione Componente
- AddIn di SharpDevelop|*.addin;*.sdaddin|Tutti i file|*.*
+ Componenti di SharpDevelop|*.addin;*.sdaddin|Tutti i file|*.*
&Install Componente
Nessun Componente installato.
-Scaricare un componente da internet, poi cliccare 'Install AddIn' e selezionare il file scaricato per installarlo.
+Scaricare un componente da internet, poi cliccare 'Installa AddIn' e selezionare il file scaricato per installarlo.
Apri Sito web
@@ -225,10 +225,10 @@ Scaricare un componente da internet, poi cliccare 'Install AddIn' e selezionare
Dipendenze richieste:
- Mostra AddIn preinstallati
+ Mostra Componenti preinstallati
- Gestore AddIn
+ Gestore Componenti
Formato file sconosciuto:
@@ -243,7 +243,7 @@ Scaricare un componente da internet, poi cliccare 'Install AddIn' e selezionare
Cerca:
- Visualizza AddIns preinstallati
+ Visualizza Componenti preinstallati
Visualizza prereleases
@@ -252,7 +252,7 @@ Scaricare un componente da internet, poi cliccare 'Install AddIn' e selezionare
Non puoi disinstallare il gestore AddIn perché ti serve per reinstallare gli AddIns!
- Lista SharpDevelop AddIn
+ Repository dei Componenti di SharpDevelop
Creato da:
@@ -291,11 +291,11 @@ Scaricare un componente da internet, poi cliccare 'Install AddIn' e selezionare
Mostra i Termini di Licenza
- I seguenti AddIns dipendono da "{0}":
+ I seguenti Componenti dipendono da "{0}":
{1}
-Smetteranno di funzionare dopo aver disabilitato questo AddIn! Sei sicuro di voler continuare?
+Smetteranno di funzionare dopo aver disabilitato questo Componente! Sei sicuro di voler continuare?
"{0}" richiede almeno un pacchetto aggiuntivo:
@@ -305,7 +305,7 @@ Smetteranno di funzionare dopo aver disabilitato questo AddIn! Sei sicuro di vol
L'applicazione tenterà di scaricarlo e installarlo. Sei sicuro di voler continuare?
- Il pacchetto selezionato non contiene un AddIn per SharpDevelop valido.
+ Il pacchetto selezionato non contiene un Componente valido per SharpDevelop.
&Accetto
@@ -322,10 +322,10 @@ Se non accetti i termini di licenza clicca "Rifiuto".
Se non accetti i termini di licenza clicca "Rifiuto".
- Questo pacchetto richiede l'accettazione della licenza:
+ Il seguente pacchetto richiede l'accettazione della licenza:
- I seguenti pacchetti richiedono un clic per accettare la licenza:
+ I seguenti pacchetti richiedono l'accettazione della licenza:
Condizioni di Licenza
@@ -352,7 +352,7 @@ Se non accetti i termini di licenza clicca "Rifiuto".
Sorgente:
- AddIns
+ Componenti
Generale
@@ -361,14 +361,14 @@ Se non accetti i termini di licenza clicca "Rifiuto".
Repositories
- I seguenti AddIns dipendono da "{0}":
+ I seguenti Componenti dipendono da "{0}":
{1}
-Smetteranno di funzionare dopo la rimozione di questo AddIn! Sei sicuro di voler continuare?
+Smetteranno di funzionare dopo la rimozione di questo Componente! Sei sicuro di voler continuare?
- SharpDevelop AddIns|*.sdaddin;*.addin|All files|*.*
+ Componenti di SharpDevelop|*.sdaddin;*.addin|All files|*.*
Clicca qui per visualizzare gli aggiornamenti.
@@ -409,11 +409,11 @@ Smetteranno di funzionare dopo la rimozione di questo AddIn! Sei sicuro di voler
Mostra Diagramma delle Classi
-
+
Pulisci console
- Cancella storico
+ Cancella cronologia
'git.exe' non è stato trovato nella cartella selezionata!
@@ -500,7 +500,7 @@ Smetteranno di funzionare dopo la rimozione di questo AddIn! Sei sicuro di voler
Numero di bytes per linea
- Display
+ Visualizza
Dati
@@ -554,7 +554,7 @@ Smetteranno di funzionare dopo la rimozione di questo AddIn! Sei sicuro di voler
Titolo
- Console per la gestione del Pacchtto
+ Console per la gestione del Pacchetto
Gestisce i Pacchetti...
@@ -584,7 +584,7 @@ Smetteranno di funzionare dopo la rimozione di questo AddIn! Sei sicuro di voler
Sessione di Profilazione SharpDevelop
- Il progetto non può essere avviato perché non è stato trovato l'eseguibile, verifica che il progetto e tutte le sue dipendenze siano stati compilati correttamente!
+ Il progetto non può essere avviato perché non è stato trovato l'eseguibile, verificare che il progetto e tutte le sue dipendenze siano stati compilati correttamente!
Nessun progetto di avvio. Annullo...
@@ -641,7 +641,8 @@ Smetteranno di funzionare dopo la rimozione di questo AddIn! Sei sicuro di voler
Argomenti della linea di comando:
- Seleziona il percorso dell'eseguibile che vuoi profilare. Puoi specificare anche una cartella di lavoro e gli argomenti da linea di comando.
+ Seleziona il percorso dell'eseguibile che vuoi profilare.
+Puoi specificare anche una cartella di lavoro e gli argomenti da linea di comando.
Percorso eseguibile:
@@ -905,7 +906,7 @@ Smetteranno di funzionare dopo la rimozione di questo AddIn! Sei sicuro di voler
Confronta
- Aggiungi automaticamente i nuovi files
+ &Aggiungi automaticamente i nuovi files
Rimuove automaticamente i file &cancellati
@@ -951,7 +952,7 @@ Smetteranno di funzionare dopo la rimozione di questo AddIn! Sei sicuro di voler
L'operazione di controllo versione coinvolgerà file con modifiche non salvate.
-Salva questi file prima di eseguire l'operazione.
+Salvare questi file prima di eseguire l'operazione.
Scambia
@@ -978,7 +979,8 @@ Salva questi file prima di eseguire l'operazione.
Non voglio partecipare
- Abbiamo bisogno del tuo aiuto! Per migliorare SharpDevelop abbiamo bisogno di sapere quali sono le funzionalità maggiormente usate. SharpDevelop può raccogliere queste informazioni e inviarle automaticamente.
+ Abbiamo bisogno del tuo aiuto! Per migliorare SharpDevelop abbiamo bisogno di sapere quali sono le funzionalità maggiormente usate.
+SharpDevelop può raccogliere queste informazioni e inviarle automaticamente.
Informativa sulla Privacy
@@ -1071,7 +1073,8 @@ Salva questi file prima di eseguire l'operazione.
Salva come UTF-8
- Il Progetto è stato configurato come DLL e non è stato specificato nessun comando da eseguire. Se ne può specificare uno nelle opzioni del progetto.
+ Il Progetto è stato configurato come DLL e non è stato specificato nessun comando da eseguire.
+Se ne può specificare uno nelle opzioni del progetto.
La compilazione di un singolo file non è supportata, creare un progetto!
@@ -1664,6 +1667,9 @@ Premi Esc per annullare questa operazione.
Genera operazioni asincrone
+
+ Client
+
file recenti
@@ -1735,7 +1741,7 @@ Premi Esc per annullare questa operazione.
Inserire una espressione da raggiungere.
-Inserire numero linea, nome classe e nome file.
+Si possono usare numeri di linea, nomi di classi e nomi di file.
Ad esempio: "120", "MainClass", "Main.cs, 120".
@@ -1751,7 +1757,7 @@ Ad esempio: "120", "MainClass", "Main.cs, 120".
Corsivo
- Indefinito
+ Sottolineato
Esporta schema colori
@@ -1830,7 +1836,7 @@ Vuoi aggiungere il nuovo file al progetto ${CurrentProjectName}?
Errore parsing espressione regolare:
- Trova &tutti
+ Trov&a tutti
&Trova
@@ -2085,7 +2091,7 @@ Vuoi aggiungere il nuovo file al progetto ${CurrentProjectName}?
Salva
- Impostazione suggerimenti
+ Impostazioni suggerimenti
I collegamenti nei suggerimenti dovrebbero andare a
@@ -2238,10 +2244,10 @@ Vuoi aggiungere il nuovo file al progetto ${CurrentProjectName}?
Cre&a copia di backup
- Codifica file predefinita:
+ Codifica fil&e predefinita:
- &Controlla modifiche esterne ai files
+ Controlla mo&difiche esterne ai files
Carica
@@ -2440,7 +2446,7 @@ Vuoi aggiungere il nuovo file al progetto ${CurrentProjectName}?
Abilita &doppio buffer
- Abilita c&artelle
+ Abilita &struttura
Carattere
@@ -2568,6 +2574,9 @@ Vuoi aggiungere il nuovo file al progetto ${CurrentProjectName}?
Seleziona la directory dove l'assembly verrà creato.
+
+ Riferimenti del Servizio
+
Evidenziazioni
@@ -2625,6 +2634,69 @@ Vuoi aggiungere il nuovo file al progetto ${CurrentProjectName}?
File di R&isorsa Win32:
+
+ Informazioni assembly
+
+
+ Il file delle informazioni dell'assembly non è stato trovato. Prego assicurarsi che il progetto contenga il file
+
+
+ Versione assembly:
+
+
+ Compatibile CLS
+
+
+ Società:
+
+
+ Copyright:
+
+
+ Alias predefinito:
+
+
+ Descrizione:
+
+
+ Versione File:
+
+
+ GUID:
+
+
+ Uno dei valori delle informazioni dell'assembly non è corretto.
+
+
+ Versione informativa:
+
+
+ Ottimizzazione JIT
+
+
+ Monitoraggio JIT
+
+
+ Rendi l'assembly visibile a COM
+
+
+ Linguaggio neutrale:
+
+
+ Nuovo GUID
+
+
+ Nessuna
+
+
+ Prodotto:
+
+
+ Titolo:
+
+
+ Marchio:
+
Avanzato
@@ -2909,9 +2981,9 @@ Vuoi aggiungere il nuovo file al progetto ${CurrentProjectName}?
Con il bottone piccolo davanti ad ogni impostazione di configurazione, si sceglie dove l'impostazione è memorizzata.
-"Specifiche della Configurazione" significa che le impostazioni possono avere valori differenti in ogni configurazione (debug/release)
+"Specifiche della Configurazione" significa che le impostazioni possono avere valori differenti in ogni configurazione (Debug/Release)
"Specifiche della Piattaforma" significa che le impostazioni possono avere valori differenti a seconda della piattaforma
-Puoi anche scegliere di memorizzare le impostazioni in un file .user invece che nel file di progetto, così che ogni sviluppatore possa utilizzare un valore differentesenza andare in conflitto con il sistema di controllo dei sorgenti.
+Puoi anche scegliere di memorizzare le impostazioni in un file .user invece che nel file di progetto, così che ogni sviluppatore possa utilizzare un valore differente senza andare in conflitto con il sistema di controllo dei sorgenti.
Memorizza in file .user
@@ -3619,7 +3691,7 @@ Puoi anche scegliere di memorizzare le impostazioni in un file .user invece che
Impossibile trovare NAnt '{0}'.
-Configura il percorso di NAnt nelle opzioni di SharpDevelop.
+Configura il percorso di NAnt nelle Opzioni di SharpDevelop.
Build di NAnt arrestata.
@@ -3775,10 +3847,11 @@ Configura il percorso di NAnt nelle opzioni di SharpDevelop.
Invia alla Console Ruby
- Non si può caricare il file ${FileNameWithoutPath} da ${Path}. Controllare i permessi e la presenza del file stesso.
+ Non si può caricare il file ${FileNameWithoutPath} da ${Path}.
+Controllare i permessi e la presenza del file.
- non si può salvare il file ${FileNameWithoutPath} in ${Path}. Scegliere un altro nome o controllare se la cartella esiste e che si hanno i permessi di scrittura. (potrebbe essere attivata la protezione da scrittura ??).
+ Non si può salvare il file ${FileNameWithoutPath} in ${Path}. Scegliere un altro nome o controllare se la cartella esiste e che si hanno i permessi di scrittura. (potrebbe essere attivata la protezione da scrittura?)
Visualizzatore
@@ -3895,7 +3968,7 @@ Nota: Questa operazione non influenza i propri layout.
Si vuole veramente ricaricare il file ?
-Tutti i cambiamenti saranno persi.
+Tutte le modifiche andranno perse.
Il collegamento al linguaggio ${LanguageBinding} non può compilare ${FileName}.
@@ -3924,8 +3997,7 @@ Tutti i cambiamenti saranno persi.
Il file
${File}
-è stato cambiato esternamente. Vuoi ricaricarlo?
-
+è stato cambiato da un'altra applicazione. Vuoi ricaricarlo?
Ricerca incrementale:
@@ -4168,7 +4240,7 @@ ${File}
Stai tentanto di aggiungere un componente che risulta in una dipendenza ciclica.
- SI è verificata un'eccezione nella creazione del componente per il Forms Designer (Un componente ha genrato un'eccezione nel costruttore).
+ SI è verificata un'eccezione nella creazione del componente per il Forms Designer (Un componente ha generato un'eccezione nel costruttore).
QUESTO NON INTERESSA IL CODICE SORGENTE.
@@ -4180,7 +4252,7 @@ QUESTO NON INTERESSA IL CODICE SORGENTE.
Impossibile caricare la barra laterale dei componenti.
Nessun componente Windows Forms trovato, configurare la barra laterale manualmente.
-(Tasto destro sulla barra laterale->Configurare barra laterale)
+(Tasto destro sulla barra laterale->Personalizza barra laterale)
Componenti personalizzati
@@ -4258,7 +4330,7 @@ Nessun componente Windows Forms trovato, configurare la barra laterale manualmen
Collega al Processo
- Impossibile creare la directory.
+ Impossibile creare la directory di destinazione.
Controllare se si hanno i permessi richiesti.
@@ -4507,17 +4579,19 @@ Sono ammesse solo lettere, numeri, spazi, '.' o '_'.
Il progetto '${ProjectName}' usa MSBuild ${OldToolsVersion}, ma questa versione non è installata.
-Vuoi aggiornare il progetto a MSBuild ${NewToolsVersion}? Il progetto non può essere aperto senza essere aggiornato.
+Vuoi aggiornare il progetto a MSBuild ${NewToolsVersion}?
+Il progetto non può essere aperto senza essere aggiornato.
Aggiorna a MSBuild ${NewToolsVersion}
- Questa soluzione è stata creata con una versione precedente di SharpDevelop. Potresti volerla aggiornare così da utilizzare le nuove funzionalità del linguaggio o del framework.
+ Questa soluzione è stata creata con una versione precedente di SharpDevelop.
+Potresti volerla aggiornare così da utilizzare le nuove funzionalità del linguaggio o del framework.
Ambiente corrente non trovato.
-Vai a 'Opzioni->Stile visuale' e cambia l'attuale ambiente di linguaggio.
+Vai a 'Opzioni->Stile visuale' e cambia l'attuale ambiente del linguaggio.
Marcatori eseguiti
@@ -4847,6 +4921,15 @@ Microsoft.Tools.WindowsInstallerXml.Extensions.NetFxCompiler, WixNetFxExtension<
Estensione Visual Studio
+
+ Attiva l'analisi di App.xaml
+
+
+ Editor WPF
+
+
+ Premere "Alt" per entrare nel Contenitore
+
Anteprima WPF Designer
@@ -5079,7 +5162,7 @@ Microsoft.Tools.WindowsInstallerXml.Extensions.NetFxCompiler, WixNetFxExtension<
Generazione
- Compilazione in corso
+ Compilazione
Generazione assembly di interoperabilità COM...
@@ -5331,7 +5414,7 @@ Microsoft.Tools.WindowsInstallerXml.Extensions.NetFxCompiler, WixNetFxExtension<
Interrompi
- Arresta su l'eccezione gestita ${ExceptionName}
+ Arresta su eccezione gestita ${ExceptionName}
Continua
@@ -6156,10 +6239,10 @@ Microsoft.Tools.WindowsInstallerXml.Extensions.NetFxCompiler, WixNetFxExtension<
Aggiorna bitmap ...
- Cursore di aggiornamento ...
+ Aggiorna cursore ...
- Icona di aggiornamento ...
+ Aggiorna icona ...
Vuoi veramente cancellare la(e) risorsa(e) selezionata(e)?
@@ -6471,7 +6554,8 @@ Microsoft.Tools.WindowsInstallerXml.Extensions.NetFxCompiler, WixNetFxExtension<
Tutti i formati di progetto conosciuti
- Questa versione di SharpDevelop non riesce a caricare progetti creati con Visual Studio .NET 2003 (o precedenti). Prova ad usare SharpDevelop 3.2 per convertirli oppure crea un nuovo progetto e aggiungi i file esistenti.
+ Questa versione di SharpDevelop non riesce a caricare progetti creati con Visual Studio .NET 2003 (o precedenti).
+Prova ad usare SharpDevelop 3.2 per convertirli oppure crea un nuovo progetto e aggiungi i file esistenti.
Non posso salvare {0}:\n{1}
@@ -6483,8 +6567,9 @@ Microsoft.Tools.WindowsInstallerXml.Extensions.NetFxCompiler, WixNetFxExtension<
Non posso salvare {0}:\n{1}\n\nAssicurati che il file sia scrivibile.
- C'erano dei file di riorsa nel progetto.
-SharpDevelop 2 compila le risorse differentemente: il nome della risorsa non è solo il nome del file, ma è prefissato con il nome del namespace radice e della cartella.
+ C'erano dei file di risorsa nel progetto.
+SharpDevelop 2 compila le risorse differentemente: il nome della risorsa non è solo il nome del file, ma è prefissato con il nome del namespace radice e della cartella.
+I files di risorsa sono stati di conseguenza rinominati/spostati.
I seguenti files non possono essere rinominati/spostati automaticamente:
@@ -6664,10 +6749,13 @@ SharpDevelop 2 compila le risorse differentemente: il nome della risorsa non è
Impostazioni base
- Tipo di Report
+ Tipo di Report :
+
+
+ Impostazioni di base del report
- Nome File
+ Nome File :
Unità di misura Grafici
@@ -6685,10 +6773,10 @@ SharpDevelop 2 compila le risorse differentemente: il nome della risorsa non è
Inserisce Dato
- Nome del Report
+ Nome del Report :
- Tipo di Report
+ Tipo di Report :
Seleziona Colonne di Gruppo
@@ -6724,7 +6812,7 @@ SharpDevelop 2 compila le risorse differentemente: il nome della risorsa non è
Valori Disponibili
- Nessun progetto selezionato, prego inserire i nomi dei fils
+ Nessun progetto selezionato, prego inserire i nomi dei files
Classi nel progetto selezionato
@@ -7430,7 +7518,7 @@ SharpDevelop 2 compila le risorse differentemente: il nome della risorsa non è
Ferma il processo corrente e termina il debug.
- Attiva/Disattiva BreakPoint
+ Commuta Breakpoint
&Modifica
@@ -7460,10 +7548,10 @@ SharpDevelop 2 compila le risorse differentemente: il nome della risorsa non è
Mostra solo le &definizioni
- Mostra &tutte le Cartelle
+ Commuta &tutte le Cartelle
- Mo&stra cartella
+ Commu&ta cartella
&Formato
@@ -7649,7 +7737,7 @@ SharpDevelop 2 compila le risorse differentemente: il nome della risorsa non è
&Mezzo
- &Centro nella Form
+ &Centra nella Form
&Orizzontalmente
@@ -7676,7 +7764,7 @@ SharpDevelop 2 compila le risorse differentemente: il nome della risorsa non è
Rendi &Uguali
- Porta in &Sfondo
+ Porta su &Sfondo
A&llinea Icone
@@ -7715,7 +7803,7 @@ SharpDevelop 2 compila le risorse differentemente: il nome della risorsa non è
&Proprietà
- Mostra ordine $tabulazioni
+ Mostra ordine &tabulazioni
Spaziatura &Verticale
@@ -7730,7 +7818,7 @@ SharpDevelop 2 compila le risorse differentemente: il nome della risorsa non è
&Incrementa
- Rendi &Uguali
+ Rendi &Uguale
&Aiuto
@@ -7790,7 +7878,7 @@ SharpDevelop 2 compila le risorse differentemente: il nome della risorsa non è
Compila il progetto o il buffer corrente (quando nessun progetto è aperto)(salva automaticamente)
- Devi interrompere il debugper generare il progetto.
+ Devi interrompere il debugger per generare il progetto.
Vuoi fermare il debug?
@@ -7800,16 +7888,16 @@ Vuoi fermare il debug?
&Esegui
- Esecuzione del compilato (ricompilazione)
+ Esecuzione del compilato (ricompila)
&Cerca
- &Cancella Tutti i Segnalibri
+ &Cancella Tutti i Segnalibro
- Cancella tutti i segnalibri nel buffer corrente
+ Cancella tutti i segnalibro nel buffer corrente
&Cerca...
@@ -7824,7 +7912,7 @@ Vuoi fermare il debug?
&Vai a...
- Vai alla parentesi graffa
+ Vai alla parentesi graffa corrispondente
Ricerca Incrementale
@@ -7851,7 +7939,7 @@ Vuoi fermare il debug?
Cerca per Problemi...
- A&ttiva segnalibro
+ Commu&ta segnalibro
Mette/toglie segnalibro alla linea corrente
@@ -7863,11 +7951,11 @@ Vuoi fermare il debug?
&Converti il codice in
- Digitare argomenti per il tool:
+ Digitare argomenti per lo strumento:
Esecuzione programma esterno fallita.
-Errore durante esecuzione:
+Errore durante l'avvio:
Interrotto con il codice:
@@ -7906,7 +7994,7 @@ Errore durante esecuzione:
Finestre
- File
+ Files
Mo&stra pagina iniziale
@@ -7945,7 +8033,7 @@ Errore durante esecuzione:
Opzioni dell'Editor
- Commenta la regione
+ Commenta la zona
&Copia
@@ -7969,6 +8057,6 @@ Errore durante esecuzione:
Riformatta
- Rimuovi commento regione
+ Rimuovi commento dalla zona
\ No newline at end of file
diff --git a/data/resources/StringResources.resx b/data/resources/StringResources.resx
index 49d65c80753..d9f7fd02b78 100644
--- a/data/resources/StringResources.resx
+++ b/data/resources/StringResources.resx
@@ -8276,7 +8276,7 @@ a line break
Win
-
+
Clear console
@@ -8377,4 +8377,73 @@ Press Esc to cancel this operation.
Press "Alt" to enter Container
+
+ Assembly Info
+
+
+ Assembly version:
+
+
+ Company:
+
+
+ Copyright:
+
+
+ Description:
+
+
+ File version:
+
+
+ GUID:
+
+
+ Make assembly COM-visible
+
+
+ Neutral language:
+
+
+ Product:
+
+
+ Title:
+
+
+ Trademark:
+
+
+ Assembly info file was not found. Please ensure that the project contains assembly info file.
+
+
+ CLS compliant
+
+
+ Default alias:
+
+
+ Informational version:
+
+
+ JIT optimization
+
+
+ JIT tracking
+
+
+ New GUID
+
+
+ One of the assembly info values is incorrect.
+
+
+ None
+
+
+ WPF Editor
+
+
+ Enable App.xaml parsing
+
\ No newline at end of file
diff --git a/data/resources/StringResources.ru.resx b/data/resources/StringResources.ru.resx
index a56686349cd..d2ff9e4dae9 100644
--- a/data/resources/StringResources.ru.resx
+++ b/data/resources/StringResources.ru.resx
@@ -405,9 +405,6 @@
Показать диаграмму классов
-
- Очистить консоль
-
Удалить историю
@@ -454,7 +451,7 @@
Не удалось запустить Help Library Manager, так как каталог справки не выбран/не установлен. Пожалуйста, проверьте настройки (Инструменты -> Параметры -> Инструменты -> Microsoft Help Viewer).
- Не удалось найти Help Library Manager. Для использования контекстной помощи в SharpDeveloper, необходимо скачать и установить Microsoft's Windows SDK 7.1.
+ Не удалось найти Help Library Manager. Для использования контекстной помощи в SharpDevelop, необходимо скачать и установить Microsoft Windows SDK 7.1.
Не удалось найти Help Library Manager. Пожалуйста, удостоверьтесь в том, что он был корректно установлен.
@@ -1032,7 +1029,7 @@
Шаблон имени для обработчика события:
- Выберите цвета, которые должны использоваться в XAML подсветке:
+ Выберите цвета, которые должны использоваться в подсветке XAML:
Подсветка
@@ -1834,7 +1831,7 @@
Выберите директорию поиска
- проект целеком
+ проект целиком
решение целиком
@@ -2589,6 +2586,69 @@
Файл ресурсов Win32:
+
+ Данные сборки
+
+
+ Файл AssemblyInfo.cs не найден. Убедитесь в том, что проект содержит файл с данными сборки.
+
+
+ Версия сборки:
+
+
+ Соответствие спецификации CLS
+
+
+ Компания:
+
+
+ Копирайт:
+
+
+ Псевдоним:
+
+
+ Описание:
+
+
+ Версия файла:
+
+
+ GUID:
+
+
+ Одно из значений данных сборки указано неверно.
+
+
+ Информативная версия:
+
+
+ JIT-оптимизация
+
+
+ JIT-отслеживание
+
+
+ Сборка видима для COM
+
+
+ Нейтральный язык:
+
+
+ Новый GUID
+
+
+ не указано
+
+
+ Продукт:
+
+
+ Наименование:
+
+
+ Торговая марка:
+
Дополнительно
@@ -2815,7 +2875,7 @@
Выберите строгое имя для файла ключа:
- Подписывание ВОдинЩелчок
+ Подпись ClickOnce
Подпись ClickOnce приложения пока не реализована.
@@ -3187,7 +3247,7 @@
Строка
- Перерисовать
+ Обновить
Предупреждение
@@ -3289,7 +3349,7 @@
Найти неиспользуемые ключи ресурсов
- Ключ
+ Клавиатура
Ключ реестра:
@@ -3763,7 +3823,7 @@
Результаты преобразования
- ${ErrorCount} ошибка(ок) преобразования ${FileName}:
+ Количество ошибок преобразования ${FileName}: ${ErrorCount}
Сначала исправьте ошибки в исходном коде (только правильный исходный код может быть преобразован).
@@ -3772,7 +3832,7 @@
${FileName} не преобразован:
- При разборе найдено ${ErrorCount} ошибок(ки)
+ Количество ошибок при разборе: ${ErrorCount}
Преобразователь проекта SharpDevelop
@@ -3807,6 +3867,12 @@
Невозможно создать PrintDocument
+
+ Файл, защищённый от записи, уже существует в данном каталоге.
+
+
+ Для проекта данного типа не установлен обработчик.
+
Файл проекта не найден.
@@ -4055,19 +4121,19 @@
Добавлять комментарий "TODO" в обработчики новых событий
- Связывание свойства (быстрее для небольшого числа свойств, но значительно хуже для большого числа свойств)
+ Присваивание значений (подходит для небольшого количества свойств)
- Локализационная модель по умолчанию
+ Модель локализации по умолчанию
- Разрешить локализационной модели существование неизменяемых форм
+ Не менять модель локализации для существующих форм
Модель локализации
- Свойство отражения (медленнее во время выполнения для нескольких свойств, но значительно лучше при большом числе свойств, особенно со многими значениями по умолчанию)
+ Рефлексия (подходит для большого числа свойств, особенно со значениями по умолчанию)
Дизайнер форм
@@ -4443,22 +4509,22 @@
Покрытие кода
- Создать выходной XML файл
+ Создавать XML-файл с результатами
- Пометить каждый тест
+ Отмечать каждый тест
- Теневая копия
+ Теневое копирование сборок
- Показать логотип
+ Показывать логотип
- Показать прогресс
+ Показывать прогресс
- Запустить тесты в отдельном потоке
+ Запускать тесты в отдельном потоке
Запустить все тесты с покрытием кода
@@ -4933,19 +4999,19 @@ Microsoft.Tools.WindowsInstallerXml.Extensions.NetFxCompiler, WixNetFxExtension<
Вывод XSLT
- Не удалось найти ILSpy в указанном месете, или у SharpDevelop не достаточно прав для доступа к нему.
+ Не удалось найти ILSpy в указанном месте, или у SharpDevelop недостаточно прав для доступа к нему.
Путь к ILSpy не указан.
- Открыть IlSpy
+ Открыть ILSpy
- Эта возможность требует наличия ILSpy. Если у вас он еще не установлен, вы можете бесплатно скачать его здесь:
+ Требуется наличие ILSpy. Если у Вас его ещё нет, Вы можете бесплатно скачать его здесь:
- Полный путь к IlSpy.exe
+ Полный путь к ILSpy.exe
Изменить путь к ILSpy
@@ -4999,7 +5065,7 @@ Microsoft.Tools.WindowsInstallerXml.Extensions.NetFxCompiler, WixNetFxExtension<
Выполнение главной компиляции...
- Сборка завершена: ${Errors} ошибок, ${Warnings} предупреждений
+ Сборка завершена -- ошибок: ${Errors}, предупреждений: ${Warnings}
Пропущено ${Name} (со стороны SharpDevelop не было изменений)
@@ -5119,7 +5185,7 @@ Microsoft.Tools.WindowsInstallerXml.Extensions.NetFxCompiler, WixNetFxExtension<
Рабочая область {0}
- Окно классов
+ Классы
Очистить все
@@ -5266,7 +5332,7 @@ Microsoft.Tools.WindowsInstallerXml.Extensions.NetFxCompiler, WixNetFxExtension<
Показать подробности об Исключении
- Прервать
+ Остановить
Исключение
@@ -5431,13 +5497,13 @@ Microsoft.Tools.WindowsInstallerXml.Extensions.NetFxCompiler, WixNetFxExtension<
Невозможно сделать шаг, так как отсутствует активная выбранная функция
- Вы не можете переключиться на поток, с недоступным фреймом исполнения.
+ Вы не можете переключиться на поток с недоступным фреймом исполнения.
Вы не можете переключать потоки пока включён отладчик.
- Вы не можете переключиться на поток в декомпилированном коде, без включения декомпилятора.
+ Вы не можете переключиться на поток в декомпилированном коде без включения декомпилятора.
Заморозить
@@ -5494,7 +5560,7 @@ Microsoft.Tools.WindowsInstallerXml.Extensions.NetFxCompiler, WixNetFxExtension<
Ошибки
- ${TaskService.Errors} ошибок
+ Количество ошибок: ${TaskService.Errors}
Включить отображение ошибок в списке.
@@ -6028,7 +6094,7 @@ Microsoft.Tools.WindowsInstallerXml.Extensions.NetFxCompiler, WixNetFxExtension<
Нецифровой символ
- Не пробельный символ
+ Непробельный символ
Небуквенный символ
@@ -6181,7 +6247,7 @@ Microsoft.Tools.WindowsInstallerXml.Extensions.NetFxCompiler, WixNetFxExtension<
Файлы проектов Visual Basic
- XML файлы (*.xml)
+ XML-файлы (*.xml)
Файлы схем XML (*.xsd)
@@ -6217,7 +6283,7 @@ Microsoft.Tools.WindowsInstallerXml.Extensions.NetFxCompiler, WixNetFxExtension<
Элемент в позиции каретки не может быть переименован.
- Классы получаются из ${Name}
+ Классы, наследуемые от ${Name}
Вставить из буфера обмена...
@@ -6256,13 +6322,13 @@ Microsoft.Tools.WindowsInstallerXml.Extensions.NetFxCompiler, WixNetFxExtension<
Найти базовые классы
- Найти базовый
+ Найти базовые символы
- Найти полученные классы
+ Найти наследуемые классы
- Найти полученные символы
+ Найти наследуемые символы
Поиск ссылок...
@@ -7025,10 +7091,10 @@ SharpDevelop 2 иначе компилировал ресурсы: имя рес
Файл App.Config
- Пустой XML файл
+ Пустой XML-файл
- Создаёт пустой XML файл.
+ Создаёт пустой XML-файл.
Создать пустую форму XML
@@ -7295,7 +7361,7 @@ SharpDevelop 2 иначе компилировал ресурсы: имя рес
Удалить все точки останова
- Запустить последний билд
+ Запустить последнюю сборку
Запустить без отладчика
@@ -7517,7 +7583,7 @@ SharpDevelop 2 иначе компилировал ресурсы: имя рес
Сохранить как...
- Сохранить с декодированием...
+ Сохранить с кодировкой...
Формат
@@ -7777,7 +7843,7 @@ SharpDevelop 2 иначе компилировал ресурсы: имя рес
Вставить цвет...
- Вставьте новый GUID
+ Вставить новый GUID
Параметры...
diff --git a/data/resources/StringResources.tr.resx b/data/resources/StringResources.tr.resx
index e6ef635929b..bc6416fde2b 100644
--- a/data/resources/StringResources.tr.resx
+++ b/data/resources/StringResources.tr.resx
@@ -408,6 +408,9 @@ Eklenti kaldırıldıktan sonra çalışması durabilir! Devam etmek istediğini
Sınıf Şemasını Göster
+
+ Geçmişi sil
+
Bu işlem için TortoiseGit yüklü olmalıdır.
@@ -525,6 +528,21 @@ Eklenti kaldırıldıktan sonra çalışması durabilir! Devam etmek istediğini
Başlık
+
+ Paket yönetim konsolu
+
+
+ Paketleri yönet...
+
+
+ Paketleri geri yükle
+
+
+ Paket kaynakları
+
+
+ Paket yönetimi
+
Sonuç
@@ -1573,6 +1591,9 @@ Bir ActiveX / COM nesnesi oluşturmak / değiştirmek için, nesne ağacı veya
Parametreli anonim yöntem yerleştir.
+
+ Kolonlar:
+
SharpDevelop Hakkında
@@ -1594,6 +1615,12 @@ Bir ActiveX / COM nesnesi oluşturmak / değiştirmek için, nesne ağacı veya
Sürüm
+
+ İşlemler:
+
+
+ Servisler:
+
son dosyalar
@@ -1680,6 +1707,9 @@ Satır numaraları, sınıf yada dosya adları girebilirsiniz.
İtalik
+
+ Altı çizili
+
Renk vurgulamayı dışa aktar
@@ -1984,6 +2014,12 @@ Yeni dosyayı, ${CurrentProjectName} projesine eklemek istiyor musunuz?
Önbelleği temizle
+
+ Basılı karaktere bağlı kalarak seçili kod tamamlamayı ekle:
+
+
+ Sadece <Tab> veya <Enter> tuşuna basarak seçili kod tamamlama öğersi ekle.
+
Bir karakter eklendiğinde tamamlama listesini göster
@@ -2005,6 +2041,9 @@ Yeni dosyayı, ${CurrentProjectName} projesine eklemek istiyor musunuz?
Kaydet
+
+ İpucu ayarları
+
Araçipuçları linkler gitmeli
@@ -2068,12 +2107,24 @@ Yeni dosyayı, ${CurrentProjectName} projesine eklemek istiyor musunuz?
Yürütmenin ilk satırında ara ver.
+
+ İstisnaları seçiniz
+
Tekrar derlemeyi etkinleştir
Düzenle ve Devam eti Etkinleştir
+
+ Tam istisna adı
+
+
+ Hata ayıklayıcıyı duraklat
+
+
+ Hata ayıklayıcının durmasını istediğiniz istisna tiplerini seçiniz
+
İstisnalar
@@ -2467,6 +2518,9 @@ Yeni dosyayı, ${CurrentProjectName} projesine eklemek istiyor musunuz?
Derlemenin oluşturulacağı dizini seçin.
+
+ Servis referansları
+
Vurgu
@@ -2662,6 +2716,12 @@ Yeni dosyayı, ${CurrentProjectName} projesine eklemek istiyor musunuz?
Yapılandırmayı değiştirmek mevcut değerleri kaydeder. Devam edilsin mi?
+
+ Dosya isimleri:
+
+
+ Derledikten sonra çalıştır.
+
Hata Ayıkla
@@ -2839,6 +2899,9 @@ Ayrıca bir ayarı proje dosyası yerine kullanıcı dosyası(.user-file) içind
Mevcut sınıfı kullan:
+
+ Mümkünse hataları otomatik olarak düzelt
+
.NET Derleme Tarayıcısı
@@ -3091,12 +3154,27 @@ Ayrıca bir ayarı proje dosyası yerine kullanıcı dosyası(.user-file) içind
Değiştir
+
+ Yeniden başlat
+
Yeniden Dene
Hepsini Seç
+
+ Alt
+
+
+ Ctrl
+
+
+ Shift
+
+
+ Win
+
Küçük Simgeler
@@ -3633,6 +3711,9 @@ Lütfen SharpDevelop Seçeneklerinden NAnt çalıştırılabilir dosyasının ye
'{0}' türü bulunamıyor. Bir derleme bilgisi eksik olabilir mi?
+
+ Kursorün bulunduğu pozisyonda tip tanımı veya tip üyesi bulunamadı
+
Seçilen eleman sınıfsız veya geçersiz bir üye, bu yüzden türetilmemiş semboller gösterilebilir.
@@ -4936,6 +5017,9 @@ Microsoft.Tools.WindowsInstallerXml.Extensions.NetFXCompiler, WixNetFxExtension<
Derleme başarılı oldu.
+
+ ${Name} projesinin derlenmesi desteklenmemektedir.
+
Derleme başladı.
@@ -5197,6 +5281,9 @@ Microsoft.Tools.WindowsInstallerXml.Extensions.NetFXCompiler, WixNetFxExtension<
Kesme
+
+ ${ExceptionName} öngörülen istisna durumunda duraklat
+
Devam
@@ -5524,6 +5611,9 @@ Microsoft.Tools.WindowsInstallerXml.Extensions.NetFXCompiler, WixNetFxExtension<
Hata Ayıkla
+
+ Metin çok uzun olduğundan kısaltılmıştır.
+
Projeler
@@ -5587,6 +5677,24 @@ Microsoft.Tools.WindowsInstallerXml.Extensions.NetFXCompiler, WixNetFxExtension<
Görev Listesi
+
+ Açık olan tüm dosyalarda
+
+
+ Sınıf/Modül
+
+
+ Dosya
+
+
+ Ad alanı
+
+
+ Proje
+
+
+ Çözüm
+
Araçlar
@@ -5998,15 +6106,27 @@ Microsoft.Tools.WindowsInstallerXml.Extensions.NetFXCompiler, WixNetFxExtension<
Resmi güncelle...
+
+ İmleci güncelle ...
+
+
+ İkonu güncelle ...
+
Seçili kaynağı silmek istediğinizden emin misiniz?
Kaynağı sil
+
+ Filtre:
+
Kaynak yüklenemiyor
+
+ Kaynak dosyadan {0} yüklenemedi.
+
Hata: Kaynak kodu üreteci "{0}" kaynak dosyasını atladı, çünkü oluşturulan sınıf mevcut sınıf "{1}" ile çakışıyor.
@@ -6019,6 +6139,9 @@ Microsoft.Tools.WindowsInstallerXml.Extensions.NetFXCompiler, WixNetFxExtension<
İçerik
+
+ Boolean giriş & ekle
+
Dosyaları ekle...
@@ -6139,6 +6262,9 @@ Microsoft.Tools.WindowsInstallerXml.Extensions.NetFXCompiler, WixNetFxExtension<
${Name} Temel sınıfları
+
+ ${Name} temel üyesidir
+
Bu işlem yerine getirilemez çünkü kaynak kodlarınızda hata var:
@@ -6187,6 +6313,9 @@ Microsoft.Tools.WindowsInstallerXml.Extensions.NetFXCompiler, WixNetFxExtension<
Temel sınıfları bul
+
+ Temel semboleri bul
+
Türetilmiş sınıfları bul
@@ -6491,6 +6620,9 @@ Kaynak dosyaları buna göre yeniden adlandırıldı/taşındı.
Rapor Türü
+
+ Temel rapor ayarları
+
Dosya Adı
@@ -6530,6 +6662,9 @@ Kaynak dosyaları buna göre yeniden adlandırıldı/taşındı.
Tablo Düzeni
+
+ Sayfa düzeni
+
Veri Modeli Çek
@@ -6545,9 +6680,18 @@ Kaynak dosyaları buna göre yeniden adlandırıldı/taşındı.
Mevcut Alanlar
+
+ Proje seçili değildir,lütfen alan adlarını giriniz
+
+
+ Seçili projedeki sınıflar
+
Sorgu Sonucunu Göster
+
+ SharpReport sihirbazına hoşgeldiniz
+
Sekme Ekle
@@ -7658,6 +7802,9 @@ Kaynak dosyaları buna göre yeniden adlandırıldı/taşındı.
Artan Aramayı Geri Al
+
+ Sorunları araştır...
+
Yer imlerini ters çevir
@@ -7773,6 +7920,9 @@ Başlatma hatası:
Yeniden Düzenleme
+
+ Tekrar formatla
+
Bölgeyi yorumlama
diff --git a/data/templates/file/CSharp/CSharp.Exception.xft b/data/templates/file/CSharp/CSharp.Exception.xft
index ac825703d83..fdaa09aed9e 100644
--- a/data/templates/file/CSharp/CSharp.Exception.xft
+++ b/data/templates/file/CSharp/CSharp.Exception.xft
@@ -28,7 +28,7 @@ using System.Runtime.Serialization;
namespace ${StandardNamespace}
{
///
- /// Desctiption of ${ClassName}.
+ /// Description of ${ClassName}.
///
public class ${ClassName} : Exception, ISerializable
{
diff --git a/data/templates/file/VB/VB.Exception.xft b/data/templates/file/VB/VB.Exception.xft
index 77c92f1eca5..8bced5fe62f 100644
--- a/data/templates/file/VB/VB.Exception.xft
+++ b/data/templates/file/VB/VB.Exception.xft
@@ -27,7 +27,7 @@ Imports System.Runtime.Serialization
Namespace ${StandardNamespace}
'''
- ''' Desctiption of ${ClassName}.
+ ''' Description of ${ClassName}.
'''
Public Class ${ClassName}
Inherits Exception
diff --git a/debugbuild.bat b/debugbuild.bat
index 7d4ad2a1ad2..fbc59e4a417 100755
--- a/debugbuild.bat
+++ b/debugbuild.bat
@@ -1,5 +1,8 @@
@set PROGFILES=%PROGRAMFILES%
@if exist "%PROGRAMFILES(x86)%" set PROGFILES=%PROGRAMFILES(x86)%
+@if not exist "src\Libraries\AvalonEdit\ICSharpCode.AvalonEdit.sln" (
+ git submodule update --init || exit /b 1
+)
"%PROGFILES%\MSBuild\12.0\Bin\msbuild" /m SharpDevelop.sln /p:Configuration=Debug "/p:Platform=Any CPU" %*
@IF %ERRORLEVEL% NEQ 0 GOTO err
@exit /B 0
diff --git a/doc/Dependencies.html b/doc/Dependencies.html
index 6a6fda7484e..c1e068446f4 100644
--- a/doc/Dependencies.html
+++ b/doc/Dependencies.html
@@ -33,6 +33,9 @@
SHFB for documentation generation support.
+
+ Visual C++ 2010 Runtime for TypeScript support.
+
WiX for building installers.
diff --git a/doc/copyright.txt b/doc/copyright.txt
index 0a3757d1760..1bb559e91b3 100644
--- a/doc/copyright.txt
+++ b/doc/copyright.txt
@@ -1,4 +1,4 @@
-Copyright 2002-2014 by
+Copyright 2002-2016 by
AlphaSierraPapa, Christoph Wille
Vordernberger Strasse 27/8
diff --git a/doc/license.txt b/doc/license.txt
index 90c31d266e0..ce2bd59976a 100644
--- a/doc/license.txt
+++ b/doc/license.txt
@@ -1,6 +1,6 @@
The MIT License (MIT)
-Copyright (c) 2002-2014 AlphaSierraPapa
+Copyright (c) 2002-2016 AlphaSierraPapa
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
diff --git a/doc/readme.rtf b/doc/readme.rtf
index 1c5793a1c8f..c40ae46fcfa 100644
--- a/doc/readme.rtf
+++ b/doc/readme.rtf
@@ -3,13 +3,13 @@
{\flomajor\f31500\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\fdbmajor\f31501\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}
{\fhimajor\f31502\fbidi \froman\fcharset0\fprq2{\*\panose 02040503050406030204}Cambria;}{\fbimajor\f31503\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}
{\flominor\f31504\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\fdbminor\f31505\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}
-{\fhiminor\f31506\fbidi \fswiss\fcharset0\fprq2{\*\panose 020f0502020204030204}Calibri;}{\fbiminor\f31507\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\f302\fbidi \froman\fcharset238\fprq2 Times New Roman CE;}
-{\f303\fbidi \froman\fcharset204\fprq2 Times New Roman Cyr;}{\f305\fbidi \froman\fcharset161\fprq2 Times New Roman Greek;}{\f306\fbidi \froman\fcharset162\fprq2 Times New Roman Tur;}{\f307\fbidi \froman\fcharset177\fprq2 Times New Roman (Hebrew);}
-{\f308\fbidi \froman\fcharset178\fprq2 Times New Roman (Arabic);}{\f309\fbidi \froman\fcharset186\fprq2 Times New Roman Baltic;}{\f310\fbidi \froman\fcharset163\fprq2 Times New Roman (Vietnamese);}{\f312\fbidi \fswiss\fcharset238\fprq2 Arial CE;}
-{\f313\fbidi \fswiss\fcharset204\fprq2 Arial Cyr;}{\f315\fbidi \fswiss\fcharset161\fprq2 Arial Greek;}{\f316\fbidi \fswiss\fcharset162\fprq2 Arial Tur;}{\f317\fbidi \fswiss\fcharset177\fprq2 Arial (Hebrew);}
-{\f318\fbidi \fswiss\fcharset178\fprq2 Arial (Arabic);}{\f319\fbidi \fswiss\fcharset186\fprq2 Arial Baltic;}{\f320\fbidi \fswiss\fcharset163\fprq2 Arial (Vietnamese);}{\f312\fbidi \fswiss\fcharset238\fprq2 Arial CE;}
-{\f313\fbidi \fswiss\fcharset204\fprq2 Arial Cyr;}{\f315\fbidi \fswiss\fcharset161\fprq2 Arial Greek;}{\f316\fbidi \fswiss\fcharset162\fprq2 Arial Tur;}{\f317\fbidi \fswiss\fcharset177\fprq2 Arial (Hebrew);}
-{\f318\fbidi \fswiss\fcharset178\fprq2 Arial (Arabic);}{\f319\fbidi \fswiss\fcharset186\fprq2 Arial Baltic;}{\f320\fbidi \fswiss\fcharset163\fprq2 Arial (Vietnamese);}{\flomajor\f31508\fbidi \froman\fcharset238\fprq2 Times New Roman CE;}
+{\fhiminor\f31506\fbidi \fswiss\fcharset0\fprq2{\*\panose 020f0502020204030204}Calibri;}{\fbiminor\f31507\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\f346\fbidi \froman\fcharset238\fprq2 Times New Roman CE;}
+{\f347\fbidi \froman\fcharset204\fprq2 Times New Roman Cyr;}{\f349\fbidi \froman\fcharset161\fprq2 Times New Roman Greek;}{\f350\fbidi \froman\fcharset162\fprq2 Times New Roman Tur;}{\f351\fbidi \froman\fcharset177\fprq2 Times New Roman (Hebrew);}
+{\f352\fbidi \froman\fcharset178\fprq2 Times New Roman (Arabic);}{\f353\fbidi \froman\fcharset186\fprq2 Times New Roman Baltic;}{\f354\fbidi \froman\fcharset163\fprq2 Times New Roman (Vietnamese);}{\f356\fbidi \fswiss\fcharset238\fprq2 Arial CE;}
+{\f357\fbidi \fswiss\fcharset204\fprq2 Arial Cyr;}{\f359\fbidi \fswiss\fcharset161\fprq2 Arial Greek;}{\f360\fbidi \fswiss\fcharset162\fprq2 Arial Tur;}{\f361\fbidi \fswiss\fcharset177\fprq2 Arial (Hebrew);}
+{\f362\fbidi \fswiss\fcharset178\fprq2 Arial (Arabic);}{\f363\fbidi \fswiss\fcharset186\fprq2 Arial Baltic;}{\f364\fbidi \fswiss\fcharset163\fprq2 Arial (Vietnamese);}{\f356\fbidi \fswiss\fcharset238\fprq2 Arial CE;}
+{\f357\fbidi \fswiss\fcharset204\fprq2 Arial Cyr;}{\f359\fbidi \fswiss\fcharset161\fprq2 Arial Greek;}{\f360\fbidi \fswiss\fcharset162\fprq2 Arial Tur;}{\f361\fbidi \fswiss\fcharset177\fprq2 Arial (Hebrew);}
+{\f362\fbidi \fswiss\fcharset178\fprq2 Arial (Arabic);}{\f363\fbidi \fswiss\fcharset186\fprq2 Arial Baltic;}{\f364\fbidi \fswiss\fcharset163\fprq2 Arial (Vietnamese);}{\flomajor\f31508\fbidi \froman\fcharset238\fprq2 Times New Roman CE;}
{\flomajor\f31509\fbidi \froman\fcharset204\fprq2 Times New Roman Cyr;}{\flomajor\f31511\fbidi \froman\fcharset161\fprq2 Times New Roman Greek;}{\flomajor\f31512\fbidi \froman\fcharset162\fprq2 Times New Roman Tur;}
{\flomajor\f31513\fbidi \froman\fcharset177\fprq2 Times New Roman (Hebrew);}{\flomajor\f31514\fbidi \froman\fcharset178\fprq2 Times New Roman (Arabic);}{\flomajor\f31515\fbidi \froman\fcharset186\fprq2 Times New Roman Baltic;}
{\flomajor\f31516\fbidi \froman\fcharset163\fprq2 Times New Roman (Vietnamese);}{\fdbmajor\f31518\fbidi \froman\fcharset238\fprq2 Times New Roman CE;}{\fdbmajor\f31519\fbidi \froman\fcharset204\fprq2 Times New Roman Cyr;}
@@ -33,12 +33,12 @@
\red255\green255\blue255;\red0\green0\blue128;\red0\green128\blue128;\red0\green128\blue0;\red128\green0\blue128;\red128\green0\blue0;\red128\green128\blue0;\red128\green128\blue128;\red192\green192\blue192;}{\*\defchp
\fs22\loch\af31506\hich\af31506\dbch\af31505 }{\*\defpap \ql \li0\ri0\sa200\sl276\slmult1\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0 }\noqfpromote {\stylesheet{\ql \li0\ri0\nowidctlpar\wrapdefault\faauto\rin0\lin0\itap0
\rtlch\fcs1 \af0\afs24\alang1025 \ltrch\fcs0 \fs24\lang1033\langfe1042\loch\f40\hich\af40\dbch\af31505\cgrid\langnp1033\langfenp1042 \snext0 \sqformat \spriority0 Normal;}{\s1\ql \li0\ri0\nowidctlpar\wrapdefault\faauto\outlinelevel0\rin0\lin0\itap0
-\rtlch\fcs1 \af0\afs24\alang1025 \ltrch\fcs0 \fs24\lang1033\langfe1042\loch\f40\hich\af40\dbch\af31505\cgrid\langnp1033\langfenp1042 \sbasedon0 \snext0 \slink16 \sqformat heading 1;}{\*\cs10 \additive \ssemihidden \sunhideused \spriority1
+\rtlch\fcs1 \af0\afs24\alang1025 \ltrch\fcs0 \fs24\lang1033\langfe1042\loch\f40\hich\af40\dbch\af31505\cgrid\langnp1033\langfenp1042 \sbasedon0 \snext0 \slink15 \sqformat heading 1;}{\*\cs10 \additive \ssemihidden \sunhideused \spriority1
Default Paragraph Font;}{\*\ts11\tsrowd\trftsWidthB3\trpaddl108\trpaddr108\trpaddfl3\trpaddft3\trpaddfb3\trpaddfr3\trcbpat1\trcfpat1\tblind0\tblindtype3\tsvertalt\tsbrdrt\tsbrdrl\tsbrdrb\tsbrdrr\tsbrdrdgl\tsbrdrdgr\tsbrdrh\tsbrdrv
\ql \li0\ri0\sa200\sl276\slmult1\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0 \rtlch\fcs1 \af0\afs22\alang1025 \ltrch\fcs0 \fs22\lang1033\langfe1033\loch\f31506\hich\af31506\dbch\af31505\cgrid\langnp1033\langfenp1033
-\snext11 \ssemihidden \sunhideused Normal Table;}{\*\cs16 \additive \rtlch\fcs1 \ab\af0\afs32 \ltrch\fcs0 \b\fs32\lang1033\langfe0\kerning32\loch\f31502\hich\af31502\dbch\af31501\langnp1033\langfenp0 \sbasedon10 \slink1 \slocked \spriority9
-Heading 1 Char;}}{\*\rsidtbl \rsid1663866\rsid8408875\rsid13520904}{\mmathPr\mmathFont34\mbrkBin0\mbrkBinSub0\msmallFrac0\mdispDef1\mlMargin0\mrMargin0\mdefJc1\mwrapIndent1440\mintLim0\mnaryLim1}{\info{\operator Christoph Wille}
-{\creatim\yr2012\mo2\dy4\hr13\min32}{\revtim\yr2014\mo1\dy26\hr16\min39}{\version3}{\edmins5}{\nofpages3}{\nofwords360}{\nofchars2053}{\nofcharsws2409}{\vern57435}}{\*\xmlnstbl {\xmlns1 http://schemas.microsoft.com/office/word/2003/wordml}}
+\snext11 \ssemihidden \sunhideused Normal Table;}{\*\cs15 \additive \rtlch\fcs1 \ab\af0\afs32 \ltrch\fcs0 \b\fs32\lang1033\langfe0\kerning32\loch\f31502\hich\af31502\dbch\af31501\langnp1033\langfenp0 \sbasedon10 \slink1 \slocked \spriority9
+Heading 1 Char;}}{\*\rsidtbl \rsid1663866\rsid8408875\rsid13520904\rsid16197713}{\mmathPr\mmathFont34\mbrkBin0\mbrkBinSub0\msmallFrac0\mdispDef1\mlMargin0\mrMargin0\mdefJc1\mwrapIndent1440\mintLim0\mnaryLim1}{\info{\operator Christoph Wille}
+{\creatim\yr2012\mo2\dy4\hr13\min32}{\revtim\yr2016\mo4\dy13\hr8\min54}{\version4}{\edmins6}{\nofpages3}{\nofwords360}{\nofchars2053}{\nofcharsws2409}{\vern7}}{\*\xmlnstbl {\xmlns1 http://schemas.microsoft.com/office/word/2003/wordml}}
\paperw12240\paperh15840\margl1417\margr1417\margt1417\margb1134\gutter0\ltrsect
\deftab1250\widowctrl\ftnbj\aenddoc\hyphhotz425\trackmoves0\trackformatting1\donotembedsysfont0\relyonvml0\donotembedlingdata1\grfdocevents0\validatexml0\showplaceholdtext0\ignoremixedcontent0\saveinvalidxml0\showxmlerrors0\horzdoc\dghspace120\dgvspace120
\dghorigin1701\dgvorigin1984\dghshow0\dgvshow3\jcompress\viewkind1\viewscale100\rsidroot8408875 \fet0{\*\wgrffmtfilter 2450}\ilfomacatclnup0\ltrpar \sectd \ltrsect\linex0\sectdefaultcl\sftnbj {\*\pnseclvl1\pnucrm\pnstart1\pnindent720\pnhang {\pntxta .}}
@@ -46,7 +46,8 @@ Heading 1 Char;}}{\*\rsidtbl \rsid1663866\rsid8408875\rsid13520904}{\mmathPr\mma
{\*\pnseclvl6\pnlcltr\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl7\pnlcrm\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl8\pnlcltr\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl9
\pnlcrm\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}\pard\plain \ltrpar\qc \li0\ri0\nowidctlpar\wrapdefault\faauto\rin0\lin0\itap0 \rtlch\fcs1 \af0\afs24\alang1025 \ltrch\fcs0
\fs24\lang1033\langfe1042\loch\af40\hich\af40\dbch\af31505\cgrid\langnp1033\langfenp1042 {\rtlch\fcs1 \ab\af40\afs120 \ltrch\fcs0 \b\fs120\cf1\lang3079\langfe1042\langnp3079\insrsid13520904 \hich\af40\dbch\af31505\loch\f40 SharpDevelop
-\par }{\rtlch\fcs1 \ab\af40\afs120 \ltrch\fcs0 \b\fs120\cf1\lang3079\langfe1042\langnp3079\insrsid1663866 \hich\af40\dbch\af31505\loch\f40 5.0}{\rtlch\fcs1 \ab\af0\afs120 \ltrch\fcs0 \b\f0\fs120\cf1\lang3079\langfe1042\langnp3079\insrsid13520904
+\par }{\rtlch\fcs1 \ab\af40\afs120 \ltrch\fcs0 \b\fs120\cf1\lang3079\langfe1042\langnp3079\insrsid1663866 \hich\af40\dbch\af31505\loch\f40 5.}{\rtlch\fcs1 \ab\af40\afs120 \ltrch\fcs0 \b\fs120\cf1\lang3079\langfe1042\langnp3079\insrsid16197713
+\hich\af40\dbch\af31505\loch\f40 1}{\rtlch\fcs1 \ab\af0\afs120 \ltrch\fcs0 \b\f0\fs120\cf1\lang3079\langfe1042\langnp3079\insrsid13520904
\par }\pard \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\faauto\rin0\lin0\itap0 {\rtlch\fcs1 \af0 \ltrch\fcs0 \f0\cf1\lang3079\langfe1042\langnp3079\insrsid13520904
\par }\pard \ltrpar\qc \li0\ri0\nowidctlpar\wrapdefault\faauto\rin0\lin0\itap0 {\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\lang2057\langfe1042\langnp2057\insrsid8408875 {\pict{\*\picprop\shplid1025{\sp{\sn shapeType}{\sv 75}}{\sp{\sn fFlipH}{\sv 0}}
{\sp{\sn fFlipV}{\sv 0}}{\sp{\sn fLine}{\sv 0}}{\sp{\sn fLayoutInCell}{\sv 1}}{\sp{\sn fLayoutInCell}{\sv 1}}}\picscalex100\picscaley100\piccropl0\piccropr0\piccropt0\piccropb0
@@ -7321,9 +7322,10 @@ ger. In the course of the project, several contributors joined in (we always wel
though it took us four years and a few architectural changes along the way.
\par
\par }\pard \ltrpar\qj \fi1\li360\ri0\nowidctlpar\wrapdefault\faauto\rin0\lin360\itap0\pararsid1663866 {\rtlch\fcs1 \af0 \ltrch\fcs0 \f0\cf1\lang2057\langfe1042\langnp2057\insrsid1663866 \hich\af0\dbch\af31505\loch\f0
-Version 5.0 is a major milestone for our IDE as it comes with sweeping architectural changes, that enable a lot of advanced features that were not possible before. However, this comes with a downside as those features ship for one progr
-\hich\af0\dbch\af31505\loch\f0 amming language only: C#}{\rtlch\fcs1 \af0 \ltrch\fcs0 \f0\cf1\lang2057\langfe1042\langnp2057\insrsid13520904 .}{\rtlch\fcs1 \af0 \ltrch\fcs0 \f0\cf1\lang2057\langfe1042\langnp2057\insrsid1663866
-\hich\af0\dbch\af31505\loch\f0 Future releases might bring back additional programming languages.}{\rtlch\fcs1 \af0 \ltrch\fcs0 \f0\cf1\lang2057\langfe1042\langnp2057\insrsid13520904
+Version 5.0 is a major milestone for our IDE as it comes with sweeping architectural changes, that enable a l\hich\af0\dbch\af31505\loch\f0
+ot of advanced features that were not possible before. However, this comes with a downside as those features ship for one programming language only: C#}{\rtlch\fcs1 \af0 \ltrch\fcs0 \f0\cf1\lang2057\langfe1042\langnp2057\insrsid13520904 .}{\rtlch\fcs1
+\af0 \ltrch\fcs0 \f0\cf1\lang2057\langfe1042\langnp2057\insrsid1663866 \hich\af0\dbch\af31505\loch\f0 Future releases might bring back additional programming languages.}{\rtlch\fcs1 \af0 \ltrch\fcs0 \f0\cf1\lang2057\langfe1042\langnp2057\insrsid13520904
+
\par }\pard \ltrpar\qj \fi1\li360\ri0\nowidctlpar\wrapdefault\faauto\rin0\lin360\itap0 {\rtlch\fcs1 \af0 \ltrch\fcs0 \f0\cf1\lang2057\langfe1042\langnp2057\insrsid13520904
\par
\par }{\rtlch\fcs1 \ab\ai\af0 \ltrch\fcs0 \b\i\f0\cf1\lang2057\langfe1042\langnp2057\insrsid13520904 \hich\af0\dbch\af31505\loch\f0 The #develop team
@@ -7333,39 +7335,39 @@ https://github.com/icsharpcode/SharpDevelop/wiki/Contributors}{\rtlch\fcs1 \af0
\par }\pard\plain \ltrpar\s1\ql \li0\ri0\sb240\sa60\keepn\nowidctlpar\wrapdefault\faauto\outlinelevel0\rin0\lin0\itap0 \rtlch\fcs1 \af0\afs24\alang1025 \ltrch\fcs0 \fs24\lang1033\langfe1042\loch\af40\hich\af40\dbch\af31505\cgrid\langnp1033\langfenp1042 {
\rtlch\fcs1 \ab\af1\afs32 \ltrch\fcs0 \b\f1\fs32\cf1\insrsid13520904 \hich\af1\dbch\af31505\loch\f1 Overview}{\rtlch\fcs1 \ab\af0\afs32 \ltrch\fcs0 \b\f0\fs32\cf1\insrsid13520904
\par }\pard\plain \ltrpar\qj \fi1\li360\ri0\nowidctlpar\wrapdefault\faauto\rin0\lin360\itap0 \rtlch\fcs1 \af0\afs24\alang1025 \ltrch\fcs0 \fs24\lang1033\langfe1042\loch\af40\hich\af40\dbch\af31505\cgrid\langnp1033\langfenp1042 {\rtlch\fcs1 \af0 \ltrch\fcs0
-\f0\cf1\lang2057\langfe1042\langnp2057\insrsid13520904 \hich\af0\dbch\af31505\loch\f0 #develop (short for SharpDevelop) is a free Integrated Development Envi\hich\af0\dbch\af31505\loch\f0 ronment (IDE) for C#}{\rtlch\fcs1 \af0 \ltrch\fcs0
+\f0\cf1\lang2057\langfe1042\langnp2057\insrsid13520904 \hich\af0\dbch\af31505\loch\f0 #develop (short for SharpDevelop) is a free Integrated Development Environment (IDE) for C#}{\rtlch\fcs1 \af0 \ltrch\fcs0
\f0\cf1\lang2057\langfe1042\langnp2057\insrsid1663866 \hich\af0\dbch\af31505\loch\f0 and}{\rtlch\fcs1 \af0 \ltrch\fcs0 \f0\cf1\lang2057\langfe1042\langnp2057\insrsid13520904 \hich\af0\dbch\af31505\loch\f0 VB.NET}{\rtlch\fcs1 \af0 \ltrch\fcs0
-\f0\cf1\lang2057\langfe1042\langnp2057\insrsid1663866 \hich\af0\dbch\af31505\loch\f0 (compilation only)\hich\af0\dbch\af31505\loch\f0 }{\rtlch\fcs1 \af0 \ltrch\fcs0 \f0\cf1\lang2057\langfe1042\langnp2057\insrsid13520904 \hich\af0\dbch\af31505\loch\f0
-projects on Microsoft's .NET platform. It is written (almost) entirely in C#, and comes with features you would expect in an IDE plus a few more.
+\f0\cf1\lang2057\langfe1042\langnp2057\insrsid1663866 \hich\af0\dbch\af31505\loch\f0 (compilation only) }{\rtlch\fcs1 \af0 \ltrch\fcs0 \f0\cf1\lang2057\langfe1042\langnp2057\insrsid13520904 \hich\af0\dbch\af31505\loch\f0
+projects on Microsoft's .NET platform. It is written (almost)\hich\af0\dbch\af31505\loch\f0 entirely in C#, and comes with features you would expect in an IDE plus a few more.
\par }\pard\plain \ltrpar\s1\ql \li0\ri0\sb240\sa60\keepn\nowidctlpar\wrapdefault\faauto\outlinelevel0\rin0\lin0\itap0 \rtlch\fcs1 \af0\afs24\alang1025 \ltrch\fcs0 \fs24\lang1033\langfe1042\loch\af40\hich\af40\dbch\af31505\cgrid\langnp1033\langfenp1042 {
\rtlch\fcs1 \ab\af1\afs32 \ltrch\fcs0 \b\f1\fs32\cf1\insrsid13520904 \hich\af1\dbch\af31505\loch\f1 Features
\par }\pard\plain \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\faauto\rin0\lin0\itap0 \rtlch\fcs1 \af0\afs24\alang1025 \ltrch\fcs0 \fs24\lang1033\langfe1042\loch\af40\hich\af40\dbch\af31505\cgrid\langnp1033\langfenp1042 {\rtlch\fcs1 \af0 \ltrch\fcs0
-\f0\cf1\insrsid13520904 \hich\af0\dbch\af31505\loch\f0 For detailed information on the featu\hich\af0\dbch\af31505\loch\f0 res present in SharpDevelop, please take the feature tour:
+\f0\cf1\insrsid13520904 \hich\af0\dbch\af31505\loch\f0 For detailed information on the features present in SharpDevelop, please take the feature tour:
\par
\par }{\rtlch\fcs1 \af0 \ltrch\fcs0 \f0\insrsid13520904 \hich\af0\dbch\af31505\loch\f0 http://www.icsharpcode.net/OpenSource/SD/Tour/}{\rtlch\fcs1 \af0 \ltrch\fcs0 \f0\cf1\insrsid13520904
\par }\pard\plain \ltrpar\s1\ql \li0\ri0\sb240\sa60\keepn\nowidctlpar\wrapdefault\faauto\outlinelevel0\rin0\lin0\itap0 \rtlch\fcs1 \af0\afs24\alang1025 \ltrch\fcs0 \fs24\lang1033\langfe1042\loch\af40\hich\af40\dbch\af31505\cgrid\langnp1033\langfenp1042 {
\rtlch\fcs1 \ab\af1\afs32 \ltrch\fcs0 \b\f1\fs32\cf1\insrsid13520904 \hich\af1\dbch\af31505\loch\f1 Support
\par }\pard\plain \ltrpar\qj \fi1\li360\ri0\nowidctlpar\wrapdefault\faauto\rin0\lin360\itap0 \rtlch\fcs1 \af0\afs24\alang1025 \ltrch\fcs0 \fs24\lang1033\langfe1042\loch\af40\hich\af40\dbch\af31505\cgrid\langnp1033\langfenp1042 {\rtlch\fcs1 \af0 \ltrch\fcs0
-\f0\cf1\lang2057\langfe1042\langnp2057\insrsid13520904 \hich\af0\dbch\af31505\loch\f0 Our primary means of support is via our Web-based forum (please do not email team members directly unless they advise you to do so in the for
-\hich\af0\dbch\af31505\loch\f0 um):
+\f0\cf1\lang2057\langfe1042\langnp2057\insrsid13520904 \hich\af0\dbch\af31505\loch\f0 Our primar\hich\af0\dbch\af31505\loch\f0
+y means of support is via our Web-based forum (please do not email team members directly unless they advise you to do so in the forum):
\par
\par }\pard \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\faauto\rin0\lin0\itap0 {\rtlch\fcs1 \af0 \ltrch\fcs0 \f0\lang2057\langfe1042\langnp2057\insrsid13520904 \hich\af0\dbch\af31505\loch\f0 http://community.sharpdevelop.net/forums/}{\rtlch\fcs1 \af0
\ltrch\fcs0 \f0\cf1\lang2057\langfe1042\langnp2057\insrsid13520904 \hich\af0\dbch\af31505\loch\f0
\par
\par \hich\af0\dbch\af31505\loch\f0 Before posting, we would like to encourage you to visit our Wiki pages:
\par
-\par }{\rtlch\fcs1 \af0 \ltrch\fcs0 \f0\lang2057\langfe1042\langnp2057\insrsid1663866\charrsid1663866 \hich\af0\dbch\af31505\loch\f0 https://github.com/icsharpcode/SharpDevelop/wiki}{\rtlch\fcs1 \af0 \ltrch\fcs0
+\par }{\rtlch\fcs1 \af0 \ltrch\fcs0 \f0\lang2057\langfe1042\langnp2057\insrsid1663866\charrsid1663866 \hich\af0\dbch\af31505\loch\f0 ht\hich\af0\dbch\af31505\loch\f0 tps://github.com/icsharpcode/SharpDevelop/wiki}{\rtlch\fcs1 \af0 \ltrch\fcs0
\f0\cf1\lang2057\langfe1042\langnp2057\insrsid13520904
\par }\pard \ltrpar\qj \fi1\li360\ri0\nowidctlpar\wrapdefault\faauto\rin0\lin360\itap0 {\rtlch\fcs1 \af0 \ltrch\fcs0 \f0\cf1\lang2057\langfe1042\langnp2057\insrsid13520904
-\par \hich\af0\dbch\af31505\loch\f0 When reporting bugs, please use the Bug Reporting forum and be sure to revisit the sticky topics on ho\hich\af0\dbch\af31505\loch\f0 w to make good bug reports. Please provide us with steps to reproduce the error.
+\par \hich\af0\dbch\af31505\loch\f0 When reporting bugs, please use the Bug Reporting forum and be sure to revisit the sticky topics on how to make good bug reports. Please provide us with steps to reproduce the error.
\par }\pard\plain \ltrpar\s1\ql \li0\ri0\sb240\sa60\keepn\nowidctlpar\wrapdefault\faauto\outlinelevel0\rin0\lin0\itap0 \rtlch\fcs1 \af0\afs24\alang1025 \ltrch\fcs0 \fs24\lang1033\langfe1042\loch\af40\hich\af40\dbch\af31505\cgrid\langnp1033\langfenp1042 {
\rtlch\fcs1 \ab\af1\afs32 \ltrch\fcs0 \b\f1\fs32\cf1\insrsid13520904 \hich\af1\dbch\af31505\loch\f1 License
\par }\pard\plain \ltrpar\qj \fi1\li360\ri0\nowidctlpar\wrapdefault\faauto\rin0\lin360\itap0 \rtlch\fcs1 \af0\afs24\alang1025 \ltrch\fcs0 \fs24\lang1033\langfe1042\loch\af40\hich\af40\dbch\af31505\cgrid\langnp1033\langfenp1042 {\rtlch\fcs1 \af0 \ltrch\fcs0
-\f0\cf1\lang2057\langfe1042\langnp2057\insrsid13520904 \hich\af0\dbch\af31505\loch\f0 #develop\hich\f0 \rquote \loch\f0 s source code is }{\rtlch\fcs1 \af0 \ltrch\fcs0 \f0\cf1\lang2057\langfe1042\langnp2057\insrsid1663866 \hich\af0\dbch\af31505\loch\f0
-MIT}{\rtlch\fcs1 \af0 \ltrch\fcs0 \f0\cf1\lang2057\langfe1042\langnp2057\insrsid13520904 \hich\af0\dbch\af31505\loch\f0 licensed (please see license.txt for }{\rtlch\fcs1 \af0 \ltrch\fcs0 \f0\cf1\lang2057\langfe1042\langnp2057\insrsid1663866
-\hich\af0\dbch\af31505\loch\f0 it}{\rtlch\fcs1 \af0 \ltrch\fcs0 \f0\cf1\lang2057\langfe1042\langnp2057\insrsid13520904 \hich\af0\dbch\af31505\loch\f0 in its entire length). Should you have questions about the }{\rtlch\fcs1 \af0 \ltrch\fcs0
-\f0\cf1\lang2057\langfe1042\langnp2057\insrsid1663866 \hich\af0\dbch\af31505\loch\f0 license}{\rtlch\fcs1 \af0 \ltrch\fcs0 \f0\cf1\lang2057\langfe1042\langnp2057\insrsid13520904 \hich\af0\dbch\af31505\loch\f0 , please visit the follow
-\hich\af0\dbch\af31505\loch\f0 ing URLs:
+\f0\cf1\lang2057\langfe1042\langnp2057\insrsid13520904 \hich\af0\dbch\af31505\loch\f0 #develop\hich\f0 \rquote \loch\f0 s sour\hich\af0\dbch\af31505\loch\f0 ce code is }{\rtlch\fcs1 \af0 \ltrch\fcs0 \f0\cf1\lang2057\langfe1042\langnp2057\insrsid1663866
+\hich\af0\dbch\af31505\loch\f0 MIT}{\rtlch\fcs1 \af0 \ltrch\fcs0 \f0\cf1\lang2057\langfe1042\langnp2057\insrsid13520904 \hich\af0\dbch\af31505\loch\f0 licensed (please see license.txt for }{\rtlch\fcs1 \af0 \ltrch\fcs0
+\f0\cf1\lang2057\langfe1042\langnp2057\insrsid1663866 \hich\af0\dbch\af31505\loch\f0 it}{\rtlch\fcs1 \af0 \ltrch\fcs0 \f0\cf1\lang2057\langfe1042\langnp2057\insrsid13520904 \hich\af0\dbch\af31505\loch\f0
+ in its entire length). Should you have questions about the }{\rtlch\fcs1 \af0 \ltrch\fcs0 \f0\cf1\lang2057\langfe1042\langnp2057\insrsid1663866 \hich\af0\dbch\af31505\loch\f0 license}{\rtlch\fcs1 \af0 \ltrch\fcs0
+\f0\cf1\lang2057\langfe1042\langnp2057\insrsid13520904 \hich\af0\dbch\af31505\loch\f0 , please visit the following URLs:
\par
\par \hich\af0\dbch\af31505\loch\f0 IC#Code FAQ: Open Source Licenses
\par }\pard \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\faauto\rin0\lin0\itap0 {\rtlch\fcs1 \af0 \ltrch\fcs0 \f0\lang2057\langfe1042\langnp2057\insrsid13520904 \hich\af0\dbch\af31505\loch\f0 http://community.sharpdevelop.net/forums/17/ShowForum.aspx
@@ -7426,7 +7428,7 @@ e4350d363f2451eced0dae2c082e8761be9969bb979dc9136332de3168aa1a083ae995719ac16db8
617020786d6c6e733a613d22687474703a2f2f736368656d61732e6f70656e786d6c666f726d6174732e6f72672f64726177696e676d6c2f323030362f6d6169
6e22206267313d226c743122207478313d22646b3122206267323d226c743222207478323d22646b322220616363656e74313d22616363656e74312220616363
656e74323d22616363656e74322220616363656e74333d22616363656e74332220616363656e74343d22616363656e74342220616363656e74353d22616363656e74352220616363656e74363d22616363656e74362220686c696e6b3d22686c696e6b2220666f6c486c696e6b3d22666f6c486c696e6b222f3e}
-{\*\latentstyles\lsdstimax371\lsdlockeddef0\lsdsemihiddendef0\lsdunhideuseddef0\lsdqformatdef0\lsdprioritydef99{\lsdlockedexcept \lsdqformat1 \lsdpriority0 \lsdlocked0 Normal;\lsdqformat1 \lsdlocked0 heading 1;
+{\*\latentstyles\lsdstimax372\lsdlockeddef0\lsdsemihiddendef0\lsdunhideuseddef0\lsdqformatdef0\lsdprioritydef99{\lsdlockedexcept \lsdqformat1 \lsdpriority0 \lsdlocked0 Normal;\lsdqformat1 \lsdlocked0 heading 1;
\lsdsemihidden1 \lsdunhideused1 \lsdqformat1 \lsdpriority9 \lsdlocked0 heading 2;\lsdsemihidden1 \lsdunhideused1 \lsdqformat1 \lsdpriority9 \lsdlocked0 heading 3;\lsdsemihidden1 \lsdunhideused1 \lsdqformat1 \lsdpriority9 \lsdlocked0 heading 4;
\lsdsemihidden1 \lsdunhideused1 \lsdqformat1 \lsdpriority9 \lsdlocked0 heading 5;\lsdsemihidden1 \lsdunhideused1 \lsdqformat1 \lsdpriority9 \lsdlocked0 heading 6;\lsdsemihidden1 \lsdunhideused1 \lsdqformat1 \lsdpriority9 \lsdlocked0 heading 7;
\lsdsemihidden1 \lsdunhideused1 \lsdqformat1 \lsdpriority9 \lsdlocked0 heading 8;\lsdsemihidden1 \lsdunhideused1 \lsdqformat1 \lsdpriority9 \lsdlocked0 heading 9;\lsdsemihidden1 \lsdunhideused1 \lsdpriority39 \lsdlocked0 toc 1;
@@ -7482,8 +7484,8 @@ e4350d363f2451eced0dae2c082e8761be9969bb979dc9136332de3168aa1a083ae995719ac16db8
\lsdpriority52 \lsdlocked0 List Table 7 Colorful Accent 4;\lsdpriority46 \lsdlocked0 List Table 1 Light Accent 5;\lsdpriority47 \lsdlocked0 List Table 2 Accent 5;\lsdpriority48 \lsdlocked0 List Table 3 Accent 5;
\lsdpriority49 \lsdlocked0 List Table 4 Accent 5;\lsdpriority50 \lsdlocked0 List Table 5 Dark Accent 5;\lsdpriority51 \lsdlocked0 List Table 6 Colorful Accent 5;\lsdpriority52 \lsdlocked0 List Table 7 Colorful Accent 5;
\lsdpriority46 \lsdlocked0 List Table 1 Light Accent 6;\lsdpriority47 \lsdlocked0 List Table 2 Accent 6;\lsdpriority48 \lsdlocked0 List Table 3 Accent 6;\lsdpriority49 \lsdlocked0 List Table 4 Accent 6;
-\lsdpriority50 \lsdlocked0 List Table 5 Dark Accent 6;\lsdpriority51 \lsdlocked0 List Table 6 Colorful Accent 6;\lsdpriority52 \lsdlocked0 List Table 7 Colorful Accent 6;}}{\*\datastore 010500000200000018000000
-4d73786d6c322e534158584d4c5265616465722e362e30000000000000000000000e0000
+\lsdpriority50 \lsdlocked0 List Table 5 Dark Accent 6;\lsdpriority51 \lsdlocked0 List Table 6 Colorful Accent 6;\lsdpriority52 \lsdlocked0 List Table 7 Colorful Accent 6;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Mention;}}{\*\datastore 0105000002000000
+180000004d73786d6c322e534158584d4c5265616465722e362e30000000000000000000000e0000
d0cf11e0a1b11ae1000000000000000000000000000000003e000300feff0900060000000000000000000000010000000100000000000000001000000200000001000000feffffff0000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
@@ -7492,24 +7494,24 @@ fffffffffffffffffdffffff04000000feffffff05000000fefffffffeffffffffffffffffffffff
ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
-ffffffffffffffffffffffffffffffff52006f006f007400200045006e00740072007900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000016000500ffffffffffffffff010000000c6ad98892f1d411a65f0040963251e500000000000000000000000060f6
-84d2ac1acf010300000080020000000000004d0073006f004400610074006100530074006f0072006500000000000000000000000000000000000000000000000000000000000000000000000000000000001a000101ffffffffffffffff02000000000000000000000000000000000000000000000060f684d2ac1acf01
-60f684d2ac1acf01000000000000000000000000ce0033005a00c4005200cd003500450034005500340047005a00db003500db00c100da005300c3003200d0003d003d000000000000000000000000000000000032000101ffffffffffffffff03000000000000000000000000000000000000000000000060f684d2ac1a
-cf0160f684d2ac1acf010000000000000000000000004900740065006d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000201ffffffff04000000ffffffff000000000000000000000000000000000000000000000000
-00000000000000000000000000000000d800000000000000010000000200000003000000feffffff0500000006000000070000000800000009000000feffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
+ffffffffffffffffffffffffffffffff52006f006f007400200045006e00740072007900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000016000500ffffffffffffffff010000000c6ad98892f1d411a65f0040963251e5000000000000000000000000a039
+59455195d10103000000c0020000000000004d0073006f004400610074006100530074006f0072006500000000000000000000000000000000000000000000000000000000000000000000000000000000001a000101ffffffffffffffff020000000000000000000000000000000000000000000000a03959455195d101
+a03959455195d101000000000000000000000000d30031005000d500df00320055004b00d20045004300c0003300da00ca0042003300d600d400cc00ca0051003d003d000000000000000000000000000000000032000101ffffffffffffffff030000000000000000000000000000000000000000000000a03959455195
+d101a03959455195d1010000000000000000000000004900740065006d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000201ffffffff04000000ffffffff000000000000000000000000000000000000000000000000
+000000000000000000000000000000000e0100000000000001000000020000000300000004000000feffffff060000000700000008000000090000000a000000feffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
-ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff3c623a536f75726365732053656c65637465645374796c653d225c4150412e58534c22205374796c654e616d653d224150412220786d6c6e733a623d22687474703a2f2f736368656d61732e6f70656e786d6c666f726d6174732e6f7267
-2f6f6666696365446f63756d656e742f323030362f6269626c696f6772617068792220786d6c6e733d22687474703a2f2f736368656d61732e6f70656e786d6c666f726d6174732e6f72672f6f6666696365446f63756d656e742f323030362f6269626c696f677261706879223e3c2f623a536f75726365733e00000000
-0000000000000000000000000000000000000000000000000000000000000000000000003c3f786d6c2076657273696f6e3d22312e302220656e636f64696e673d225554462d3822207374616e64616c6f6e653d226e6f223f3e0d0a3c64733a6461746173746f72654974656d2064733a6974656d49443d227b34363634
-443642392d433444372d343737392d383636372d4237464238374134413337337d2220786d6c6e733a64733d22687474703a2f2f736368656d61732e6f70656e786d6c666f726d6174732e6f72672f6f6666696365446f63756d656e742f323030362f637573746f6d586d6c223e3c64733a736368656d61526566733e3c
-64733a736368656d615265662064733a7572693d22687474703a2f2f736368656d61732e6f70656e500072006f007000650072007400690065007300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000016000200ffffffffffffffffffffffff000000000000
-0000000000000000000000000000000000000000000000000000000000000400000055010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffff00000000
+ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff3c3f786d6c2076657273696f6e3d22312e302220656e636f64696e673d225554462d3822207374616e64616c6f6e653d226e6f223f3e3c623a536f75726365732053656c65637465645374796c653d225c4150412e58534c22205374796c
+654e616d653d224150412220786d6c6e733a623d22687474703a2f2f736368656d61732e6f70656e786d6c666f726d6174732e6f72672f6f6666696365446f63756d656e742f323030362f6269626c696f6772617068792220786d6c6e733d22687474703a2f2f736368656d61732e6f70656e786d6c666f726d6174732e
+6f72672f6f6666696365446f63756d656e742f323030362f6269626c696f677261706879223e3c2f623a536f75726365733e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003c3f786d6c2076657273696f6e3d22312e302220656e636f6469
+6e673d225554462d3822207374616e64616c6f6e653d226e6f223f3e0d0a3c64733a6461746173746f72654974656d2064733a6974656d49443d227b46444635423343442d304143352d343043382d413037372d4141383137373644324341397d2220786d6c6e733a64733d22687474703a2f2f736368656d61732e6f70
+656e786d6c666f726d6174732e6f72672f6f6666696365446f63756d656e742f323030362f637573500072006f007000650072007400690065007300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000016000200ffffffffffffffffffffffff000000000000
+0000000000000000000000000000000000000000000000000000000000000500000055010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffff00000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffff0000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffff
-000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000786d6c666f726d6174732e6f72672f6f6666696365446f63756d656e742f323030362f6269626c696f677261706879222f3e3c2f64733a736368656d61526566733e3c2f64733a6461746173746f
-72654974656d3e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000746f6d586d6c223e3c64733a736368656d61526566733e3c64733a736368656d615265662064733a7572693d22687474703a2f2f736368656d61732e6f70656e786d6c666f726d6174732e6f7267
+2f6f6666696365446f63756d656e742f323030362f6269626c696f677261706879222f3e3c2f64733a736368656d61526566733e3c2f64733a6461746173746f72654974656d3e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000105000000000000}}
\ No newline at end of file
diff --git a/releasebuild.bat b/releasebuild.bat
index 2a49d9c333d..f893b6f31c9 100755
--- a/releasebuild.bat
+++ b/releasebuild.bat
@@ -1,5 +1,8 @@
@set PROGFILES=%PROGRAMFILES%
@if exist "%PROGRAMFILES(x86)%" set PROGFILES=%PROGRAMFILES(x86)%
+@if not exist "src\Libraries\AvalonEdit\ICSharpCode.AvalonEdit.sln" (
+ git submodule update --init || exit /b 1
+)
"%PROGFILES%\MSBuild\12.0\Bin\msbuild" /m SharpDevelop.sln /p:Configuration=Release "/p:Platform=Any CPU" %*
@IF %ERRORLEVEL% NEQ 0 GOTO err
@exit /B 0
diff --git a/samples/XamlDesigner/App.xaml b/samples/XamlDesigner/App.xaml
deleted file mode 100644
index 3a19748fc3c..00000000000
--- a/samples/XamlDesigner/App.xaml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/samples/XamlDesigner/App.xaml.cs b/samples/XamlDesigner/App.xaml.cs
deleted file mode 100644
index 6a9be5c98cb..00000000000
--- a/samples/XamlDesigner/App.xaml.cs
+++ /dev/null
@@ -1,99 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Configuration;
-using System.Data;
-using System.Diagnostics;
-using System.IO;
-using System.Linq;
-using System.Reflection;
-using System.Threading;
-using System.Windows;
-using System.Windows.Threading;
-
-using ICSharpCode.WpfDesign.Designer;
-using ICSharpCode.XamlDesigner.Configuration;
-
-namespace ICSharpCode.XamlDesigner
-{
- public partial class App
- {
- public static string[] Args;
-
- protected override void OnStartup(StartupEventArgs e)
- {
- AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(AppDomain_CurrentDomain_AssemblyResolve);
- AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(AppDomain_CurrentDomain_UnhandledException);
- DragDropExceptionHandler.UnhandledException += new ThreadExceptionEventHandler(DragDropExceptionHandler_UnhandledException);
- DispatcherUnhandledException += App_DispatcherUnhandledException;
- Args = e.Args;
- base.OnStartup(e);
- }
-
- private static bool internalLoad = false;
- private static string lastRequesting = null;
-
- Assembly AppDomain_CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args)
- {
- if (internalLoad)
- return null;
-
- if (args.Name.Split(new [] { ',' })[0].Trim().EndsWith(".resources"))
- return null;
-
- internalLoad = true;
-
- Assembly ass = null;
- try {
-
- ass = Assembly.Load(args.Name);
- }
- catch (Exception) { }
-
- if (ass == null && args.RequestingAssembly != null) {
- lastRequesting = args.RequestingAssembly.Location;
- var dir = Path.GetDirectoryName(args.RequestingAssembly.Location);
- var file = args.Name.Split(new [] { ',' })[0].Trim() + ".dll";
- try {
- ass = Assembly.LoadFrom(Path.Combine(dir, file));
- }
- catch (Exception) { }
- }
- else if (lastRequesting != null) {
- var dir = Path.GetDirectoryName(lastRequesting);
- var file = args.Name.Split(new [] { ',' })[0].Trim() + ".dll";
- try {
- ass = Assembly.LoadFrom(Path.Combine(dir, file));
- }
- catch (Exception) { }
- }
-
- internalLoad = false;
-
- return ass;
- }
-
- void DragDropExceptionHandler_UnhandledException(object sender, ThreadExceptionEventArgs e)
- {
- Shell.ReportException(e.Exception);
-
- }
-
- void AppDomain_CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
- {
- Shell.ReportException(e.ExceptionObject as Exception);
- }
-
-
- void App_DispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
- {
- Shell.ReportException(e.Exception);
- e.Handled = true;
- }
-
- protected override void OnExit(ExitEventArgs e)
- {
- Settings.Default.Save();
- base.OnExit(e);
- }
- }
-}
diff --git a/samples/XamlDesigner/BitmapButton.xaml b/samples/XamlDesigner/BitmapButton.xaml
deleted file mode 100644
index 7c1a28bd96a..00000000000
--- a/samples/XamlDesigner/BitmapButton.xaml
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/samples/XamlDesigner/BitmapButton.xaml.cs b/samples/XamlDesigner/BitmapButton.xaml.cs
deleted file mode 100644
index 4200c1bc9de..00000000000
--- a/samples/XamlDesigner/BitmapButton.xaml.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Imaging;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
-
-namespace ICSharpCode.XamlDesigner
-{
- public partial class BitmapButton
- {
- public BitmapButton()
- {
- InitializeComponent();
- DataContext = this;
- }
-
- public string ImageHover {
- get { return "Images/" + GetType().Name + ".Hover.png"; }
- }
-
- public string ImageNormal {
- get { return "Images/" + GetType().Name + ".Normal.png"; }
- }
-
- public string ImagePressed {
- get { return "Images/" + GetType().Name + ".Pressed.png"; }
- }
-
- public string ImageDisabled {
- get { return "Images/" + GetType().Name + ".Disabled.png"; }
- }
- }
-
- class CloseButton : BitmapButton
- {
- }
-}
diff --git a/samples/XamlDesigner/Configuration/AssemblyInfo.cs b/samples/XamlDesigner/Configuration/AssemblyInfo.cs
deleted file mode 100644
index 651ee86e688..00000000000
--- a/samples/XamlDesigner/Configuration/AssemblyInfo.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-using System.Reflection;
-using System.Resources;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-using System.Windows;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("XamlDesigner")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-//In order to begin building localizable applications, set
-//CultureYouAreCodingWith in your .csproj file
-//inside a . For example, if you are using US english
-//in your source files, set the to en-US. Then uncomment
-//the NeutralResourceLanguage attribute below. Update the "en-US" in
-//the line below to match the UICulture setting in the project file.
-
-//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
-
-
-[assembly: ThemeInfo(
- ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
- //(used if a resource is not found in the page,
- // or application resource dictionaries)
- ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
- //(used if a resource is not found in the page,
- // app, or any theme specific resource dictionaries)
-)]
diff --git a/samples/XamlDesigner/Configuration/Settings.Designer.cs b/samples/XamlDesigner/Configuration/Settings.Designer.cs
deleted file mode 100644
index 856ed1ff137..00000000000
--- a/samples/XamlDesigner/Configuration/Settings.Designer.cs
+++ /dev/null
@@ -1,119 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-// Runtime Version:2.0.50727.3031
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-namespace ICSharpCode.XamlDesigner.Configuration {
-
-
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0")]
- internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
-
- private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
-
- public static Settings Default {
- get {
- return defaultInstance;
- }
- }
-
- [global::System.Configuration.UserScopedSettingAttribute()]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Configuration.DefaultSettingValueAttribute("0,0,0,0")]
- public global::System.Windows.Rect MainWindowRect {
- get {
- return ((global::System.Windows.Rect)(this["MainWindowRect"]));
- }
- set {
- this["MainWindowRect"] = value;
- }
- }
-
- [global::System.Configuration.UserScopedSettingAttribute()]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Configuration.DefaultSettingValueAttribute(@"
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ")]
- public string AvalonDockLayout {
- get {
- return ((string)(this["AvalonDockLayout"]));
- }
- set {
- this["AvalonDockLayout"] = value;
- }
- }
-
- [global::System.Configuration.UserScopedSettingAttribute()]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Collections.Specialized.StringCollection RecentFiles {
- get {
- return ((global::System.Collections.Specialized.StringCollection)(this["RecentFiles"]));
- }
- set {
- this["RecentFiles"] = value;
- }
- }
-
- [global::System.Configuration.UserScopedSettingAttribute()]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Configuration.DefaultSettingValueAttribute(@"
-
- %ProgramFiles%\Reference Assemblies\Microsoft\Framework\v3.0\PresentationFramework.dll
- ")]
- public global::System.Collections.Specialized.StringCollection AssemblyList {
- get {
- return ((global::System.Collections.Specialized.StringCollection)(this["AssemblyList"]));
- }
- set {
- this["AssemblyList"] = value;
- }
- }
-
- [global::System.Configuration.UserScopedSettingAttribute()]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Configuration.DefaultSettingValueAttribute("Maximized")]
- public global::System.Windows.WindowState MainWindowState {
- get {
- return ((global::System.Windows.WindowState)(this["MainWindowState"]));
- }
- set {
- this["MainWindowState"] = value;
- }
- }
- }
-}
diff --git a/samples/XamlDesigner/Configuration/Settings.settings b/samples/XamlDesigner/Configuration/Settings.settings
deleted file mode 100644
index 33f62b33b9d..00000000000
--- a/samples/XamlDesigner/Configuration/Settings.settings
+++ /dev/null
@@ -1,55 +0,0 @@
-
-
-
-
-
- 0,0,0,0
-
-
- <DockingManager version="1.3.0">
- <ResizingPanel ResizeWidth="*" ResizeHeight="*" EffectiveSize="0,0" Orientation="Vertical">
- <ResizingPanel ResizeWidth="*" ResizeHeight="*" EffectiveSize="1920,1153.04" Orientation="Horizontal">
- <ResizingPanel ResizeWidth="250" ResizeHeight="*" EffectiveSize="250,1153.04" Orientation="Vertical">
- <DockablePane ResizeWidth="0.742440632565806*" ResizeHeight="0.742440632565806*" EffectiveSize="250,851.609103178282" ID="bb7a5fd3-be24-4636-8fd6-a50a09e65e69" Anchor="Left" IsAutoHidden="false">
- <DockableContent Name="content1" FloatingWindowSize="250,400" ChildIndex="0" Width="315" Height="1153.04" Anchor="Right" State="Docked" />
- </DockablePane>
- <DockablePane ResizeWidth="0.257559367434194*" ResizeHeight="0.257559367434194*" EffectiveSize="250,295.430896821718" ID="17cd1941-1004-4ed9-8cda-03c254681289" Anchor="Left" IsAutoHidden="false">
- <DockableContent Name="content2" FloatingWindowSize="250,400" ChildIndex="0" Width="328" Height="1153.04" Anchor="Right" State="Docked" />
- </DockablePane>
- </ResizingPanel>
- <ResizingPanel ResizeWidth="*" ResizeHeight="*" EffectiveSize="1408,1153.04" Orientation="Vertical">
- <DocumentPaneResizingPanel ResizeWidth="*" ResizeHeight="*" EffectiveSize="1408,965.04" Orientation="Vertical">
- <DocumentPane IsMain="true" ResizeWidth="*" ResizeHeight="*" EffectiveSize="1408,965.04" />
- </DocumentPaneResizingPanel>
- <DockablePane ResizeWidth="*" ResizeHeight="182" EffectiveSize="1408,182" ID="ebd34b7e-6a89-42c6-b172-0e666b0d8a0a" Anchor="Bottom" IsAutoHidden="false">
- <DockableContent Name="content3" FloatingWindowSize="250,400" ChildIndex="0" Width="1920" Height="400" Anchor="Bottom" State="Docked" />
- </DockablePane>
- </ResizingPanel>
- <ResizingPanel ResizeWidth="250" ResizeHeight="*" EffectiveSize="250,1153.04" Orientation="Vertical">
- <DockablePane ResizeWidth="0.145251345356991*" ResizeHeight="0.145251345356991*" EffectiveSize="250,166.609103178283" ID="aa545474-48b3-49a6-b76c-b0c625e79e4c" Anchor="Right" IsAutoHidden="false">
- <DockableContent Name="content5" FloatingWindowSize="250,400" ChildIndex="0" Width="550.666666666667" Height="1153.04" Anchor="Right" State="Docked" />
- </DockablePane>
- <DockablePane ResizeWidth="0.854748654643009*" ResizeHeight="0.854748654643009*" EffectiveSize="250,980.430896821717" ID="64e5518b-2c83-4e22-908d-a510a6995c27" Anchor="Right" IsAutoHidden="false">
- <DockableContent Name="content4" FloatingWindowSize="250,400" ChildIndex="0" Width="399.967430639324" Height="1153.04" Anchor="Right" State="Docked" />
- </DockablePane>
- </ResizingPanel>
- </ResizingPanel>
- </ResizingPanel>
- <Hidden />
- <Windows />
-</DockingManager>
-
-
-
-
-
- <?xml version="1.0" encoding="utf-16"?>
-<ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <string>%ProgramFiles%\Reference Assemblies\Microsoft\Framework\v3.0\PresentationFramework.dll</string>
-</ArrayOfString>
-
-
- Maximized
-
-
-
\ No newline at end of file
diff --git a/samples/XamlDesigner/Configuration/app.config b/samples/XamlDesigner/Configuration/app.config
deleted file mode 100644
index c49779f8d1c..00000000000
--- a/samples/XamlDesigner/Configuration/app.config
+++ /dev/null
@@ -1,51 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- 0,0,0,0
-
-
- <DockingManager>
- <ResizingPanel Orientation="Horizontal">
- <ResizingPanel ResizeWidth="200" Orientation="Vertical">
- <DockablePane ResizeHeight="441.36166666666668" Anchor="Left">
- <DockableContent Name="content1" AutoHide="false" />
- </DockablePane>
- <DockablePane ResizeWidth="200" Anchor="Left">
- <DockableContent Name="content2" AutoHide="false" />
- </DockablePane>
- </ResizingPanel>
- <ResizingPanel Orientation="Vertical">
- <DocumentPanePlaceHolder />
- <DockablePane ResizeHeight="138" Anchor="Bottom">
- <DockableContent Name="content3" AutoHide="false" />
- </DockablePane>
- </ResizingPanel>
- <DockablePane ResizeWidth="271" Anchor="Right">
- <DockableContent Name="content4" AutoHide="false" />
- </DockablePane>
- </ResizingPanel>
- <Hidden />
- <Windows />
-</DockingManager>
-
-
-
-
- %ProgramFiles%\Reference Assemblies\Microsoft\Framework\v3.0\PresentationFramework.dll
-
-
-
-
- Maximized
-
-
-
-
\ No newline at end of file
diff --git a/samples/XamlDesigner/Configuration/app.manifest b/samples/XamlDesigner/Configuration/app.manifest
deleted file mode 100644
index e82a10f1838..00000000000
--- a/samples/XamlDesigner/Configuration/app.manifest
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/samples/XamlDesigner/Converters.cs b/samples/XamlDesigner/Converters.cs
deleted file mode 100644
index feeb6d9d025..00000000000
--- a/samples/XamlDesigner/Converters.cs
+++ /dev/null
@@ -1,66 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Windows.Data;
-using System.Globalization;
-using System.Windows;
-using System.Collections;
-
-namespace ICSharpCode.XamlDesigner.Converters
-{
- public class EnumToIntConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
- {
- return (int)value;
- }
-
- public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
- {
- return value;
- }
- }
-
- public class CollapsedWhenFalse : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
- {
- return (bool)value ? Visibility.Visible : Visibility.Collapsed;
- }
-
- public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- }
-
- public class FalseWhenZero : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
- {
- if (value == null || (int)value == 0) {
- return false;
- }
- return true;
- }
-
- public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- }
-
- public class LevelConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
- {
- return new Thickness(5 + 19 * (int)value, 0, 5, 0);
- }
-
- public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- }
-}
diff --git a/samples/XamlDesigner/Document.cs b/samples/XamlDesigner/Document.cs
deleted file mode 100644
index 1079edf0a4d..00000000000
--- a/samples/XamlDesigner/Document.cs
+++ /dev/null
@@ -1,252 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.ComponentModel;
-using System.IO;
-using ICSharpCode.WpfDesign.Designer;
-using ICSharpCode.WpfDesign.Designer.Xaml;
-using ICSharpCode.WpfDesign.Designer.OutlineView;
-using System.Xml;
-using ICSharpCode.WpfDesign;
-using ICSharpCode.WpfDesign.Designer.Services;
-using System.Diagnostics;
-
-namespace ICSharpCode.XamlDesigner
-{
- public class Document : INotifyPropertyChanged
- {
- public Document(string tempName, string text)
- {
- this.tempName = tempName;
- Text = text;
- IsDirty = false;
- }
-
- public Document(string filePath)
- {
- this.filePath = filePath;
- ReloadFile();
- }
-
- string tempName;
- DesignSurface designSurface = new DesignSurface();
-
- string text;
-
- public string Text {
- get {
- return text;
- }
- set {
- if (text != value) {
- text = value;
- IsDirty = true;
- RaisePropertyChanged("Text");
- }
- }
- }
-
- DocumentMode mode;
-
- public DocumentMode Mode {
- get {
- return mode;
- }
- set {
- mode = value;
- if (InDesignMode) {
- UpdateDesign();
- }
- else {
- UpdateXaml();
- }
- RaisePropertyChanged("Mode");
- RaisePropertyChanged("InXamlMode");
- RaisePropertyChanged("InDesignMode");
- }
- }
-
- public bool InXamlMode {
- get { return Mode == DocumentMode.Xaml; }
- }
-
- public bool InDesignMode {
- get { return Mode == DocumentMode.Design; }
- }
-
- string filePath;
-
- public string FilePath {
- get {
- return filePath;
- }
- private set {
- filePath = value;
- RaisePropertyChanged("FilePath");
- RaisePropertyChanged("FileName");
- RaisePropertyChanged("Title");
- RaisePropertyChanged("Name");
- }
- }
-
- bool isDirty;
-
- public bool IsDirty {
- get {
- return isDirty;
- }
- private set {
- isDirty = value;
- RaisePropertyChanged("IsDirty");
- RaisePropertyChanged("Name");
- RaisePropertyChanged("Title");
- }
- }
-
- public string FileName {
- get {
- if (FilePath == null) return null;
- return Path.GetFileName(FilePath);
- }
- }
-
- public string Name {
- get {
- return FileName ?? tempName;
- }
- }
-
- public string Title {
- get {
- return IsDirty ? Name + "*" : Name;
- }
- }
-
- public DesignSurface DesignSurface {
- get { return designSurface; }
- }
-
- public DesignContext DesignContext {
- get { return designSurface.DesignContext; }
- }
-
- public UndoService UndoService {
- get { return DesignContext.Services.GetService(); }
- }
-
- public ISelectionService SelectionService {
- get {
- if (InDesignMode) {
- return DesignContext.Services.Selection;
- }
- return null;
- }
- }
-
- public XamlErrorService XamlErrorService {
- get {
- if (DesignContext != null) {
- return DesignContext.Services.GetService();
- }
- return null;
- }
- }
-
- IOutlineNode outlineRoot;
-
- public IOutlineNode OutlineRoot {
- get {
- return outlineRoot;
- }
- private set {
- outlineRoot = value;
- RaisePropertyChanged("OutlineRoot");
- }
- }
-
- void ReloadFile()
- {
- Text = File.ReadAllText(FilePath);
- UpdateDesign();
- IsDirty = false;
- }
-
- public void Save()
- {
- if (InDesignMode) {
- UpdateXaml();
- }
- File.WriteAllText(FilePath, Text);
- IsDirty = false;
- }
-
- public void SaveAs(string filePath)
- {
- FilePath = filePath;
- Save();
- }
-
- public void Refresh()
- {
- UpdateXaml();
- UpdateDesign();
- }
-
- void UpdateXaml()
- {
- var sb = new StringBuilder();
- using (var xmlWriter = XmlWriter.Create(sb)) {
- DesignSurface.SaveDesigner(xmlWriter);
- Text = XamlFormatter.Format(sb.ToString());
- }
- }
-
- void UpdateDesign()
- {
- OutlineRoot = null;
- using (var xmlReader = XmlReader.Create(new StringReader(Text))) {
- XamlLoadSettings settings = new XamlLoadSettings();
- foreach (var assNode in Toolbox.Instance.AssemblyNodes)
- {
- settings.DesignerAssemblies.Add(assNode.Assembly);
- }
- settings.TypeFinder = MyTypeFinder.Instance;
-
- DesignSurface.LoadDesigner(xmlReader, settings);
- }
- if (DesignContext.RootItem != null) {
- OutlineRoot = OutlineNode.Create(DesignContext.RootItem);
- UndoService.UndoStackChanged += new EventHandler(UndoService_UndoStackChanged);
- }
- RaisePropertyChanged("SelectionService");
- RaisePropertyChanged("XamlErrorService");
- }
-
- void UndoService_UndoStackChanged(object sender, EventArgs e)
- {
- IsDirty = true;
- if (InXamlMode) {
- UpdateXaml();
- }
- }
-
- #region INotifyPropertyChanged Members
-
- public event PropertyChangedEventHandler PropertyChanged;
-
- void RaisePropertyChanged(string name)
- {
- if (PropertyChanged != null) {
- PropertyChanged(this, new PropertyChangedEventArgs(name));
- }
- }
-
- #endregion
- }
-
- public enum DocumentMode
- {
- Xaml, Design
- }
-}
diff --git a/samples/XamlDesigner/DocumentView.xaml b/samples/XamlDesigner/DocumentView.xaml
deleted file mode 100644
index 06f45a450f7..00000000000
--- a/samples/XamlDesigner/DocumentView.xaml
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/samples/XamlDesigner/DocumentView.xaml.cs b/samples/XamlDesigner/DocumentView.xaml.cs
deleted file mode 100644
index fad8fa09f47..00000000000
--- a/samples/XamlDesigner/DocumentView.xaml.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Linq;
-using System.Text;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Imaging;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
-using System.Windows.Threading;
-
-using ICSharpCode.WpfDesign.Designer.Services;
-
-namespace ICSharpCode.XamlDesigner
-{
- public partial class DocumentView
- {
- public DocumentView(Document doc)
- {
- InitializeComponent();
-
- Document = doc;
- Shell.Instance.Views[doc] = this;
-
- //uxTextEditor.DataBindings.Add("Text", doc, "Text", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
- Document.Mode = DocumentMode.Design;
- Document.PropertyChanged += new PropertyChangedEventHandler(Document_PropertyChanged);
- uxTextEditor.TextChanged += new EventHandler(uxTextEditor_TextChanged);
- }
-
- void uxTextEditor_TextChanged(object sender, EventArgs e)
- {
- Document.Text = uxTextEditor.Text;
- }
-
- void Document_PropertyChanged(object sender, PropertyChangedEventArgs e)
- {
- if (e.PropertyName == "Text" && Document.Text != uxTextEditor.Text)
- uxTextEditor.Text = Document.Text;
- }
-
- public Document Document { get; private set; }
-
- public void JumpToError(XamlError error)
- {
- Document.Mode = DocumentMode.Xaml;
- try {
- uxTextEditor.ScrollTo(error.Line, error.Column);
- uxTextEditor.CaretOffset = uxTextEditor.Document.GetOffset(error.Line, error.Column);
- } catch (ArgumentException) {
- // invalid line number
- }
- }
- }
-}
diff --git a/samples/XamlDesigner/EnumBar.xaml b/samples/XamlDesigner/EnumBar.xaml
deleted file mode 100644
index b47b79b00ff..00000000000
--- a/samples/XamlDesigner/EnumBar.xaml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
diff --git a/samples/XamlDesigner/EnumBar.xaml.cs b/samples/XamlDesigner/EnumBar.xaml.cs
deleted file mode 100644
index 9d7e3c4ea55..00000000000
--- a/samples/XamlDesigner/EnumBar.xaml.cs
+++ /dev/null
@@ -1,72 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Imaging;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
-using System.Windows.Controls.Primitives;
-
-namespace ICSharpCode.XamlDesigner
-{
- public partial class EnumBar
- {
- public EnumBar()
- {
- InitializeComponent();
- }
-
- Type currentEnumType;
-
- public static readonly DependencyProperty ValueProperty =
- DependencyProperty.Register("Value", typeof(object), typeof(EnumBar),
- new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault));
-
- public object Value {
- get { return (object)GetValue(ValueProperty); }
- set { SetValue(ValueProperty, value); }
- }
-
- protected override void OnPropertyChanged(DependencyPropertyChangedEventArgs e)
- {
- base.OnPropertyChanged(e);
-
- if (e.Property == ValueProperty) {
- var type = e.NewValue.GetType();
-
- if (currentEnumType != type) {
- currentEnumType = type;
- uxPanel.Children.Clear();
- foreach (var v in Enum.GetValues(type)) {
- var b = new EnumButton();
- b.Value = v;
- b.Content = Enum.GetName(type, v);
- b.PreviewMouseLeftButtonDown += new MouseButtonEventHandler(button_PreviewMouseLeftButtonDown);
- uxPanel.Children.Add(b);
- }
- }
-
- foreach (EnumButton c in uxPanel.Children) {
- if (c.Value.Equals(Value)) {
- c.IsChecked = true;
- }
- else {
- c.IsChecked = false;
- }
- }
- }
- }
-
- void button_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
- {
- Value = (sender as EnumButton).Value;
- e.Handled = true;
- }
- }
-}
diff --git a/samples/XamlDesigner/EnumButton.cs b/samples/XamlDesigner/EnumButton.cs
deleted file mode 100644
index a8a86d7d4a6..00000000000
--- a/samples/XamlDesigner/EnumButton.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Windows.Controls.Primitives;
-using System.Windows;
-
-namespace ICSharpCode.XamlDesigner
-{
- public class EnumButton : ToggleButton
- {
- static EnumButton()
- {
- DefaultStyleKeyProperty.OverrideMetadata(typeof(EnumButton),
- new FrameworkPropertyMetadata(typeof(EnumButton)));
- }
-
- public static readonly DependencyProperty ValueProperty =
- DependencyProperty.Register("Value", typeof(object), typeof(EnumButton));
-
- public object Value {
- get { return (object)GetValue(ValueProperty); }
- set { SetValue(ValueProperty, value); }
- }
- }
-}
diff --git a/samples/XamlDesigner/ErrorListView.xaml b/samples/XamlDesigner/ErrorListView.xaml
deleted file mode 100644
index fa661fa0e34..00000000000
--- a/samples/XamlDesigner/ErrorListView.xaml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/samples/XamlDesigner/ErrorListView.xaml.cs b/samples/XamlDesigner/ErrorListView.xaml.cs
deleted file mode 100644
index 9d866bd82aa..00000000000
--- a/samples/XamlDesigner/ErrorListView.xaml.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Imaging;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
-using ICSharpCode.WpfDesign.Designer.Services;
-
-namespace ICSharpCode.XamlDesigner
-{
- public partial class ErrorListView
- {
- public ErrorListView()
- {
- InitializeComponent();
- }
-
- protected override void OnMouseDoubleClick(MouseButtonEventArgs e)
- {
- var error = e.GetDataContext() as XamlError;
- if (error != null) {
- Shell.Instance.JumpToError(error);
- }
- }
- }
-}
diff --git a/samples/XamlDesigner/ExtensionMethods.cs b/samples/XamlDesigner/ExtensionMethods.cs
deleted file mode 100644
index ff09256e1df..00000000000
--- a/samples/XamlDesigner/ExtensionMethods.cs
+++ /dev/null
@@ -1,84 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Windows;
-using System.Windows.Documents;
-using System.Windows.Media;
-using System.IO;
-using System.Collections.ObjectModel;
-using System.Collections.Specialized;
-using System.Collections;
-
-namespace ICSharpCode.XamlDesigner
-{
- static class ExtensionMethods
- {
- public static IEnumerable Paths(this IDataObject data)
- {
- string[] paths = (string[])data.GetData(DataFormats.FileDrop);
- if (paths != null) {
- foreach (var path in paths) {
- yield return path;
- }
- }
- }
-
- public static T GetObject(this IDataObject data)
- {
- return (T)data.GetData(typeof(T).FullName);
- }
-
- public static Stream ToStream(this string s)
- {
- return new MemoryStream(Encoding.UTF8.GetBytes(s));
- }
-
- public static void AddRange(this ObservableCollection col, IEnumerable items)
- {
- foreach (var item in items) {
- col.Add(item);
- }
- }
-
- public static void KeepSyncronizedWith(this IList target, ObservableCollection source, Func convert)
- {
- target.Clear();
- foreach (var item in source) {
- target.Add(convert(item));
- }
-
- source.CollectionChanged += delegate(object sender, NotifyCollectionChangedEventArgs e) {
- switch (e.Action) {
- case NotifyCollectionChangedAction.Add:
- target.Add(convert((S)e.NewItems[0]));
- break;
-
- case NotifyCollectionChangedAction.Remove:
- target.RemoveAt(e.OldStartingIndex);
- break;
-
- case NotifyCollectionChangedAction.Move:
- target.RemoveAt(e.OldStartingIndex);
- target.Insert(e.NewStartingIndex, e.NewItems[0]);
- break;
-
- case NotifyCollectionChangedAction.Replace:
- target[e.NewStartingIndex] = convert((S)e.NewItems[0]);
- break;
-
- case NotifyCollectionChangedAction.Reset:
- target.Clear();
- break;
- }
- };
- }
-
- public static object GetDataContext(this RoutedEventArgs e)
- {
- var f = e.OriginalSource as FrameworkElement;
- if (f != null) return f.DataContext;
- return null;
- }
- }
-}
diff --git a/samples/XamlDesigner/Images/Error.png b/samples/XamlDesigner/Images/Error.png
deleted file mode 100644
index c37bd062e60..00000000000
Binary files a/samples/XamlDesigner/Images/Error.png and /dev/null differ
diff --git a/samples/XamlDesigner/Images/Reference.png b/samples/XamlDesigner/Images/Reference.png
deleted file mode 100644
index da47049481f..00000000000
Binary files a/samples/XamlDesigner/Images/Reference.png and /dev/null differ
diff --git a/samples/XamlDesigner/Images/Tag.png b/samples/XamlDesigner/Images/Tag.png
deleted file mode 100644
index b7686f106b0..00000000000
Binary files a/samples/XamlDesigner/Images/Tag.png and /dev/null differ
diff --git a/samples/XamlDesigner/MainWindow.xaml b/samples/XamlDesigner/MainWindow.xaml
deleted file mode 100644
index 881a18b050c..00000000000
--- a/samples/XamlDesigner/MainWindow.xaml
+++ /dev/null
@@ -1,133 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/samples/XamlDesigner/MainWindow.xaml.cs b/samples/XamlDesigner/MainWindow.xaml.cs
deleted file mode 100644
index 6a83fde0706..00000000000
--- a/samples/XamlDesigner/MainWindow.xaml.cs
+++ /dev/null
@@ -1,191 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Imaging;
-using System.Windows.Shapes;
-using ICSharpCode.XamlDesigner.Configuration;
-using System.ComponentModel;
-using Microsoft.Win32;
-using AvalonDock;
-using System.IO;
-using System.Collections.Specialized;
-using ICSharpCode.WpfDesign.Designer;
-
-namespace ICSharpCode.XamlDesigner
-{
- public partial class MainWindow
- {
- public MainWindow()
- {
- Instance = this;
- DataContext = Shell.Instance;
- RenameCommands();
- BasicMetadata.Register();
-
- InitializeComponent();
-
- Shell.Instance.PropertyGrid = uxPropertyGridView.PropertyGrid;
- AvalonDockWorkaround();
- RouteDesignSurfaceCommands();
-
- this.AddCommandHandler(RefreshCommand, Shell.Instance.Refresh, Shell.Instance.CanRefresh);
-
- LoadSettings();
- ProcessPaths(App.Args);
-
- ApplicationCommands.New.Execute(null, this);
- }
-
- public static MainWindow Instance;
-
- OpenFileDialog openFileDialog;
- SaveFileDialog saveFileDialog;
-
- protected override void OnDragEnter(DragEventArgs e)
- {
- ProcessDrag(e);
- }
-
- protected override void OnDragOver(DragEventArgs e)
- {
- ProcessDrag(e);
- }
-
- protected override void OnDrop(DragEventArgs e)
- {
- ProcessPaths(e.Data.Paths());
- }
-
- protected override void OnClosing(CancelEventArgs e)
- {
- if (Shell.Instance.PrepareExit()) {
- SaveSettings();
- }
- else {
- e.Cancel = true;
- }
- base.OnClosing(e);
- }
-
- void RecentFiles_Click(object sender, RoutedEventArgs e)
- {
- var path = (string)(e.OriginalSource as MenuItem).Header;
- Shell.Instance.Open(path);
- }
-
- void ProcessDrag(DragEventArgs e)
- {
- e.Effects = DragDropEffects.None;
- e.Handled = true;
-
- foreach (var path in e.Data.Paths()) {
- if (path.EndsWith(".dll", StringComparison.InvariantCultureIgnoreCase) ||
- path.EndsWith(".exe", StringComparison.InvariantCultureIgnoreCase)) {
- e.Effects = DragDropEffects.Copy;
- break;
- }
- else if (path.EndsWith(".xaml", StringComparison.InvariantCultureIgnoreCase)) {
- e.Effects = DragDropEffects.Copy;
- break;
- }
- }
- }
-
- void ProcessPaths(IEnumerable paths)
- {
- foreach (var path in paths) {
- if (path.EndsWith(".dll", StringComparison.InvariantCultureIgnoreCase) ||
- path.EndsWith(".exe", StringComparison.InvariantCultureIgnoreCase)) {
- Toolbox.Instance.AddAssembly(path);
- }
- else if (path.EndsWith(".xaml", StringComparison.InvariantCultureIgnoreCase)) {
- Shell.Instance.Open(path);
- }
- }
- }
-
- public string AskOpenFileName()
- {
- if (openFileDialog == null) {
- openFileDialog = new OpenFileDialog();
- openFileDialog.Filter = "Xaml Documents (*.xaml)|*.xaml";
- }
- if ((bool)openFileDialog.ShowDialog()) {
- return openFileDialog.FileName;
- }
- return null;
- }
-
- public string AskSaveFileName(string initName)
- {
- if (saveFileDialog == null) {
- saveFileDialog = new SaveFileDialog();
- saveFileDialog.Filter = "Xaml Documents (*.xaml)|*.xaml";
- }
- saveFileDialog.FileName = initName;
- if ((bool)saveFileDialog.ShowDialog()) {
- return saveFileDialog.FileName;
- }
- return null;
- }
-
- void LoadSettings()
- {
- WindowState = Settings.Default.MainWindowState;
-
- Rect r = Settings.Default.MainWindowRect;
- if (r != new Rect()) {
- Left = r.Left;
- Top = r.Top;
- Width = r.Width;
- Height = r.Height;
- }
-
- uxDockingManager.Loaded += delegate {
- if (Settings.Default.AvalonDockLayout != null) {
- uxDockingManager.RestoreLayout(Settings.Default.AvalonDockLayout.ToStream());
- }
- };
- }
-
- void SaveSettings()
- {
- Settings.Default.MainWindowState = WindowState;
- if (WindowState == WindowState.Normal) {
- Settings.Default.MainWindowRect = new Rect(Left, Top, Width, Height);
- }
-
- var writer = new StringWriter();
- uxDockingManager.SaveLayout(writer);
- Settings.Default.AvalonDockLayout = writer.ToString();
-
- Shell.Instance.SaveSettings();
- }
-
- #region AvalonDockWorkaround
-
- void AvalonDockWorkaround()
- {
- uxDocumentPane.Items.KeepSyncronizedWith(Shell.Instance.Documents, d => CreateContentFor(d));
- }
-
- DocumentContent CreateContentFor(Document doc)
- {
- var content = new DocumentContent() {
- DataContext = doc,
- Content = new DocumentView(doc)
- };
- content.SetBinding(DocumentContent.TitleProperty, "Title");
- return content;
- }
-
- #endregion
- }
-}
diff --git a/samples/XamlDesigner/MainWindow_Commands.cs b/samples/XamlDesigner/MainWindow_Commands.cs
deleted file mode 100644
index bb6c0c7b5bb..00000000000
--- a/samples/XamlDesigner/MainWindow_Commands.cs
+++ /dev/null
@@ -1,177 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Text;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Markup;
-using System.Windows.Media;
-using System.Windows.Media.Imaging;
-using System.Xml;
-
-using Microsoft.Win32;
-
-namespace ICSharpCode.XamlDesigner
-{
- public partial class MainWindow
- {
- public static SimpleCommand CloseAllCommand = new SimpleCommand("Close All");
- public static SimpleCommand SaveAllCommand = new SimpleCommand("Save All", ModifierKeys.Control | ModifierKeys.Shift, Key.S);
- public static SimpleCommand ExitCommand = new SimpleCommand("Exit");
- public static SimpleCommand RefreshCommand = new SimpleCommand("Refresh", Key.F5);
- public static SimpleCommand RunCommand = new SimpleCommand("Run", ModifierKeys.Shift, Key.F5);
- public static SimpleCommand RenderToBitmapCommand = new SimpleCommand("Render to Bitmap");
-
- static void RenameCommands()
- {
- ApplicationCommands.Open.Text = "Open...";
- ApplicationCommands.SaveAs.Text = "Save As...";
- }
-
- void NewCommand_Executed(object sender, ExecutedRoutedEventArgs e)
- {
- Shell.Instance.New();
- }
-
- void OpenCommand_Executed(object sender, ExecutedRoutedEventArgs e)
- {
- Shell.Instance.Open();
- }
-
- void CloseCommand_Executed(object sender, ExecutedRoutedEventArgs e)
- {
- Shell.Instance.CloseCurrentDocument();
- }
-
- void CloseCommand_PreviewExecuted(object sender, ExecutedRoutedEventArgs e)
- {
- Shell.Instance.CloseCurrentDocument();
- }
-
- void CloseAllCommand_Executed(object sender, ExecutedRoutedEventArgs e)
- {
- Shell.Instance.CloseAll();
- }
-
- void SaveCommand_Executed(object sender, ExecutedRoutedEventArgs e)
- {
- Shell.Instance.SaveCurrentDocument();
- }
-
- void SaveAsCommand_Executed(object sender, ExecutedRoutedEventArgs e)
- {
- Shell.Instance.SaveCurrentDocumentAs();
- }
-
- void SaveAllCommand_Executed(object sender, ExecutedRoutedEventArgs e)
- {
- Shell.Instance.SaveAll();
- }
-
- void RunCommand_Executed(object sender, ExecutedRoutedEventArgs e)
- {
- StringBuilder sb = new StringBuilder();
- var xmlWriter = XmlWriter.Create(new StringWriter(sb));
- Shell.Instance.CurrentDocument.DesignSurface.SaveDesigner(xmlWriter);
-
- var txt = sb.ToString();
- var xmlReader = XmlReader.Create(new StringReader(txt));
-
- var ctl = XamlReader.Load(xmlReader);
-
- Window wnd = ctl as Window;
- if (wnd == null) {
- wnd = new Window();
- wnd.Content = ctl;
- }
- wnd.Show();
- }
-
- void RenderToBitmapCommand_Executed(object sender, ExecutedRoutedEventArgs e)
- {
- int desiredWidth = 300;
- int desiredHeight = 300;
-
- StringBuilder sb = new StringBuilder();
- var xmlWriter = XmlWriter.Create(new StringWriter(sb));
- Shell.Instance.CurrentDocument.DesignSurface.SaveDesigner(xmlWriter);
-
- var txt = sb.ToString();
- var xmlReader = XmlReader.Create(new StringReader(txt));
-
- var ctl = XamlReader.Load(xmlReader) as Control;
- if (ctl is Window) {
- var wnd = ctl as Window;
- wnd.Width = desiredWidth;
- wnd.Height = desiredHeight;
- wnd.Top = -10000;
- wnd.Left = -10000;
- wnd.Show();
- } else {
- ctl.Measure(new Size(desiredWidth, desiredHeight));
- ctl.Arrange(new Rect(new Size(desiredWidth, desiredHeight)));
- }
-
- RenderTargetBitmap bmp = new RenderTargetBitmap(300, 300, 96, 96, PixelFormats.Default);
- bmp.Render(ctl);
-
- var encoder = new PngBitmapEncoder();
-
- encoder.Frames.Add(BitmapFrame.Create(bmp));
-
- var dlg = new SaveFileDialog();
- dlg.Filter = "*.png|*.png";
- if (dlg.ShowDialog() == true) {
- using (Stream stm = File.OpenWrite(dlg.FileName)) {
- encoder.Save(stm);
- stm.Flush();
- }
- }
-
- if (ctl is Window) {
- var wnd = ctl as Window;
- wnd.Close();
- }
- }
-
- void ExitCommand_Executed(object sender, ExecutedRoutedEventArgs e)
- {
- Shell.Instance.Exit();
- }
-
- void CurrentDocument_CanExecute(object sender, CanExecuteRoutedEventArgs e)
- {
- e.CanExecute = Shell.Instance.CurrentDocument != null;
- }
-
- void RouteDesignSurfaceCommands()
- {
- RouteDesignSurfaceCommand(ApplicationCommands.Undo);
- RouteDesignSurfaceCommand(ApplicationCommands.Redo);
- RouteDesignSurfaceCommand(ApplicationCommands.Copy);
- RouteDesignSurfaceCommand(ApplicationCommands.Cut);
- RouteDesignSurfaceCommand(ApplicationCommands.Paste);
- RouteDesignSurfaceCommand(ApplicationCommands.SelectAll);
- RouteDesignSurfaceCommand(ApplicationCommands.Delete);
- }
-
- void RouteDesignSurfaceCommand(RoutedCommand command)
- {
- var cb = new CommandBinding(command);
- cb.CanExecute += delegate(object sender, CanExecuteRoutedEventArgs e) {
- if (Shell.Instance.CurrentDocument != null) {
- Shell.Instance.CurrentDocument.DesignSurface.RaiseEvent(e);
- }else {
- e.CanExecute = false;
- }
- };
- cb.Executed += delegate(object sender, ExecutedRoutedEventArgs e) {
- Shell.Instance.CurrentDocument.DesignSurface.RaiseEvent(e);
- };
- CommandBindings.Add(cb);
- }
- }
-}
diff --git a/samples/XamlDesigner/MyTypeFinder.cs b/samples/XamlDesigner/MyTypeFinder.cs
deleted file mode 100644
index 6f529d4514a..00000000000
--- a/samples/XamlDesigner/MyTypeFinder.cs
+++ /dev/null
@@ -1,49 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Linq;
-using System.Reflection;
-using System.Text;
-using ICSharpCode.WpfDesign.XamlDom;
-
-namespace ICSharpCode.XamlDesigner
-{
- public class MyTypeFinder : XamlTypeFinder
- {
- public override Assembly LoadAssembly(string name)
- {
- foreach (var assemblyNode in Toolbox.Instance.AssemblyNodes)
- {
- if (assemblyNode.Name == name)
- return assemblyNode.Assembly;
- }
-
- return null;
- }
-
- public override XamlTypeFinder Clone()
- {
- return _instance;
- }
-
- private static object lockObj = new object();
-
- private static MyTypeFinder _instance;
- public static MyTypeFinder Instance
- {
- get
- {
- lock (lockObj)
- {
- if (_instance == null)
- {
- _instance = new MyTypeFinder();
- _instance.ImportFrom(CreateWpfTypeFinder());
- }
- }
-
- return _instance;
- }
- }
- }
-}
diff --git a/samples/XamlDesigner/NewFileTemplate.xaml b/samples/XamlDesigner/NewFileTemplate.xaml
deleted file mode 100644
index 5241a58a98d..00000000000
--- a/samples/XamlDesigner/NewFileTemplate.xaml
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/samples/XamlDesigner/Shell.cs b/samples/XamlDesigner/Shell.cs
deleted file mode 100644
index fad51787623..00000000000
--- a/samples/XamlDesigner/Shell.cs
+++ /dev/null
@@ -1,260 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.ComponentModel;
-using System.Collections.ObjectModel;
-using ICSharpCode.WpfDesign.Designer.PropertyGrid;
-using ICSharpCode.XamlDesigner.Configuration;
-using System.Collections.Specialized;
-using System.IO;
-using System.Windows;
-using System.Diagnostics;
-using ICSharpCode.WpfDesign.Designer.Services;
-
-namespace ICSharpCode.XamlDesigner
-{
- public class Shell : INotifyPropertyChanged
- {
- public Shell()
- {
- Documents = new ObservableCollection();
- RecentFiles = new ObservableCollection();
- Views = new Dictionary();
-
- LoadSettings();
- }
-
- public static Shell Instance = new Shell();
- public const string ApplicationTitle = "Xaml Designer";
-
- //public Toolbox Toolbox { get; set; }
- //public SceneTree SceneTree { get; set; }
- public IPropertyGrid PropertyGrid { get; internal set; }
- //public ErrorList ErrorList { get; set; }
-
- public ObservableCollection Documents { get; private set; }
- public ObservableCollection RecentFiles { get; private set; }
- public Dictionary Views { get; private set; }
-
- Document currentDocument;
-
- public Document CurrentDocument {
- get {
- return currentDocument;
- }
- set {
- currentDocument = value;
- RaisePropertyChanged("CurrentDocument");
- RaisePropertyChanged("Title");
- }
- }
-
- public string Title {
- get {
- if (CurrentDocument != null) {
- return CurrentDocument.Title + " - " + ApplicationTitle;
- }
- return ApplicationTitle;
- }
- }
-
- void LoadSettings()
- {
- if (Settings.Default.RecentFiles != null) {
- RecentFiles.AddRange(Settings.Default.RecentFiles.Cast());
- }
- }
-
- public void SaveSettings()
- {
- if (Settings.Default.RecentFiles == null) {
- Settings.Default.RecentFiles = new StringCollection();
- }
- else {
- Settings.Default.RecentFiles.Clear();
- }
- foreach (var f in RecentFiles) {
- Settings.Default.RecentFiles.Add(f);
- }
- }
-
- public static void ReportException(Exception x)
- {
- MessageBox.Show(x.ToString());
- }
-
- public void JumpToError(XamlError error)
- {
- if (CurrentDocument != null) {
- (Views[CurrentDocument] as DocumentView).JumpToError(error);
- }
- }
-
- public bool CanRefresh()
- {
- return CurrentDocument != null;
- }
-
- public void Refresh()
- {
- CurrentDocument.Refresh();
- }
-
- #region Files
-
- bool IsSomethingDirty {
- get {
- foreach (var doc in Shell.Instance.Documents) {
- if (doc.IsDirty) return true;
- }
- return false;
- }
- }
-
- static int nonameIndex = 1;
-
- public void New()
- {
- Document doc = new Document("New" + nonameIndex++, File.ReadAllText("NewFileTemplate.xaml"));
- Documents.Add(doc);
- CurrentDocument = doc;
- }
-
- public void Open()
- {
- var path = MainWindow.Instance.AskOpenFileName();
- if (path != null) {
- Open(path);
- }
- }
-
- public void Open(string path)
- {
- path = Path.GetFullPath(path);
-
- if (RecentFiles.Contains(path)) {
- RecentFiles.Remove(path);
- }
- RecentFiles.Insert(0, path);
-
- foreach (var doc in Documents) {
- if (doc.FilePath == path) {
- CurrentDocument = doc;
- return;
- }
- }
-
- var newDoc = new Document(path);
- Documents.Add(newDoc);
- CurrentDocument = newDoc;
- }
-
- public bool Save(Document doc)
- {
- if (doc.IsDirty) {
- if (doc.FilePath == null) {
- return SaveAs(doc);
- }
- doc.Save();
- }
- return true;
- }
-
- public bool SaveAs(Document doc)
- {
- var initName = doc.FileName ?? doc.Name + ".xaml";
- var path = MainWindow.Instance.AskSaveFileName(initName);
- if (path != null) {
- doc.SaveAs(path);
- return true;
- }
- return false;
- }
-
- public bool SaveAll()
- {
- foreach (var doc in Documents) {
- if (!Save(doc)) return false;
- }
- return true;
- }
-
- public bool Close(Document doc)
- {
- if (doc.IsDirty) {
- var result = MessageBox.Show("Save \"" + doc.Name + "\" ?", Shell.ApplicationTitle,
- MessageBoxButton.YesNoCancel, MessageBoxImage.Question);
-
- if (result == MessageBoxResult.Yes) {
- if (!Save(doc)) return false;
- }
- else if (result == MessageBoxResult.Cancel) {
- return false;
- }
- }
- Documents.Remove(doc);
- Views.Remove(doc);
- return true;
- }
-
- public bool CloseAll()
- {
- foreach (var doc in Documents.ToArray()) {
- if (!Close(doc)) return false;
- }
- return true;
- }
-
- public bool PrepareExit()
- {
- if (IsSomethingDirty) {
- var result = MessageBox.Show("Save All?", Shell.ApplicationTitle,
- MessageBoxButton.YesNoCancel, MessageBoxImage.Question);
-
- if (result == MessageBoxResult.Yes) {
- if (!SaveAll()) return false;
- }
- else if (result == MessageBoxResult.Cancel) {
- return false;
- }
- }
- return true;
- }
-
- public void Exit()
- {
- MainWindow.Instance.Close();
- }
-
- public void SaveCurrentDocument()
- {
- Save(CurrentDocument);
- }
-
- public void SaveCurrentDocumentAs()
- {
- SaveAs(CurrentDocument);
- }
-
- public void CloseCurrentDocument()
- {
- Close(CurrentDocument);
- }
-
- #endregion
-
- #region INotifyPropertyChanged Members
-
- public event PropertyChangedEventHandler PropertyChanged;
-
- void RaisePropertyChanged(string name)
- {
- if (PropertyChanged != null) {
- PropertyChanged(this, new PropertyChangedEventArgs(name));
- }
- }
-
- #endregion
- }
-}
diff --git a/samples/XamlDesigner/SimpleCommand.cs b/samples/XamlDesigner/SimpleCommand.cs
deleted file mode 100644
index 3daea1f5f0a..00000000000
--- a/samples/XamlDesigner/SimpleCommand.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Windows.Input;
-
-namespace ICSharpCode.XamlDesigner
-{
- public class SimpleCommand : RoutedUICommand
- {
- public SimpleCommand(string text)
- {
- Text = text;
- }
-
- public SimpleCommand(string text, ModifierKeys modifiers, Key key)
- {
- InputGestures.Add(new KeyGesture(key, modifiers));
- Text = text;
- }
-
- public SimpleCommand(string text, Key key)
- : this(text, ModifierKeys.None, key)
- {
- }
- }
-}
diff --git a/samples/XamlDesigner/TestFiles/1.xaml b/samples/XamlDesigner/TestFiles/1.xaml
deleted file mode 100644
index cca7754177c..00000000000
--- a/samples/XamlDesigner/TestFiles/1.xaml
+++ /dev/null
@@ -1,31 +0,0 @@
-
-
-
- CB
-
-
-
-
- a
-
-
-
- button on page 2
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/samples/XamlDesigner/TestFiles/2.xaml b/samples/XamlDesigner/TestFiles/2.xaml
deleted file mode 100644
index 1ecefb8e642..00000000000
--- a/samples/XamlDesigner/TestFiles/2.xaml
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/samples/XamlDesigner/TestFiles/3.xaml b/samples/XamlDesigner/TestFiles/3.xaml
deleted file mode 100644
index f4d3f43f080..00000000000
--- a/samples/XamlDesigner/TestFiles/3.xaml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
- Title
- Width
-
-
-
-
-
-
\ No newline at end of file
diff --git a/samples/XamlDesigner/TestFiles/4.xaml b/samples/XamlDesigner/TestFiles/4.xaml
deleted file mode 100644
index f4d3f43f080..00000000000
--- a/samples/XamlDesigner/TestFiles/4.xaml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
- Title
- Width
-
-
-
-
-
-
\ No newline at end of file
diff --git a/samples/XamlDesigner/Themes/Generic.xaml b/samples/XamlDesigner/Themes/Generic.xaml
deleted file mode 100644
index 88ad58858d0..00000000000
--- a/samples/XamlDesigner/Themes/Generic.xaml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/samples/XamlDesigner/Toolbox.cs b/samples/XamlDesigner/Toolbox.cs
deleted file mode 100644
index d4880827a7b..00000000000
--- a/samples/XamlDesigner/Toolbox.cs
+++ /dev/null
@@ -1,109 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Reflection;
-using System.Collections.ObjectModel;
-using ICSharpCode.XamlDesigner.Configuration;
-using System.Windows;
-using System.Collections.Specialized;
-using ICSharpCode.WpfDesign;
-
-namespace ICSharpCode.XamlDesigner
-{
- public class Toolbox
- {
- public Toolbox()
- {
- AssemblyNodes = new ObservableCollection();
- LoadSettings();
- }
-
- public static Toolbox Instance = new Toolbox();
- public ObservableCollection AssemblyNodes { get; private set; }
-
- public void AddAssembly(string path)
- {
- AddAssembly(path, true);
- }
-
- void AddAssembly(string path, bool updateSettings)
- {
- var assembly = Assembly.LoadFile(path);
-
- MyTypeFinder.Instance.RegisterAssembly(assembly);
-
- var node = new AssemblyNode();
- node.Assembly = assembly;
- node.Path = path;
- foreach (var t in assembly.GetExportedTypes()) {
- if (IsControl(t) /* && Metadata.IsPopularControl(t) */) {
- node.Controls.Add(new ControlNode() { Type = t });
- }
- }
-
- node.Controls.Sort(delegate(ControlNode c1, ControlNode c2) {
- return c1.Name.CompareTo(c2.Name);
- });
-
- AssemblyNodes.Add(node);
-
- if (updateSettings) {
- if (Settings.Default.AssemblyList == null) {
- Settings.Default.AssemblyList = new StringCollection();
- }
- Settings.Default.AssemblyList.Add(path);
- }
- }
-
- public void Remove(AssemblyNode node)
- {
- AssemblyNodes.Remove(node);
- Settings.Default.AssemblyList.Remove(node.Path);
- }
-
- public void LoadSettings()
- {
- if (Settings.Default.AssemblyList != null) {
- foreach (var path in Settings.Default.AssemblyList) {
- try
- {
- AddAssembly(Environment.ExpandEnvironmentVariables(path), false);
- }
- catch (Exception ex)
- { }
- }
- }
- }
-
- static bool IsControl(Type t)
- {
- return !t.IsAbstract && !t.IsGenericTypeDefinition && t.IsSubclassOf(typeof(FrameworkElement));
- }
- }
-
- public class AssemblyNode
- {
- public AssemblyNode()
- {
- Controls = new List();
- }
-
- public Assembly Assembly { get; set; }
- public List Controls { get; private set; }
- public string Path { get; set; }
-
- public string Name {
- get { return Assembly.GetName().Name; }
- }
- }
-
- public class ControlNode
- {
- public Type Type { get; set; }
-
- public string Name {
- get { return Type.Name; }
- }
- }
-}
diff --git a/samples/XamlDesigner/ToolboxView.xaml b/samples/XamlDesigner/ToolboxView.xaml
deleted file mode 100644
index ee357bda705..00000000000
--- a/samples/XamlDesigner/ToolboxView.xaml
+++ /dev/null
@@ -1,31 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/samples/XamlDesigner/ToolboxView.xaml.cs b/samples/XamlDesigner/ToolboxView.xaml.cs
deleted file mode 100644
index 3527ebe6668..00000000000
--- a/samples/XamlDesigner/ToolboxView.xaml.cs
+++ /dev/null
@@ -1,94 +0,0 @@
-using System.IO;
-using ICSharpCode.WpfDesign.Designer.OutlineView;
-using System;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.Collections.Specialized;
-using System.Linq;
-using System.Reflection;
-using System.Text;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Imaging;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
-using ICSharpCode.WpfDesign.Designer.Services;
-using Microsoft.Win32;
-
-namespace ICSharpCode.XamlDesigner
-{
- public partial class ToolboxView
- {
- public ToolboxView()
- {
- DataContext = Toolbox.Instance;
- InitializeComponent();
-
- new DragListener(this).DragStarted += Toolbox_DragStarted;
- uxTreeView.SelectedItemChanged += uxTreeView_SelectedItemChanged;
- uxTreeView.GotKeyboardFocus += uxTreeView_GotKeyboardFocus;
- }
-
- void uxTreeView_GotKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e)
- {
- PrepareTool(uxTreeView.SelectedItem as ControlNode, false);
- }
-
- void uxTreeView_SelectedItemChanged(object sender, RoutedPropertyChangedEventArgs e)
- {
- PrepareTool(uxTreeView.SelectedItem as ControlNode, false);
- }
-
- void Toolbox_DragStarted(object sender, MouseButtonEventArgs e)
- {
- PrepareTool(e.GetDataContext() as ControlNode, true);
- }
-
- void PrepareTool(ControlNode node, bool drag)
- {
- if (node != null) {
- var tool = new CreateComponentTool(node.Type);
- if (Shell.Instance.CurrentDocument != null) {
- Shell.Instance.CurrentDocument.DesignContext.Services.Tool.CurrentTool = tool;
- if (drag) {
- DragDrop.DoDragDrop(this, tool, DragDropEffects.Copy);
- }
- }
- }
- }
-
- protected override void OnKeyDown(KeyEventArgs e)
- {
- if (e.Key == Key.Delete) {
- Remove();
- }
- }
-
- void Remove()
- {
- AssemblyNode node = uxTreeView.SelectedItem as AssemblyNode;
- if (node != null) {
- Toolbox.Instance.Remove(node);
- }
- }
-
- private void BrowseForAssemblies_OnClick(object sender, RoutedEventArgs e)
- {
- var dlg = new OpenFileDialog();
- dlg.Filter = "Assemblies (*.dll)|*.dll";
- dlg.Multiselect = true;
- dlg.CheckFileExists = true;
- if (dlg.ShowDialog().Value)
- {
- foreach (var fileName in dlg.FileNames)
- {
- Toolbox.Instance.AddAssembly(fileName);
- }
- }
- }
- }
-}
diff --git a/samples/XamlDesigner/XamlDesigner.csproj b/samples/XamlDesigner/XamlDesigner.csproj
deleted file mode 100644
index fec8ea8135f..00000000000
--- a/samples/XamlDesigner/XamlDesigner.csproj
+++ /dev/null
@@ -1,214 +0,0 @@
-
-
-
- Debug
- AnyCPU
- 9.0.30729
- 2.0
- {27DA2B5C-2AAA-4478-AB00-3E184273C241}
- WinExe
- ICSharpCode.XamlDesigner
- XamlDesigner
- v4.5
- 512
- {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
- 4
- Configuration\app.manifest
- False
- False
- false
-
-
-
- true
- Full
- false
- bin\Debug\
- DEBUG;TRACE
- prompt
- 4
-
-
- pdbonly
- true
- bin\Release\
- TRACE
- prompt
- 4
-
-
- False
-
-
- False
- Auto
- 4194304
- x86
-
-
-
- ..\..\bin\AvalonDock.dll
-
-
- ..\..\bin\ICSharpCode.AvalonEdit.dll
-
-
- ..\..\bin\ICSharpCode.NRefactory.dll
-
-
- ..\..\bin\ICSharpCode.SharpDevelop.Widgets.dll
-
-
-
- 3.5
-
-
- 4.0
-
-
- 3.5
-
-
- 3.5
-
-
-
-
- 3.0
-
-
- 3.0
-
-
- 3.0
-
-
- 3.0
-
-
-
-
- MSBuild:Compile
- Designer
-
-
- App.xaml
- Code
-
-
- {78CC29AC-CC79-4355-B1F2-97936DF198AC}
- WpfDesign.Designer
-
-
- {88DA149F-21B2-48AB-82C4-28FB6BDFD783}
- WpfDesign.XamlDom
-
-
- {66A378A1-E9F4-4AD5-8946-D0EC06C2902F}
- WpfDesign
-
-
-
-
- Configuration\GlobalAssemblyInfo.cs
-
-
- BitmapButton.xaml
-
-
- Code
-
-
- True
- True
- Settings.settings
-
-
-
-
- DocumentView.xaml
-
-
- ErrorListView.xaml
-
-
-
-
-
-
- MainWindow.xaml
-
-
-
-
- ToolboxView.xaml
-
-
-
-
-
-
- Designer
- Always
-
-
- MSBuild:Compile
- Designer
-
-
- Designer
- MSBuild:Compile
-
-
- Designer
- MSBuild:Compile
-
-
- Designer
- MSBuild:Compile
-
-
- Designer
-
-
- Designer
-
-
- Designer
-
-
- Designer
-
-
- Designer
- MSBuild:Compile
-
-
- MSBuild:Compile
- Designer
-
-
-
-
-
-
- SettingsSingleFileGenerator
- Settings.Designer.cs
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/samples/XamlDesigner/XamlDesigner.sln b/samples/XamlDesigner/XamlDesigner.sln
deleted file mode 100644
index e4a9c002caa..00000000000
--- a/samples/XamlDesigner/XamlDesigner.sln
+++ /dev/null
@@ -1,45 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 11.00
-# Visual Studio 2010
-# SharpDevelop 5.0
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XamlDesigner", "XamlDesigner.csproj", "{27DA2B5C-2AAA-4478-AB00-3E184273C241}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WpfDesign", "..\..\src\AddIns\DisplayBindings\WpfDesign\WpfDesign\Project\WpfDesign.csproj", "{66A378A1-E9F4-4AD5-8946-D0EC06C2902F}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WpfDesign.Designer", "..\..\src\AddIns\DisplayBindings\WpfDesign\WpfDesign.Designer\Project\WpfDesign.Designer.csproj", "{78CC29AC-CC79-4355-B1F2-97936DF198AC}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WpfDesign.Tests", "..\..\src\AddIns\DisplayBindings\WpfDesign\WpfDesign.Designer\Tests\WpfDesign.Tests.csproj", "{943DBBB3-E84E-4CF4-917C-C05AFA8743C1}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WpfDesign.XamlDom", "..\..\src\AddIns\DisplayBindings\WpfDesign\WpfDesign.XamlDom\Project\WpfDesign.XamlDom.csproj", "{88DA149F-21B2-48AB-82C4-28FB6BDFD783}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {27DA2B5C-2AAA-4478-AB00-3E184273C241}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {27DA2B5C-2AAA-4478-AB00-3E184273C241}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {27DA2B5C-2AAA-4478-AB00-3E184273C241}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {27DA2B5C-2AAA-4478-AB00-3E184273C241}.Release|Any CPU.Build.0 = Release|Any CPU
- {66A378A1-E9F4-4AD5-8946-D0EC06C2902F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {66A378A1-E9F4-4AD5-8946-D0EC06C2902F}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {66A378A1-E9F4-4AD5-8946-D0EC06C2902F}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {66A378A1-E9F4-4AD5-8946-D0EC06C2902F}.Release|Any CPU.Build.0 = Release|Any CPU
- {78CC29AC-CC79-4355-B1F2-97936DF198AC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {78CC29AC-CC79-4355-B1F2-97936DF198AC}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {78CC29AC-CC79-4355-B1F2-97936DF198AC}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {78CC29AC-CC79-4355-B1F2-97936DF198AC}.Release|Any CPU.Build.0 = Release|Any CPU
- {943DBBB3-E84E-4CF4-917C-C05AFA8743C1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {943DBBB3-E84E-4CF4-917C-C05AFA8743C1}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {943DBBB3-E84E-4CF4-917C-C05AFA8743C1}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {943DBBB3-E84E-4CF4-917C-C05AFA8743C1}.Release|Any CPU.Build.0 = Release|Any CPU
- {88DA149F-21B2-48AB-82C4-28FB6BDFD783}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {88DA149F-21B2-48AB-82C4-28FB6BDFD783}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {88DA149F-21B2-48AB-82C4-28FB6BDFD783}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {88DA149F-21B2-48AB-82C4-28FB6BDFD783}.Release|Any CPU.Build.0 = Release|Any CPU
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
diff --git a/samples/XamlDesigner/XamlFormatter.cs b/samples/XamlDesigner/XamlFormatter.cs
deleted file mode 100644
index 70739e5fca4..00000000000
--- a/samples/XamlDesigner/XamlFormatter.cs
+++ /dev/null
@@ -1,203 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Xml.Linq;
-
-namespace ICSharpCode.XamlDesigner
-{
- public static class XamlFormatter
- {
- public static char IndentChar = ' ';
- public static int Indenation = 2;
- public static int LengthBeforeNewLine = 60;
-
- static StringBuilder sb;
- static int currentColumn;
- static int nextColumn;
-
- public static string Format(string xaml)
- {
- sb = new StringBuilder();
- currentColumn = 0;
- nextColumn = 0;
-
- try {
- var doc = XDocument.Parse(xaml);
- WalkContainer(doc);
- return sb.ToString();
- }
- catch {
- return xaml;
- }
- }
-
- static void WalkContainer(XContainer node)
- {
- foreach (var c in node.Nodes()) {
- if (c is XElement) {
- WalkElement(c as XElement);
- } else {
- NewLine();
- Append(c.ToString().Trim());
- }
- }
- }
-
- static void WalkElement(XElement e)
- {
- NewLine();
- string prefix1 = e.GetPrefixOfNamespace(e.Name.Namespace);
- string name1 = prefix1 == null ? e.Name.LocalName : prefix1 + ":" + e.Name.LocalName;
- Append("<" + name1);
-
- List list = new List();
- int length = name1.Length;
-
- foreach (var a in e.Attributes()) {
- string prefix2 = e.GetPrefixOfNamespace(a.Name.Namespace);
- var g = new AttributeString() { Name = a.Name, Prefix = prefix2, Value = a.Value };
- list.Add(g);
- length += g.FinalString.Length;
- }
-
- list.Sort(AttributeComparrer.Instance);
-
- if (length > LengthBeforeNewLine) {
- nextColumn = currentColumn + 1;
- for (int i = 0; i < list.Count; i++) {
- if (i > 0) {
- NewLine();
- }
- else {
- Append(" ");
- }
- Append(list[i].FinalString);
- }
- nextColumn -= name1.Length + 2;
- }
- else {
- foreach (var a in list) {
- Append(" " + a.FinalString);
- }
- }
-
- if (e.Nodes().Count() > 0) {
- Append(">");
- nextColumn += Indenation;
-
- WalkContainer(e);
-
- nextColumn -= Indenation;
- NewLine();
- Append("" + name1 + ">");
- }
- else {
- Append(" />");
- }
- }
-
- static void NewLine()
- {
- if (sb.Length > 0) {
- sb.AppendLine();
- sb.Append(new string(' ', nextColumn));
- currentColumn = nextColumn;
- }
- }
-
- static void Append(string s)
- {
- sb.Append(s);
- currentColumn += s.Length;
- }
-
- enum AttributeLayout
- {
- X,
- XmlnsMicrosoft,
- Xmlns,
- XmlnsWithClr,
- SpecialOrder,
- ByName,
- Attached,
- WithPrefix
- }
-
- class AttributeString
- {
- public XName Name;
- public string Prefix;
- public string Value;
-
- public string LocalName {
- get { return Name.LocalName; }
- }
-
- public string FinalName {
- get {
- return Prefix == null ? Name.LocalName : Prefix + ":" + Name.LocalName;
- }
- }
-
- public string FinalString {
- get {
- return FinalName + "=\"" + Value + "\"";
- }
- }
-
- public AttributeLayout GetAttributeLayout()
- {
- if (Prefix == "xmlns" || LocalName == "xmlns") {
- if (Value.StartsWith("http://schemas.microsoft.com")) return AttributeLayout.XmlnsMicrosoft;
- if (Value.StartsWith("clr")) return AttributeLayout.XmlnsWithClr;
- return AttributeLayout.Xmlns;
- }
- if (Prefix == "x") return AttributeLayout.X;
- if (Prefix != null) return AttributeLayout.WithPrefix;
- if (LocalName.Contains(".")) return AttributeLayout.Attached;
- if (AttributeComparrer.SpecialOrder.Contains(LocalName)) return AttributeLayout.SpecialOrder;
- return AttributeLayout.ByName;
- }
- }
-
- class AttributeComparrer : IComparer
- {
- public static AttributeComparrer Instance = new AttributeComparrer();
-
- public int Compare(AttributeString a1, AttributeString a2)
- {
- var y1 = a1.GetAttributeLayout();
- var y2 = a2.GetAttributeLayout();
- if (y1 == y2) {
- if (y1 == AttributeLayout.SpecialOrder) {
- return
- Array.IndexOf(SpecialOrder, a1.LocalName).CompareTo(
- Array.IndexOf(SpecialOrder, a2.LocalName));
- }
- return a1.FinalName.CompareTo(a2.FinalName);
- }
- return y1.CompareTo(y2);
- }
-
- public static string[] SpecialOrder = new string[] {
- "Name",
- "Content",
- "Command",
- "Executed",
- "CanExecute",
- "Width",
- "Height",
- "Margin",
- "HorizontalAlignment",
- "VerticalAlignment",
- "HorizontalContentAlignment",
- "VerticalContentAlignment",
- "StartPoint",
- "EndPoint",
- "Offset",
- "Color"
- };
- }
- }
-}
diff --git a/samples/XamlDesigner/app.config b/samples/XamlDesigner/app.config
deleted file mode 100644
index 9008dd2558b..00000000000
--- a/samples/XamlDesigner/app.config
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/AddIns/Analysis/CodeCoverage/Project/Src/CodeCoverageClassTreeNode.cs b/src/AddIns/Analysis/CodeCoverage/Project/Src/CodeCoverageClassTreeNode.cs
index ad70ea1695f..0a261624193 100644
--- a/src/AddIns/Analysis/CodeCoverage/Project/Src/CodeCoverageClassTreeNode.cs
+++ b/src/AddIns/Analysis/CodeCoverage/Project/Src/CodeCoverageClassTreeNode.cs
@@ -66,14 +66,11 @@ protected override void Initialize()
// Add methods.
CodeCoveragePropertyCollection properties = new CodeCoveragePropertyCollection();
foreach (CodeCoverageMethod method in Methods) {
- // method name that is generated by compiler, contains "__" (double underscore)
- if ( !method.Name.Contains("__") ) {
- if (method.IsProperty) {
- properties.Add(method);
- } else {
- CodeCoverageMethodTreeNode node = new CodeCoverageMethodTreeNode(method);
- node.AddTo(this);
- }
+ if (method.IsProperty) {
+ properties.Add(method);
+ } else {
+ CodeCoverageMethodTreeNode node = new CodeCoverageMethodTreeNode(method);
+ node.AddTo(this);
}
}
diff --git a/src/AddIns/Analysis/CodeCoverage/Project/Src/CodeCoverageMethodsTreeNode.cs b/src/AddIns/Analysis/CodeCoverage/Project/Src/CodeCoverageMethodsTreeNode.cs
index 590fe3f6411..f371de8d145 100644
--- a/src/AddIns/Analysis/CodeCoverage/Project/Src/CodeCoverageMethodsTreeNode.cs
+++ b/src/AddIns/Analysis/CodeCoverage/Project/Src/CodeCoverageMethodsTreeNode.cs
@@ -41,9 +41,6 @@ public CodeCoverageMethodsTreeNode(string name, List methods
decimal branchCoverage = 0;
int branchCoverageCount = 0;
foreach (CodeCoverageMethod method in methods) {
- if (method.Name.Contains("__")) {
- continue;
- }
visitedCodeLength += method.GetVisitedCodeLength();
unvisitedCodeLength += method.GetUnvisitedCodeLength();
if ( method.IsVisited ) {
diff --git a/src/AddIns/Analysis/CodeCoverage/Project/Src/CodeCoverageResults.cs b/src/AddIns/Analysis/CodeCoverage/Project/Src/CodeCoverageResults.cs
index e03986a8e67..5fdab6b0521 100644
--- a/src/AddIns/Analysis/CodeCoverage/Project/Src/CodeCoverageResults.cs
+++ b/src/AddIns/Analysis/CodeCoverage/Project/Src/CodeCoverageResults.cs
@@ -78,7 +78,6 @@ private void RegisterAssembly(XElement assembly)
var classNames =
assembly.Elements("Classes").Elements("Class").Where(
c =>
- !c.Element("FullName").Value.Contains("__") &&
c.Attribute("skippedDueTo") == null).Select(
c => c.Element("FullName").Value).Distinct().OrderBy(name => name);
foreach (string className in classNames) {
@@ -130,9 +129,7 @@ string GetAssemblyName(XElement reader)
CodeCoverageMethod AddMethod(CodeCoverageModule module, string className, XElement reader)
{
var method = new CodeCoverageMethod(className, reader, this);
- if (!method.Name.Contains("__")) {
- module.Methods.Add(method);
- }
+ module.Methods.Add(method);
return method;
}
diff --git a/src/AddIns/Analysis/CodeCoverage/Project/Src/CodeCoverageResultsReader.cs b/src/AddIns/Analysis/CodeCoverage/Project/Src/CodeCoverageResultsReader.cs
index b53be5572fb..9f5bdde79b4 100644
--- a/src/AddIns/Analysis/CodeCoverage/Project/Src/CodeCoverageResultsReader.cs
+++ b/src/AddIns/Analysis/CodeCoverage/Project/Src/CodeCoverageResultsReader.cs
@@ -52,8 +52,9 @@ public IEnumerable GetResults()
CodeCoverageResults ReadCodeCoverageResults(string fileName)
{
- TextReader reader = fileSystem.OpenText(FileName.Create(fileName));
- return new CodeCoverageResults(reader);
+ using (TextReader reader = fileSystem.OpenText(FileName.Create(fileName))) {
+ return new CodeCoverageResults(reader);
+ }
}
public IEnumerable GetMissingResultsFiles()
diff --git a/src/AddIns/Analysis/CodeCoverage/Project/Src/OpenCoverApplication.cs b/src/AddIns/Analysis/CodeCoverage/Project/Src/OpenCoverApplication.cs
index fdd2a97d49c..805ac8e593f 100644
--- a/src/AddIns/Analysis/CodeCoverage/Project/Src/OpenCoverApplication.cs
+++ b/src/AddIns/Analysis/CodeCoverage/Project/Src/OpenCoverApplication.cs
@@ -104,7 +104,7 @@ public ProcessStartInfo GetProcessStartInfo()
string GetArguments()
{
// IMPORTANT: https://github.com/sawilde/opencover/wiki/Usage
- arguments = new StringBuilder("-register:user ");
+ arguments = new StringBuilder("-register:user -mergebyhash ");
AppendTarget();
AppendTargetWorkingDirectory();
diff --git a/src/AddIns/Analysis/CodeCoverage/Project/Src/RunTestWithCodeCoverageCommand.cs b/src/AddIns/Analysis/CodeCoverage/Project/Src/RunTestWithCodeCoverageCommand.cs
index b60ff8f7773..aafd3f7464b 100644
--- a/src/AddIns/Analysis/CodeCoverage/Project/Src/RunTestWithCodeCoverageCommand.cs
+++ b/src/AddIns/Analysis/CodeCoverage/Project/Src/RunTestWithCodeCoverageCommand.cs
@@ -119,13 +119,18 @@ void ShowCodeCoverageResultsPad()
void DisplayCodeCoverageResults(CodeCoverageResultsReader coverageResultsReader)
{
- foreach (CodeCoverageResults result in coverageResultsReader.GetResults()) {
+ foreach (CodeCoverageResults result in GetResults(coverageResultsReader)) {
DisplayCodeCoverageResults(result);
}
foreach (string missingFile in coverageResultsReader.GetMissingResultsFiles()) {
DisplayNoCodeCoverageResultsGeneratedMessage(missingFile);
}
}
+
+ IEnumerable GetResults(CodeCoverageResultsReader coverageResultsReader)
+ {
+ return SD.MainThread.InvokeIfRequired(() => coverageResultsReader.GetResults().ToList());
+ }
void DisplayCodeCoverageResults(CodeCoverageResults results)
{
diff --git a/src/AddIns/Analysis/CodeCoverage/Test/Testing/OpenCoverApplicationTests.cs b/src/AddIns/Analysis/CodeCoverage/Test/Testing/OpenCoverApplicationTests.cs
index 68fffe43400..001f04105ea 100644
--- a/src/AddIns/Analysis/CodeCoverage/Test/Testing/OpenCoverApplicationTests.cs
+++ b/src/AddIns/Analysis/CodeCoverage/Test/Testing/OpenCoverApplicationTests.cs
@@ -163,7 +163,7 @@ public void GetProcessStartInfoWhenNoIncludedItemsReturnsCommandLineWithIncludeF
ProcessStartInfo processStartInfo = openCoverApp.GetProcessStartInfo();
string expectedCommandLine =
- "-register:user -target:\"d:\\sharpdevelop\\bin\\Tools\\NUnit\\nunit-console-x86.exe\" " +
+ "-register:user -mergebyhash -target:\"d:\\sharpdevelop\\bin\\Tools\\NUnit\\nunit-console-x86.exe\" " +
"-targetdir:\"c:\\projects\\MyTests\\bin\\Debug\" " +
"-targetargs:\"\\\"c:\\projects\\MyTests\\bin\\Debug\\MyTests.dll\\\" /noxml\" " +
"-output:\"c:\\projects\\MyTests\\OpenCover\\coverage.xml\" " +
@@ -187,7 +187,7 @@ public void GetProcessStartInfoWhenHaveIncludedAndExcludedItemsReturnsCommandLin
ProcessStartInfo processStartInfo = openCoverApp.GetProcessStartInfo();
string expectedCommandLine =
- "-register:user -target:\"d:\\sharpdevelop\\bin\\Tools\\NUnit\\nunit-console-x86.exe\" " +
+ "-register:user -mergebyhash -target:\"d:\\sharpdevelop\\bin\\Tools\\NUnit\\nunit-console-x86.exe\" " +
"-targetdir:\"c:\\projects\\MyTests\\bin\\Debug\" " +
"-targetargs:\"\\\"c:\\projects\\MyTests\\bin\\Debug\\MyTests.dll\\\" /noxml\" " +
"-output:\"c:\\projects\\MyTests\\OpenCover\\coverage.xml\" " +
diff --git a/src/AddIns/Analysis/CodeQuality/CodeQuality.csproj b/src/AddIns/Analysis/CodeQuality/CodeQuality.csproj
index 6f26ee88e3a..2d9b18d0104 100644
--- a/src/AddIns/Analysis/CodeQuality/CodeQuality.csproj
+++ b/src/AddIns/Analysis/CodeQuality/CodeQuality.csproj
@@ -134,7 +134,7 @@
False
- {B2BBC7BC-837C-40ED-A6DB-D5AE8626212F}
+ {2b8f4f83-c2b3-4e84-a27b-8dee1be0e006}
ICSharpCode.NRefactory.Cecil
False
diff --git a/src/AddIns/Analysis/CodeQuality/Reporting/BaseReport.cs b/src/AddIns/Analysis/CodeQuality/Reporting/BaseReport.cs
index 00c55cadd01..c2799de1c26 100644
--- a/src/AddIns/Analysis/CodeQuality/Reporting/BaseReport.cs
+++ b/src/AddIns/Analysis/CodeQuality/Reporting/BaseReport.cs
@@ -18,6 +18,7 @@
using System;
using System.Collections.Generic;
+using ICSharpCode.Reporting.Interfaces;
using ICSharpCode.Reporting.Items;
@@ -41,6 +42,6 @@ public BaseReport(List fileNames)
protected List FileNames {get;private set;}
- public ReportSettings ReportSettings {get;set;}
+ public IReportSettings ReportSettings {get;set;}
}
}
diff --git a/src/AddIns/Analysis/Profiler/Controller/Profiler.Controller.csproj b/src/AddIns/Analysis/Profiler/Controller/Profiler.Controller.csproj
index 2d0341be84b..ab9dbf6b097 100644
--- a/src/AddIns/Analysis/Profiler/Controller/Profiler.Controller.csproj
+++ b/src/AddIns/Analysis/Profiler/Controller/Profiler.Controller.csproj
@@ -173,7 +173,7 @@
- {600D7F63-DACE-4933-BE8C-B51A948A86D4}
+ {fe88fe17-d9fb-4fcc-9a35-6bffb6b26cc6}
Profiler.X64Converter
false
diff --git a/src/AddIns/Analysis/UnitTesting/Model/TestBase.cs b/src/AddIns/Analysis/UnitTesting/Model/TestBase.cs
index 5e84dcd31a4..071da0f61e3 100644
--- a/src/AddIns/Analysis/UnitTesting/Model/TestBase.cs
+++ b/src/AddIns/Analysis/UnitTesting/Model/TestBase.cs
@@ -65,6 +65,9 @@ protected set {
void ChangeResult(TestResultType newResult)
{
TestResultType oldResult = result;
+ if (oldResult == TestResultType.Failure && newResult == TestResultType.Success) {
+ return; // do not revert result from failure to success (Test with data source)
+ }
if (oldResult != newResult) {
result = newResult;
OnResultChanged(new TestResultTypeChangedEventArgs(oldResult, newResult));
diff --git a/src/AddIns/Analysis/UnitTesting/Model/TestProjectBase.cs b/src/AddIns/Analysis/UnitTesting/Model/TestProjectBase.cs
index 741a9407a72..3d3f70453e3 100644
--- a/src/AddIns/Analysis/UnitTesting/Model/TestProjectBase.cs
+++ b/src/AddIns/Analysis/UnitTesting/Model/TestProjectBase.cs
@@ -42,7 +42,7 @@ public abstract class TestProjectBase : TestBase, ITestProject
IProject project;
Dictionary topLevelTestClasses = new Dictionary();
- public TestProjectBase(IProject project)
+ protected TestProjectBase(IProject project)
{
if (project == null)
throw new ArgumentNullException("project");
diff --git a/src/AddIns/Analysis/UnitTesting/Test/NUnit/NUnitTestResultFailureTestFixture.cs b/src/AddIns/Analysis/UnitTesting/Test/NUnit/NUnitTestResultFailureTestFixture.cs
index 27ae8c569b9..5c6e5b0e4b0 100644
--- a/src/AddIns/Analysis/UnitTesting/Test/NUnit/NUnitTestResultFailureTestFixture.cs
+++ b/src/AddIns/Analysis/UnitTesting/Test/NUnit/NUnitTestResultFailureTestFixture.cs
@@ -18,7 +18,6 @@
using System;
using ICSharpCode.NRefactory.TypeSystem;
-using ICSharpCode.SharpDevelop;
using ICSharpCode.UnitTesting;
using NUnit.Framework;
diff --git a/src/AddIns/Analysis/UnitTesting/Test/UnitTesting.Tests.csproj b/src/AddIns/Analysis/UnitTesting/Test/UnitTesting.Tests.csproj
index 95fc8bef733..bc766505b49 100644
--- a/src/AddIns/Analysis/UnitTesting/Test/UnitTesting.Tests.csproj
+++ b/src/AddIns/Analysis/UnitTesting/Test/UnitTesting.Tests.csproj
@@ -104,7 +104,7 @@
- {B2BBC7BC-837C-40ED-A6DB-D5AE8626212F}
+ {2b8f4f83-c2b3-4e84-a27b-8dee1be0e006}
ICSharpCode.NRefactory.Cecil
diff --git a/src/AddIns/BackendBindings/CSharpBinding/Project/CSharpBinding.addin b/src/AddIns/BackendBindings/CSharpBinding/Project/CSharpBinding.addin
index 785b7fcd745..bbf1b8ea72a 100644
--- a/src/AddIns/BackendBindings/CSharpBinding/Project/CSharpBinding.addin
+++ b/src/AddIns/BackendBindings/CSharpBinding/Project/CSharpBinding.addin
@@ -115,6 +115,9 @@
+
@@ -232,8 +235,6 @@
-
-
@@ -412,7 +413,6 @@
-
diff --git a/src/AddIns/BackendBindings/CSharpBinding/Project/CSharpBinding.csproj b/src/AddIns/BackendBindings/CSharpBinding/Project/CSharpBinding.csproj
index 848785d6fb1..acc35ef79a9 100644
--- a/src/AddIns/BackendBindings/CSharpBinding/Project/CSharpBinding.csproj
+++ b/src/AddIns/BackendBindings/CSharpBinding/Project/CSharpBinding.csproj
@@ -256,7 +256,7 @@
False
- {9E951B9F-6AC2-4537-9D0B-0AE7C026D5A1}
+ {7d7e92df-aceb-4b69-92c8-8ac7a703cd57}
FormsDesigner
False
diff --git a/src/AddIns/BackendBindings/CSharpBinding/Project/Resources/CSharp-Semantic.xshd b/src/AddIns/BackendBindings/CSharpBinding/Project/Resources/CSharp-Semantic.xshd
index 3e1bba50c70..7845675c99c 100644
--- a/src/AddIns/BackendBindings/CSharpBinding/Project/Resources/CSharp-Semantic.xshd
+++ b/src/AddIns/BackendBindings/CSharpBinding/Project/Resources/CSharp-Semantic.xshd
@@ -7,6 +7,7 @@
+
@@ -122,6 +123,18 @@
+
+ \$"
+ "
+
+
+
+
+
+
+
+
+
@[\w\d_]+
diff --git a/src/AddIns/BackendBindings/CSharpBinding/Project/Src/Completion/CSharpCompletionBinding.cs b/src/AddIns/BackendBindings/CSharpBinding/Project/Src/Completion/CSharpCompletionBinding.cs
index 69cba35ecd3..01af3ab3d0d 100644
--- a/src/AddIns/BackendBindings/CSharpBinding/Project/Src/Completion/CSharpCompletionBinding.cs
+++ b/src/AddIns/BackendBindings/CSharpBinding/Project/Src/Completion/CSharpCompletionBinding.cs
@@ -35,7 +35,7 @@
namespace CSharpBinding.Completion
{
- public class CSharpCompletionBinding : ICodeCompletionBinding
+ public class CSharpCompletionBinding : ICodeCompletionBinding, IInsightCodeCompletionBinding
{
ICodeContext context;
TextLocation currentLocation;
@@ -70,8 +70,25 @@ public bool CtrlSpace(ITextEditor editor)
{
return ShowCompletion(editor, '\0', true);
}
-
- bool ShowCompletion(ITextEditor editor, char completionChar, bool ctrlSpace)
+
+ public bool CtrlShiftSpace(ITextEditor editor)
+ {
+ return ShowInsight(editor);
+ }
+
+ private int GetCaretOffset(ITextEditor editor, CSharpCompletionContext completionContext)
+ {
+ int caretOffset;
+ if (fileContent == null) {
+ caretOffset = editor.Caret.Offset;
+ currentLocation = editor.Caret.Location;
+ } else {
+ caretOffset = completionContext.Document.GetOffset(currentLocation);
+ }
+ return caretOffset;
+ }
+
+ CSharpCompletionContext GetCompletionContext(ITextEditor editor)
{
CSharpCompletionContext completionContext;
if (fileContent == null) {
@@ -79,17 +96,17 @@ bool ShowCompletion(ITextEditor editor, char completionChar, bool ctrlSpace)
} else {
completionContext = CSharpCompletionContext.Get(editor, context, currentLocation, fileContent);
}
+ return completionContext;
+ }
+
+ bool ShowCompletion(ITextEditor editor, char completionChar, bool ctrlSpace)
+ {
+ var completionContext = GetCompletionContext(editor);
if (completionContext == null)
return false;
-
- int caretOffset;
- if (fileContent == null) {
- caretOffset = editor.Caret.Offset;
- currentLocation = editor.Caret.Location;
- } else {
- caretOffset = completionContext.Document.GetOffset(currentLocation);
- }
-
+
+ int caretOffset = GetCaretOffset(editor, completionContext);
+
var completionFactory = new CSharpCompletionDataFactory(completionContext, new CSharpResolver(completionContext.TypeResolveContextAtCaret));
CSharpCompletionEngine cce = new CSharpCompletionEngine(
@@ -112,7 +129,9 @@ bool ShowCompletion(ITextEditor editor, char completionChar, bool ctrlSpace)
triggerWordLength = 0;
}
completionData = cce.GetCompletionData(startPos, true);
- completionData = completionData.Concat(cce.GetImportCompletionData(startPos));
+ if (!completionContext.OnlyTypeMembersFitAtPosition(startPos)) {
+ completionData = completionData.Concat(cce.GetImportCompletionData(startPos));
+ }
} else {
startPos = caretOffset;
if (char.IsLetterOrDigit (completionChar) || completionChar == '_') {
@@ -139,7 +158,36 @@ bool ShowCompletion(ITextEditor editor, char completionChar, bool ctrlSpace)
return true;
}
- if (CodeCompletionOptions.InsightEnabled && !ctrlSpace) {
+ if (!ctrlSpace) {
+ // Method Insight
+ // Method Insight
+ return ShowInsight(caretOffset, completionContext, completionFactory, completionChar);
+ }
+ return false;
+ }
+
+ bool ShowInsight(ITextEditor editor)
+ {
+ var completionContext = GetCompletionContext(editor);
+ if (completionContext == null)
+ return false;
+
+ int caretOffset = GetCaretOffset(editor, completionContext);
+
+ var completionFactory = new CSharpCompletionDataFactory(
+ completionContext,
+ new CSharpResolver(completionContext.TypeResolveContextAtCaret));
+
+ return ShowInsight(caretOffset, completionContext, completionFactory, '(');
+ }
+
+ bool ShowInsight(
+ int caretOffset,
+ CSharpCompletionContext completionContext,
+ CSharpCompletionDataFactory completionFactory,
+ char completionChar)
+ {
+ if (CodeCompletionOptions.InsightEnabled) {
// Method Insight
var pce = new CSharpParameterCompletionEngine(
completionContext.Document,
diff --git a/src/AddIns/BackendBindings/CSharpBinding/Project/Src/Completion/CSharpCompletionContext.cs b/src/AddIns/BackendBindings/CSharpBinding/Project/Src/Completion/CSharpCompletionContext.cs
index 2f4623dcf75..5ad49fb12f5 100644
--- a/src/AddIns/BackendBindings/CSharpBinding/Project/Src/Completion/CSharpCompletionContext.cs
+++ b/src/AddIns/BackendBindings/CSharpBinding/Project/Src/Completion/CSharpCompletionContext.cs
@@ -80,6 +80,30 @@ public static CSharpCompletionContext Get(ITextEditor editor, ICodeContext conte
return new CSharpCompletionContext(editor, EmptyList.Instance, compilation, projectContent, document, unresolvedFile, currentLocation);
}
+
+ ///
+ /// Look back for the nearest char that is not a part of an identifier or a whitespace.
+ /// (We don't stop on whitespaces because it is legal to have a piece of code like "Foo. Bar(). Baz()")
+ /// If the char we found is a dot, then the code completion suggestions should only include type members,
+ /// but not types from the outer scope.
+ /// If the char we found is not a dot (e. g., a semicolon), then the code completion suggestions can include type names.
+ ///
+ internal bool OnlyTypeMembersFitAtPosition(int offset)
+ {
+ var c = '\0';
+ var pos = offset - 1;
+ while (pos >= 0) {
+ c = Document.GetCharAt(pos);
+ if (!char.IsLetterOrDigit(c) && c != '_' && !char.IsWhiteSpace(c))
+ break;
+ pos--;
+ }
+
+ if (pos == -1 || c != '.')
+ return false;
+
+ return true;
+ }
private CSharpCompletionContext(ITextEditor editor, IList conditionalSymbols, ICompilation compilation, IProjectContent projectContent, IDocument document, CSharpUnresolvedFile unresolvedFile, TextLocation caretLocation)
{
diff --git a/src/AddIns/BackendBindings/CSharpBinding/Project/Src/Parser/CSharpSymbolSearch.cs b/src/AddIns/BackendBindings/CSharpBinding/Project/Src/Parser/CSharpSymbolSearch.cs
index 6d21e0bb231..c40476b4a31 100644
--- a/src/AddIns/BackendBindings/CSharpBinding/Project/Src/Parser/CSharpSymbolSearch.cs
+++ b/src/AddIns/BackendBindings/CSharpBinding/Project/Src/Parser/CSharpSymbolSearch.cs
@@ -193,7 +193,7 @@ public Task RenameAsync(SymbolRenameArgs args, Action callback, Act
var cancellationToken = args.ProgressMonitor.CancellationToken;
return Task.Run(
() => {
- bool isNameValid = Mono.CSharp.Tokenizer.IsValidIdentifier(args.NewName);
+ bool isNameValid = ICSharpCode.NRefactory.MonoCSharp.Tokenizer.IsValidIdentifier(args.NewName);
object progressLock = new object();
Parallel.ForEach(
searchScopesPerFile.Keys,
diff --git a/src/AddIns/BackendBindings/CSharpBinding/Project/Src/Refactoring/CreatePropertiesDialog.xaml.cs b/src/AddIns/BackendBindings/CSharpBinding/Project/Src/Refactoring/CreatePropertiesDialog.xaml.cs
index d5a459a037d..d383fdc9cd6 100644
--- a/src/AddIns/BackendBindings/CSharpBinding/Project/Src/Refactoring/CreatePropertiesDialog.xaml.cs
+++ b/src/AddIns/BackendBindings/CSharpBinding/Project/Src/Refactoring/CreatePropertiesDialog.xaml.cs
@@ -257,7 +257,7 @@ PropertyDeclaration CreateProperty(IField field, bool createGetter, bool createS
public static Modifiers ConvertModifier(Modifiers modifiers, ITypeDefinition targetContext)
{
IProject project = targetContext.ParentAssembly.GetProject();
- if (targetContext != null && project != null && targetContext.DeclaringType != null) {
+ if (targetContext != null && project != null && targetContext.DeclaringTypeDefinition != null) {
// if (project.LanguageBinding.IsClassWithImplicitlyStaticMembers(targetContext.CallingClass)) {
return modifiers & ~Modifiers.Static;
// }
diff --git a/src/AddIns/BackendBindings/CSharpBinding/Tests/CSharpBinding.Tests.csproj b/src/AddIns/BackendBindings/CSharpBinding/Tests/CSharpBinding.Tests.csproj
index 1a16e6f6fc4..8fb7b71dd25 100644
--- a/src/AddIns/BackendBindings/CSharpBinding/Tests/CSharpBinding.Tests.csproj
+++ b/src/AddIns/BackendBindings/CSharpBinding/Tests/CSharpBinding.Tests.csproj
@@ -82,7 +82,7 @@
ICSharpCode.AvalonEdit
- {B2BBC7BC-837C-40ED-A6DB-D5AE8626212F}
+ {2b8f4f83-c2b3-4e84-a27b-8dee1be0e006}
ICSharpCode.NRefactory.Cecil
diff --git a/src/AddIns/BackendBindings/JavaScriptBinding/JavaScriptBinding.sln b/src/AddIns/BackendBindings/JavaScriptBinding/JavaScriptBinding.sln
deleted file mode 100644
index 8bc9e46196f..00000000000
--- a/src/AddIns/BackendBindings/JavaScriptBinding/JavaScriptBinding.sln
+++ /dev/null
@@ -1,120 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 11.00
-# Visual Studio 2010
-# SharpDevelop 4.1.0.7683-alpha
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "JavaScriptBinding", "Project\JavaScriptBinding.csproj", "{062B7E01-AF3D-430D-BE33-17FF3EF4F647}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "JavaScriptBinding.Tests", "Test\JavaScriptBinding.Tests.csproj", "{66B1741A-CCCE-4692-81EA-1D5D58ECC5E5}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.SharpDevelop", "..\..\..\Main\Base\Project\ICSharpCode.SharpDevelop.csproj", "{2748AD25-9C63-4E12-877B-4DCE96FBED54}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.Core", "..\..\..\Main\Core\Project\ICSharpCode.Core.csproj", "{35CEF10F-2D4C-45F2-9DD1-161E0FEC583C}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AvalonDock", "..\..\..\Libraries\AvalonDock\AvalonDock\AvalonDock.csproj", "{87E61430-4243-45F2-B74E-0A4C096CEBF3}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.AvalonEdit", "..\..\..\Libraries\AvalonEdit\ICSharpCode.AvalonEdit\ICSharpCode.AvalonEdit.csproj", "{6C55B776-26D4-4DB3-A6AB-87E783B2F3D1}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NRefactory", "..\..\..\Libraries\NRefactory\Project\NRefactory.csproj", "{3A9AE6AA-BC07-4A2F-972C-581E3AE2F195}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.Core.Presentation", "..\..\..\Main\ICSharpCode.Core.Presentation\ICSharpCode.Core.Presentation.csproj", "{7E4A7172-7FF5-48D0-B719-7CD959DD1AC9}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.Core.WinForms", "..\..\..\Main\ICSharpCode.Core.WinForms\ICSharpCode.Core.WinForms.csproj", "{857CA1A3-FC88-4BE0-AB6A-D1EE772AB288}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.SharpDevelop.Dom", "..\..\..\Main\ICSharpCode.SharpDevelop.Dom\Project\ICSharpCode.SharpDevelop.Dom.csproj", "{924EE450-603D-49C1-A8E5-4AFAA31CE6F3}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.SharpDevelop.Widgets", "..\..\..\Main\ICSharpCode.SharpDevelop.Widgets\Project\ICSharpCode.SharpDevelop.Widgets.csproj", "{8035765F-D51F-4A0C-A746-2FD100E19419}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|x86 = Debug|x86
- Release|x86 = Release|x86
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {062B7E01-AF3D-430D-BE33-17FF3EF4F647}.Debug|x86.Build.0 = Debug|x86
- {062B7E01-AF3D-430D-BE33-17FF3EF4F647}.Debug|x86.ActiveCfg = Debug|x86
- {062B7E01-AF3D-430D-BE33-17FF3EF4F647}.Release|x86.Build.0 = Release|x86
- {062B7E01-AF3D-430D-BE33-17FF3EF4F647}.Release|x86.ActiveCfg = Release|x86
- {66B1741A-CCCE-4692-81EA-1D5D58ECC5E5}.Debug|x86.Build.0 = Debug|x86
- {66B1741A-CCCE-4692-81EA-1D5D58ECC5E5}.Debug|x86.ActiveCfg = Debug|x86
- {66B1741A-CCCE-4692-81EA-1D5D58ECC5E5}.Release|x86.Build.0 = Release|x86
- {66B1741A-CCCE-4692-81EA-1D5D58ECC5E5}.Release|x86.ActiveCfg = Release|x86
- {66B1741A-CCCE-4692-81EA-1D5D58ECC5E5}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {66B1741A-CCCE-4692-81EA-1D5D58ECC5E5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {66B1741A-CCCE-4692-81EA-1D5D58ECC5E5}.Release|Any CPU.Build.0 = Release|Any CPU
- {66B1741A-CCCE-4692-81EA-1D5D58ECC5E5}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {2748AD25-9C63-4E12-877B-4DCE96FBED54}.Debug|x86.Build.0 = Debug|Any CPU
- {2748AD25-9C63-4E12-877B-4DCE96FBED54}.Debug|x86.ActiveCfg = Debug|Any CPU
- {2748AD25-9C63-4E12-877B-4DCE96FBED54}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {2748AD25-9C63-4E12-877B-4DCE96FBED54}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {2748AD25-9C63-4E12-877B-4DCE96FBED54}.Release|x86.Build.0 = Release|Any CPU
- {2748AD25-9C63-4E12-877B-4DCE96FBED54}.Release|x86.ActiveCfg = Release|Any CPU
- {2748AD25-9C63-4E12-877B-4DCE96FBED54}.Release|Any CPU.Build.0 = Release|Any CPU
- {2748AD25-9C63-4E12-877B-4DCE96FBED54}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {35CEF10F-2D4C-45F2-9DD1-161E0FEC583C}.Debug|x86.Build.0 = Debug|Any CPU
- {35CEF10F-2D4C-45F2-9DD1-161E0FEC583C}.Debug|x86.ActiveCfg = Debug|Any CPU
- {35CEF10F-2D4C-45F2-9DD1-161E0FEC583C}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {35CEF10F-2D4C-45F2-9DD1-161E0FEC583C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {35CEF10F-2D4C-45F2-9DD1-161E0FEC583C}.Release|x86.Build.0 = Release|Any CPU
- {35CEF10F-2D4C-45F2-9DD1-161E0FEC583C}.Release|x86.ActiveCfg = Release|Any CPU
- {35CEF10F-2D4C-45F2-9DD1-161E0FEC583C}.Release|Any CPU.Build.0 = Release|Any CPU
- {35CEF10F-2D4C-45F2-9DD1-161E0FEC583C}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {87E61430-4243-45F2-B74E-0A4C096CEBF3}.Debug|x86.Build.0 = Debug|Any CPU
- {87E61430-4243-45F2-B74E-0A4C096CEBF3}.Debug|x86.ActiveCfg = Debug|Any CPU
- {87E61430-4243-45F2-B74E-0A4C096CEBF3}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {87E61430-4243-45F2-B74E-0A4C096CEBF3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {87E61430-4243-45F2-B74E-0A4C096CEBF3}.Release|x86.Build.0 = Release|Any CPU
- {87E61430-4243-45F2-B74E-0A4C096CEBF3}.Release|x86.ActiveCfg = Release|Any CPU
- {87E61430-4243-45F2-B74E-0A4C096CEBF3}.Release|Any CPU.Build.0 = Release|Any CPU
- {87E61430-4243-45F2-B74E-0A4C096CEBF3}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {6C55B776-26D4-4DB3-A6AB-87E783B2F3D1}.Debug|x86.Build.0 = Debug|Any CPU
- {6C55B776-26D4-4DB3-A6AB-87E783B2F3D1}.Debug|x86.ActiveCfg = Debug|Any CPU
- {6C55B776-26D4-4DB3-A6AB-87E783B2F3D1}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {6C55B776-26D4-4DB3-A6AB-87E783B2F3D1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {6C55B776-26D4-4DB3-A6AB-87E783B2F3D1}.Release|x86.Build.0 = Release|Any CPU
- {6C55B776-26D4-4DB3-A6AB-87E783B2F3D1}.Release|x86.ActiveCfg = Release|Any CPU
- {6C55B776-26D4-4DB3-A6AB-87E783B2F3D1}.Release|Any CPU.Build.0 = Release|Any CPU
- {6C55B776-26D4-4DB3-A6AB-87E783B2F3D1}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {3A9AE6AA-BC07-4A2F-972C-581E3AE2F195}.Debug|x86.Build.0 = Debug|Any CPU
- {3A9AE6AA-BC07-4A2F-972C-581E3AE2F195}.Debug|x86.ActiveCfg = Debug|Any CPU
- {3A9AE6AA-BC07-4A2F-972C-581E3AE2F195}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {3A9AE6AA-BC07-4A2F-972C-581E3AE2F195}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {3A9AE6AA-BC07-4A2F-972C-581E3AE2F195}.Release|x86.Build.0 = Release|Any CPU
- {3A9AE6AA-BC07-4A2F-972C-581E3AE2F195}.Release|x86.ActiveCfg = Release|Any CPU
- {3A9AE6AA-BC07-4A2F-972C-581E3AE2F195}.Release|Any CPU.Build.0 = Release|Any CPU
- {3A9AE6AA-BC07-4A2F-972C-581E3AE2F195}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {7E4A7172-7FF5-48D0-B719-7CD959DD1AC9}.Debug|x86.Build.0 = Debug|Any CPU
- {7E4A7172-7FF5-48D0-B719-7CD959DD1AC9}.Debug|x86.ActiveCfg = Debug|Any CPU
- {7E4A7172-7FF5-48D0-B719-7CD959DD1AC9}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {7E4A7172-7FF5-48D0-B719-7CD959DD1AC9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {7E4A7172-7FF5-48D0-B719-7CD959DD1AC9}.Release|x86.Build.0 = Release|Any CPU
- {7E4A7172-7FF5-48D0-B719-7CD959DD1AC9}.Release|x86.ActiveCfg = Release|Any CPU
- {7E4A7172-7FF5-48D0-B719-7CD959DD1AC9}.Release|Any CPU.Build.0 = Release|Any CPU
- {7E4A7172-7FF5-48D0-B719-7CD959DD1AC9}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {857CA1A3-FC88-4BE0-AB6A-D1EE772AB288}.Debug|x86.Build.0 = Debug|Any CPU
- {857CA1A3-FC88-4BE0-AB6A-D1EE772AB288}.Debug|x86.ActiveCfg = Debug|Any CPU
- {857CA1A3-FC88-4BE0-AB6A-D1EE772AB288}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {857CA1A3-FC88-4BE0-AB6A-D1EE772AB288}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {857CA1A3-FC88-4BE0-AB6A-D1EE772AB288}.Release|x86.Build.0 = Release|Any CPU
- {857CA1A3-FC88-4BE0-AB6A-D1EE772AB288}.Release|x86.ActiveCfg = Release|Any CPU
- {857CA1A3-FC88-4BE0-AB6A-D1EE772AB288}.Release|Any CPU.Build.0 = Release|Any CPU
- {857CA1A3-FC88-4BE0-AB6A-D1EE772AB288}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {924EE450-603D-49C1-A8E5-4AFAA31CE6F3}.Debug|x86.Build.0 = Debug|Any CPU
- {924EE450-603D-49C1-A8E5-4AFAA31CE6F3}.Debug|x86.ActiveCfg = Debug|Any CPU
- {924EE450-603D-49C1-A8E5-4AFAA31CE6F3}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {924EE450-603D-49C1-A8E5-4AFAA31CE6F3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {924EE450-603D-49C1-A8E5-4AFAA31CE6F3}.Release|x86.Build.0 = Release|Any CPU
- {924EE450-603D-49C1-A8E5-4AFAA31CE6F3}.Release|x86.ActiveCfg = Release|Any CPU
- {924EE450-603D-49C1-A8E5-4AFAA31CE6F3}.Release|Any CPU.Build.0 = Release|Any CPU
- {924EE450-603D-49C1-A8E5-4AFAA31CE6F3}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {8035765F-D51F-4A0C-A746-2FD100E19419}.Debug|x86.Build.0 = Debug|Any CPU
- {8035765F-D51F-4A0C-A746-2FD100E19419}.Debug|x86.ActiveCfg = Debug|Any CPU
- {8035765F-D51F-4A0C-A746-2FD100E19419}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {8035765F-D51F-4A0C-A746-2FD100E19419}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {8035765F-D51F-4A0C-A746-2FD100E19419}.Release|x86.Build.0 = Release|Any CPU
- {8035765F-D51F-4A0C-A746-2FD100E19419}.Release|x86.ActiveCfg = Release|Any CPU
- {8035765F-D51F-4A0C-A746-2FD100E19419}.Release|Any CPU.Build.0 = Release|Any CPU
- {8035765F-D51F-4A0C-A746-2FD100E19419}.Release|Any CPU.ActiveCfg = Release|Any CPU
- EndGlobalSection
-EndGlobal
diff --git a/src/AddIns/BackendBindings/JavaScriptBinding/Project/Configuration/AssemblyInfo.cs b/src/AddIns/BackendBindings/JavaScriptBinding/Project/Configuration/AssemblyInfo.cs
deleted file mode 100644
index 77b978813a4..00000000000
--- a/src/AddIns/BackendBindings/JavaScriptBinding/Project/Configuration/AssemblyInfo.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy of this
-// software and associated documentation files (the "Software"), to deal in the Software
-// without restriction, including without limitation the rights to use, copy, modify, merge,
-// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
-// to whom the Software is furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in all copies or
-// substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
-// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
-// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
-// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-// DEALINGS IN THE SOFTWARE.
-
-using System.Reflection;
-
-// Information about this assembly is defined by the following
-// attributes.
-//
-// change them to the information which is associated with the assembly
-// you compile.
-
-[assembly: AssemblyTitle("JavaScript Binding")]
-[assembly: AssemblyDescription("JavaScript language binding for SharpDevelop")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
diff --git a/src/AddIns/BackendBindings/JavaScriptBinding/Project/JavaScriptBinding.addin b/src/AddIns/BackendBindings/JavaScriptBinding/Project/JavaScriptBinding.addin
deleted file mode 100644
index beec54ac3b5..00000000000
--- a/src/AddIns/BackendBindings/JavaScriptBinding/Project/JavaScriptBinding.addin
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/AddIns/BackendBindings/JavaScriptBinding/Project/JavaScriptBinding.csproj b/src/AddIns/BackendBindings/JavaScriptBinding/Project/JavaScriptBinding.csproj
deleted file mode 100644
index e94962270bf..00000000000
--- a/src/AddIns/BackendBindings/JavaScriptBinding/Project/JavaScriptBinding.csproj
+++ /dev/null
@@ -1,99 +0,0 @@
-
-
-
- {062B7E01-AF3D-430D-BE33-17FF3EF4F647}
- Debug
- x86
- Library
- ICSharpCode.JavaScriptBinding
- JavaScriptBinding
- v4.0
- Properties
- ..\..\..\..\..\AddIns\BackendBindings\JavaScriptBinding\
- False
- False
- 4
- false
-
-
- x86
- False
- Auto
- 4194304
- 4096
-
-
- true
- Full
- False
- False
- DEBUG;TRACE
-
-
- False
- None
- True
- False
- TRACE
-
-
-
- ..\RequiredLibraries\Antlr3.Runtime.dll
-
-
-
-
-
-
- Configuration\GlobalAssemblyInfo.cs
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Always
-
-
-
-
-
- {2748AD25-9C63-4E12-877B-4DCE96FBED54}
- ICSharpCode.SharpDevelop
- False
-
-
- {35CEF10F-2D4C-45F2-9DD1-161E0FEC583C}
- ICSharpCode.Core
- False
-
-
- {924EE450-603D-49C1-A8E5-4AFAA31CE6F3}
- ICSharpCode.SharpDevelop.Dom
- False
-
-
-
-
\ No newline at end of file
diff --git a/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/CommonTreeExtensions.cs b/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/CommonTreeExtensions.cs
deleted file mode 100644
index b552f9d71bc..00000000000
--- a/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/CommonTreeExtensions.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy of this
-// software and associated documentation files (the "Software"), to deal in the Software
-// without restriction, including without limitation the rights to use, copy, modify, merge,
-// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
-// to whom the Software is furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in all copies or
-// substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
-// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
-// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
-// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-// DEALINGS IN THE SOFTWARE.
-
-using System;
-using Antlr.Runtime.Tree;
-using Xebic.Parsers.ES3;
-
-namespace ICSharpCode.JavaScriptBinding
-{
- public static class CommonTreeExtensions
- {
- public static bool IsFunction(this CommonTree tree)
- {
- return tree.Type == ES3Parser.FUNCTION;
- }
-
- public static bool HasChildren(this CommonTree tree)
- {
- return tree.ChildCount > 0;
- }
-
- public static CommonTree GetFirstChild(this CommonTree tree)
- {
- return tree.GetChild(0) as CommonTree;
- }
-
- public static CommonTree GetFirstChildArguments(this CommonTree tree)
- {
- return tree.GetFirstChildWithType(ES3Parser.ARGS) as CommonTree;
- }
-
- public static int BeginColumn(this CommonTree tree)
- {
- return tree.CharPositionInLine + 1;
- }
- }
-}
diff --git a/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/ES3/ES3.g3 b/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/ES3/ES3.g3
deleted file mode 100644
index 9a195552c98..00000000000
--- a/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/ES3/ES3.g3
+++ /dev/null
@@ -1,1324 +0,0 @@
-/*
-
-Copyrights 2008 Xebic Reasearch BV. All rights reserved (see license.txt).
-Owner : Patrick Hulsmeijer.
-
-This ANTLR 3 LL(*) grammar is based on Ecma-262 3rd edition (JavaScript 1.5, JScript 5.5).
-The annotations refer to the "A Grammar Summary" section (e.g. A.1 Lexical Grammar) and the numbers in parenthesis to the paragraph numbers (e.g. (7.8) ).
-This document is best viewed with ANTLRWorks (www.antlr.org).
-
-
-The major challenges faced in defining this grammar were:
-
--1- Ambiguity surrounding the DIV sign in relation to the multiplicative expression and the regular expression literal.
-This is solved with some lexer driven magic: a gated semantical predicate turns the recognition of regular expressions on or off, based on the
-value of the RegularExpressionsEnabled property. When regular expressions are enabled they take precedence over division expressions. The decision whether
-regular expressions are enabled is based on the heuristics that the previous token can be considered as last token of a left-hand-side operand of a division.
-
--2- Automatic semicolon insertion.
-This is solved within the parser. The semicolons are not physically inserted but the situations in which they should are recognized and treated as if they were.
-The physical insertion of semicolons would be undesirable because of several reasons:
-- performance degration because of how ANTLR handles tokens in token streams
-- the alteration of the input, which we need to have unchanged
-- it is superfluous being of no interest to AST construction
-
--3- Unicode identifiers
-Because ANTLR couldn't handle the unicode tables defined in the specification well and for performance reasons unicode identifiers are implemented as an action
-driven alternative to ASCII identifiers. First the ASCII version is tried that is defined in detail in this grammar and then the unicode alternative is tried action driven.
-Because of the fact that the ASCII version is defined in detail the mTokens switch generation in the lexer can predict identifiers appropriately.
-For details see the identifier rules.
-
-
-The minor challenges were related to converting the grammar to an ANTLR LL(*) grammar:
-- Resolving the ambiguity between functionDeclaration vs functionExpression and block vs objectLiteral stemming from the expressionStatement production.
-- Left recursive nature of the left hand side expressions.
-- The assignmentExpression production.
-- The forStatement production.
-The grammar was kept as close as possible to the grammar in the "A Grammar Summary" section of Ecma-262.
-
-*/
-
-grammar ES3 ;
-
-options
-{
- output = AST ;
- language = CSharp2 ;
-}
-
-tokens
-{
-// Reserved words
- NULL = 'null' ;
- TRUE = 'true' ;
- FALSE = 'false' ;
-
-// Keywords
- BREAK = 'break' ;
- CASE = 'case' ;
- CATCH = 'catch' ;
- CONTINUE = 'continue' ;
- DEFAULT = 'default' ;
- DELETE = 'delete' ;
- DO = 'do' ;
- ELSE = 'else' ;
- FINALLY = 'finally' ;
- FOR = 'for' ;
- FUNCTION = 'function' ;
- IF = 'if' ;
- IN = 'in' ;
- INSTANCEOF = 'instanceof' ;
- NEW = 'new' ;
- RETURN = 'return' ;
- SWITCH = 'switch' ;
- THIS = 'this' ;
- THROW = 'throw' ;
- TRY = 'try' ;
- TYPEOF = 'typeof' ;
- VAR = 'var' ;
- VOID = 'void' ;
- WHILE = 'while' ;
- WITH = 'with' ;
-
-// Future reserved words
- ABSTRACT = 'abstract' ;
- BOOLEAN = 'boolean' ;
- BYTE = 'byte' ;
- CHAR = 'char' ;
- CLASS = 'class' ;
- CONST = 'const' ;
- DEBUGGER = 'debugger' ;
- DOUBLE = 'double' ;
- ENUM = 'enum' ;
- EXPORT = 'export' ;
- EXTENDS = 'extends' ;
- FINAL = 'final' ;
- FLOAT = 'float' ;
- GOTO = 'goto' ;
- IMPLEMENTS = 'implements' ;
- IMPORT = 'import' ;
- INT = 'int' ;
- INTERFACE = 'interface' ;
- LONG = 'long' ;
- NATIVE = 'native' ;
- PACKAGE = 'package' ;
- PRIVATE = 'private' ;
- PROTECTED = 'protected' ;
- PUBLIC = 'public' ;
- SHORT = 'short' ;
- STATIC = 'static' ;
- SUPER = 'super' ;
- SYNCHRONIZED = 'synchronized' ;
- THROWS = 'throws' ;
- TRANSIENT = 'transient' ;
- VOLATILE = 'volatile' ;
-
-// Punctuators
- LBRACE = '{' ;
- RBRACE = '}' ;
- LPAREN = '(' ;
- RPAREN = ')' ;
- LBRACK = '[' ;
- RBRACK = ']' ;
- DOT = '.' ;
- SEMIC = ';' ;
- COMMA = ',' ;
- LT = '<' ;
- GT = '>' ;
- LTE = '<=' ;
- GTE = '>=' ;
- EQ = '==' ;
- NEQ = '!=' ;
- SAME = '===' ;
- NSAME = '!==' ;
- ADD = '+' ;
- SUB = '-' ;
- MUL = '*' ;
- MOD = '%' ;
- INC = '++' ;
- DEC = '--' ;
- SHL = '<<' ;
- SHR = '>>' ;
- SHU = '>>>' ;
- AND = '&' ;
- OR = '|' ;
- XOR = '^' ;
- NOT = '!' ;
- INV = '~' ;
- LAND = '&&' ;
- LOR = '||' ;
- QUE = '?' ;
- COLON = ':' ;
- ASSIGN = '=' ;
- ADDASS = '+=' ;
- SUBASS = '-=' ;
- MULASS = '*=' ;
- MODASS = '%=' ;
- SHLASS = '<<=' ;
- SHRASS = '>>=' ;
- SHUASS = '>>>=' ;
- ANDASS = '&=' ;
- ORASS = '|=' ;
- XORASS = '^=' ;
- DIV = '/' ;
- DIVASS = '/=' ;
-
-// Imaginary
- ARGS ;
- ARRAY ;
- BLOCK ;
- BYFIELD ;
- BYINDEX ;
- CALL ;
- CEXPR ;
- EXPR ;
- FORITER ;
- FORSTEP ;
- ITEM ;
- LABELLED ;
- NAMEDVALUE ;
- NEG ;
- OBJECT ;
- PAREXPR ;
- PDEC ;
- PINC ;
- POS ;
-}
-
-@lexer::namespace { Xebic.Parsers.ES3 }
-
-@lexer::header { #pragma warning disable 219, 162 }
-
-@parser::namespace { Xebic.Parsers.ES3 }
-
-@parser::header { #pragma warning disable 219, 162 }
-
-//
-// $< A.1 Lexical Grammar (7)
-//
-
-// Added for lexing purposes
-
-fragment BSLASH
- : '\\'
- ;
-
-fragment DQUOTE
- : '"'
- ;
-
-fragment SQUOTE
- : '\''
- ;
-
-// $< Whitespace (7.2)
-
-fragment TAB
- : '\u0009'
- ;
-
-fragment VT // Vertical TAB
- : '\u000b'
- ;
-
-fragment FF // Form Feed
- : '\u000c'
- ;
-
-fragment SP // Space
- : '\u0020'
- ;
-
-fragment NBSP // Non-Breaking Space
- : '\u00a0'
- ;
-
-fragment USP // Unicode Space Separator (rest of Unicode category Zs)
- : '\u1680' // OGHAM SPACE MARK
- | '\u180E' // MONGOLIAN VOWEL SEPARATOR
- | '\u2000' // EN QUAD
- | '\u2001' // EM QUAD
- | '\u2002' // EN SPACE
- | '\u2003' // EM SPACE
- | '\u2004' // THREE-PER-EM SPACE
- | '\u2005' // FOUR-PER-EM SPACE
- | '\u2006' // SIX-PER-EM SPACE
- | '\u2007' // FIGURE SPACE
- | '\u2008' // PUNCTUATION SPACE
- | '\u2009' // THIN SPACE
- | '\u200A' // HAIR SPACE
- | '\u202F' // NARROW NO-BREAK SPACE
- | '\u205F' // MEDIUM MATHEMATICAL SPACE
- | '\u3000' // IDEOGRAPHIC SPACE
- ;
-
-WhiteSpace
- : ( TAB | VT | FF | SP | NBSP | USP )+ { $channel = HIDDEN; }
- ;
-
-// $>
-
-// $< Line terminators (7.3)
-
-fragment LF // Line Feed
- : '\n'
- ;
-
-fragment CR // Carriage Return
- : '\r'
- ;
-
-fragment LS // Line Separator
- : '\u2028'
- ;
-
-fragment PS // Paragraph Separator
- : '\u2029'
- ;
-
-fragment LineTerminator
- : CR | LF | LS | PS
- ;
-
-EOL
- : ( ( CR LF? ) | LF | LS | PS ) { $channel = HIDDEN; }
- ;
-// $>
-
-// $< Comments (7.4)
-
-MultiLineComment
- : '/*' ( options { greedy = false; } : . )* '*/' { $channel = HIDDEN; }
- ;
-
-SingleLineComment
- : '//' ( ~( LineTerminator ) )* { $channel = HIDDEN; }
- ;
-
-// $>
-
-// $< Tokens (7.5)
-
-token
- : reservedWord
- | Identifier
- | punctuator
- | numericLiteral
- | StringLiteral
- ;
-
-// $< Reserved words (7.5.1)
-
-reservedWord
- : keyword
- | futureReservedWord
- | NULL
- | booleanLiteral
- ;
-
-// $>
-
-// $< Keywords (7.5.2)
-
-keyword
- : BREAK
- | CASE
- | CATCH
- | CONTINUE
- | DEFAULT
- | DELETE
- | DO
- | ELSE
- | FINALLY
- | FOR
- | FUNCTION
- | IF
- | IN
- | INSTANCEOF
- | NEW
- | RETURN
- | SWITCH
- | THIS
- | THROW
- | TRY
- | TYPEOF
- | VAR
- | VOID
- | WHILE
- | WITH
- ;
-
-// $>
-
-// $< Future reserved words (7.5.3)
-
-futureReservedWord
- : ABSTRACT
- | BOOLEAN
- | BYTE
- | CHAR
- | CLASS
- | CONST
- | DEBUGGER
- | DOUBLE
- | ENUM
- | EXPORT
- | EXTENDS
- | FINAL
- | FLOAT
- | GOTO
- | IMPLEMENTS
- | IMPORT
- | INT
- | INTERFACE
- | LONG
- | NATIVE
- | PACKAGE
- | PRIVATE
- | PROTECTED
- | PUBLIC
- | SHORT
- | STATIC
- | SUPER
- | SYNCHRONIZED
- | THROWS
- | TRANSIENT
- | VOLATILE
- ;
-
-// $>
-
-// $>
-
-// $< Identifiers (7.6)
-
-fragment IdentifierStartASCII
- : 'a'..'z' | 'A'..'Z'
- | '$'
- | '_'
- | BSLASH 'u' HexDigit HexDigit HexDigit HexDigit // UnicodeEscapeSequence
- ;
-
-/*
-The first two alternatives define how ANTLR can match ASCII characters which can be considered as part of an identifier.
-The last alternative matches other characters in the unicode range that can be sonsidered as part of an identifier.
-*/
-fragment IdentifierPart
- : DecimalDigit
- | IdentifierStartASCII
- | { IsIdentifierPartUnicode(input.LA(1)) }? { MatchAny(); }
- ;
-
-fragment IdentifierNameASCIIStart
- : IdentifierStartASCII IdentifierPart*
- ;
-
-/*
-The second alternative acts as an action driven fallback to evaluate other characters in the unicode range than the ones in the ASCII subset.
-Due to the first alternative this grammar defines enough so that ANTLR can generate a lexer that correctly predicts identifiers with characters in the ASCII range.
-In that way keywords, other reserved words and ASCII identifiers are recognized with standard ANTLR driven logic. When the first character for an identifier fails to
-match this ASCII definition, the lexer calls ConsumeIdentifierUnicodeStart because of the action in the alternative. This method checks whether the character matches
-as first character in ranges other than ASCII and consumes further characters belonging to the identifier with help of mIdentifierPart generated out of the
-IdentifierPart rule above.
-*/
-Identifier
- : IdentifierNameASCIIStart
- | { ConsumeIdentifierUnicodeStart(); }
- ;
-
-// $>
-
-// $< Punctuators (7.7)
-
-punctuator
- : LBRACE
- | RBRACE
- | LPAREN
- | RPAREN
- | LBRACK
- | RBRACK
- | DOT
- | SEMIC
- | COMMA
- | LT
- | GT
- | LTE
- | GTE
- | EQ
- | NEQ
- | SAME
- | NSAME
- | ADD
- | SUB
- | MUL
- | MOD
- | INC
- | DEC
- | SHL
- | SHR
- | SHU
- | AND
- | OR
- | XOR
- | NOT
- | INV
- | LAND
- | LOR
- | QUE
- | COLON
- | ASSIGN
- | ADDASS
- | SUBASS
- | MULASS
- | MODASS
- | SHLASS
- | SHRASS
- | SHUASS
- | ANDASS
- | ORASS
- | XORASS
- | DIV
- | DIVASS
- ;
-
-// $>
-
-// $< Literals (7.8)
-
-literal
- : NULL
- | booleanLiteral
- | numericLiteral
- | StringLiteral
- | RegularExpressionLiteral
- ;
-
-booleanLiteral
- : TRUE
- | FALSE
- ;
-
-// $< Numeric literals (7.8.3)
-
-/*
-Note: octal literals are described in the B Compatibility section.
-These are removed from the standards but are here for backwards compatibility with earlier ECMAScript definitions.
-*/
-
-fragment DecimalDigit
- : '0'..'9'
- ;
-
-fragment HexDigit
- : DecimalDigit | 'a'..'f' | 'A'..'F'
- ;
-
-fragment OctalDigit
- : '0'..'7'
- ;
-
-fragment ExponentPart
- : ( 'e' | 'E' ) ( '+' | '-' )? DecimalDigit+
- ;
-
-fragment DecimalIntegerLiteral
- : '0'
- | '1'..'9' DecimalDigit*
- ;
-
-DecimalLiteral
- : DecimalIntegerLiteral '.' DecimalDigit* ExponentPart?
- | '.' DecimalDigit+ ExponentPart?
- | DecimalIntegerLiteral ExponentPart?
- ;
-
-OctalIntegerLiteral
- : '0' OctalDigit+
- ;
-
-HexIntegerLiteral
- : ( '0x' | '0X' ) HexDigit+
- ;
-
-numericLiteral
- : DecimalLiteral
- | OctalIntegerLiteral
- | HexIntegerLiteral
- ;
-
-// $>
-
-// $< String literals (7.8.4)
-
-/*
-Note: octal escape sequences are described in the B Compatibility section.
-These are removed from the standards but are here for backwards compatibility with earlier ECMAScript definitions.
-*/
-
-fragment CharacterEscapeSequence
- : ~( DecimalDigit | 'x' | 'u' | LineTerminator ) // Concatenation of SingleEscapeCharacter and NonEscapeCharacter
- ;
-
-fragment ZeroToThree
- : '0'..'3'
- ;
-
-fragment OctalEscapeSequence
- : OctalDigit
- | ZeroToThree OctalDigit
- | '4'..'7' OctalDigit
- | ZeroToThree OctalDigit OctalDigit
- ;
-
-fragment HexEscapeSequence
- : 'x' HexDigit HexDigit
- ;
-
-fragment UnicodeEscapeSequence
- : 'u' HexDigit HexDigit HexDigit HexDigit
- ;
-
-fragment EscapeSequence
- :
- BSLASH
- (
- CharacterEscapeSequence
- | OctalEscapeSequence
- | HexEscapeSequence
- | UnicodeEscapeSequence
- )
- ;
-
-StringLiteral
- : SQUOTE ( ~( SQUOTE | BSLASH | LineTerminator ) | EscapeSequence )* SQUOTE
- | DQUOTE ( ~( DQUOTE | BSLASH | LineTerminator ) | EscapeSequence )* DQUOTE
- ;
-
-// $>
-
-// $< Regular expression literals (7.8.5)
-
-fragment BackslashSequence
- : BSLASH ~( LineTerminator )
- ;
-
-fragment RegularExpressionFirstChar
- : ~ ( LineTerminator | MUL | BSLASH | DIV )
- | BackslashSequence
- ;
-
-fragment RegularExpressionChar
- : ~ ( LineTerminator | BSLASH | DIV )
- | BackslashSequence
- ;
-
-RegularExpressionLiteral
- : { AreRegularExpressionsEnabled }?=> DIV RegularExpressionFirstChar RegularExpressionChar* DIV IdentifierPart*
- ;
-
-// $>
-
-// $>
-
-// $>
-
-//
-// $< A.3 Expressions (11)
-//
-
-// $ ^( PAREXPR[$lpar, "PAREXPR"] expression )
- ;
-
-arrayLiteral
- : lb=LBRACK ( arrayItem ( COMMA arrayItem )* )? RBRACK
- -> ^( ARRAY[$lb, "ARRAY"] arrayItem* )
- ;
-
-arrayItem
- : ( expr=assignmentExpression | { input.LA(1) == COMMA }? )
- -> ^( ITEM $expr? )
- ;
-
-objectLiteral
- : lb=LBRACE ( nameValuePair ( COMMA nameValuePair )* )? RBRACE
- -> ^( OBJECT[$lb, "OBJECT"] nameValuePair* )
- ;
-
-nameValuePair
- : propertyName COLON assignmentExpression
- -> ^( NAMEDVALUE propertyName assignmentExpression )
- ;
-
-propertyName
- : Identifier
- | StringLiteral
- | numericLiteral
- ;
-
-// $>
-
-// $ ^( ARGS assignmentExpression* )
- ;
-
-leftHandSideExpression
- :
- (
- memberExpression -> memberExpression
- )
- (
- arguments -> ^( CALL $leftHandSideExpression arguments )
- | LBRACK expression RBRACK -> ^( BYINDEX $leftHandSideExpression expression )
- | DOT Identifier -> ^( BYFIELD $leftHandSideExpression Identifier )
- )*
- ;
-
-// $>
-
-// $
-
-// $
-
-// $
-
-// $
-
-// $
-
-// $
-
-// $
-
-// $
-
-// $
-
-// $
-
-// $ leftHandSideExpression assignmentOperator^ assignmentExpression
- | conditionalExpression
- ;
-assignmentOperator
- : ASSIGN | MULASS | DIVASS | MODASS | ADDASS | SUBASS | SHLASS | SHRASS | SHUASS | ANDASS | XORASS | ORASS
- ;
-
-But that didn't seem to work. Terence Par writes in his book that LL(*) conflicts in general can best be solved with auto backtracking. But that would be
-a performance killer for such a heavy used rule.
-The solution I came up with is to always invoke the conditionalExpression first and than decide what to do based on the result of that rule.
-When the rule results in a Tree that can't be coming from a left hand side expression, then we're done.
-When it results in a Tree that is coming from a left hand side expression and the LA(1) is an assignment operator then parse the assignment operator
-followed by the right recursive call.
-*/
-assignmentExpression
-@init
-{
- bool? isLhs = null;
-}
- : lhs=conditionalExpression
- ( { IsLeftHandSideAssign(lhs, ref isLhs) }? assignmentOperator^ assignmentExpression )?
- ;
-
-assignmentOperator
- : ASSIGN | MULASS | DIVASS | MODASS | ADDASS | SUBASS | SHLASS | SHRASS | SHUASS | ANDASS | XORASS | ORASS
- ;
-
-assignmentExpressionNoIn
-@init
-{
- bool? isLhs = null;
-}
- : lhs=conditionalExpressionNoIn
- ( { IsLeftHandSideAssign(lhs, ref isLhs) }? assignmentOperator^ assignmentExpressionNoIn )?
- ;
-
-// $>
-
-// $ { $exprs.Count > 1 }? ^( CEXPR $exprs+ )
- -> $exprs
- ;
-
-expressionNoIn
- : exprs+=assignmentExpressionNoIn ( COMMA exprs+=assignmentExpressionNoIn )*
- -> { $exprs.Count > 1 }? ^( CEXPR $exprs+ )
- -> $exprs
- ;
-
-// $>
-
-// $>
-
-//
-// $< A.4 Statements (12)
-//
-
-/*
-This rule handles semicolons reported by the lexer and situations where the ECMA 3 specification states there should be semicolons automaticly inserted.
-The auto semicolons are not actually inserted but this rule behaves as if they were.
-
-In the following situations an ECMA 3 parser should auto insert absent but grammaticly required semicolons:
-- the current token is a right brace
-- the current token is the end of file (EOF) token
-- there is at least one end of line (EOL) token between the current token and the previous token.
-
-The RBRACE is handled by matching it but not consuming it.
-The EOF needs no further handling because it is not consumed by default.
-The EOL situation is handled by promoting the EOL or MultiLineComment with an EOL present from off channel to on channel
-and thus making it parseable instead of handling it as white space. This promoting is done in the action PromoteEOL.
-*/
-semic
-@init
-{
- // Mark current position so we can unconsume a RBRACE.
- int marker = input.Mark();
- // Promote EOL if appropriate
- PromoteEOL(retval);
-}
- : SEMIC
- | EOF
- | RBRACE { input.Rewind(marker); }
- | EOL | MultiLineComment // (with EOL in it)
- ;
-
-/*
-To solve the ambiguity between block and objectLiteral via expressionStatement all but the block alternatives have been moved to statementTail.
-Now when k = 1 and a semantical predicate is defined ANTLR generates code that always will prefer block when the LA(1) is a LBRACE.
-This will result in the same behaviour that is described in the specification under 12.4 on the expressionStatement rule.
-*/
-statement
-options
-{
- k = 1 ;
-}
- : { input.LA(1) == LBRACE }? block
- | statementTail
- ;
-
-statementTail
- : variableStatement
- | emptyStatement
- | expressionStatement
- | ifStatement
- | iterationStatement
- | continueStatement
- | breakStatement
- | returnStatement
- | withStatement
- | labelledStatement
- | switchStatement
- | throwStatement
- | tryStatement
- ;
-
-// $ ^( BLOCK[$lb, "BLOCK"] statement* )
- ;
-
-// $>
-
-// $ ^( VAR variableDeclaration+ )
- ;
-
-variableDeclaration
- : Identifier ( ASSIGN^ assignmentExpression )?
- ;
-
-variableDeclarationNoIn
- : Identifier ( ASSIGN^ assignmentExpressionNoIn )?
- ;
-
-// $>
-
-// $
-
-// $
-
-// $ ^( IF expression statement+ )
- ;
-
-// $>
-
-// $ ^( DO statement expression )
- ;
-
-whileStatement
- : WHILE^ LPAREN! expression RPAREN! statement
- ;
-
-/*
-The forStatement production is refactored considerably as the specification contains a very none LL(*) compliant definition.
-The initial version was like this:
-
-forStatement
- : FOR^ LPAREN! forControl RPAREN! statement
- ;
-forControl
-options
-{
- backtrack = true ;
- //k = 3 ;
-}
- : stepClause
- | iterationClause
- ;
-stepClause
-options
-{
- memoize = true ;
-}
- : ( ex1=expressionNoIn | var=VAR variableDeclarationNoIn ( COMMA variableDeclarationNoIn )* )? SEMIC ex2=expression? SEMIC ex3=expression?
- -> { $var != null }? ^( FORSTEP ^( VAR[$var] variableDeclarationNoIn+ ) ^( EXPR $ex2? ) ^( EXPR $ex3? ) )
- -> ^( FORSTEP ^( EXPR $ex1? ) ^( EXPR $ex2? ) ^( EXPR $ex3? ) )
- ;
-iterationClause
-options
-{
- memoize = true ;
-}
- : ( leftHandSideExpression | var=VAR variableDeclarationNoIn ) IN expression
- -> { $var != null }? ^( FORITER ^( VAR[$var] variableDeclarationNoIn ) ^( EXPR expression ) )
- -> ^( FORITER ^( EXPR leftHandSideExpression ) ^( EXPR expression ) )
- ;
-
-But this completely relies on the backtrack feature and capabilities of ANTLR.
-Furthermore backtracking seemed to have 3 major drawbacks:
-- the performance cost of backtracking is considerably
-- didn't seem to work well with ANTLRWorks
-- when introducing a k value to optimize the backtracking away, ANTLR runs out of heap space
-*/
-forStatement
- : FOR^ LPAREN! forControl RPAREN! statement
- ;
-
-forControl
- : forControlVar
- | forControlExpression
- | forControlSemic
- ;
-
-forControlVar
- : VAR variableDeclarationNoIn
- (
- (
- IN expression
- -> ^( FORITER ^( VAR variableDeclarationNoIn ) ^( EXPR expression ) )
- )
- |
- (
- ( COMMA variableDeclarationNoIn )* SEMIC ex1=expression? SEMIC ex2=expression?
- -> ^( FORSTEP ^( VAR variableDeclarationNoIn+ ) ^( EXPR $ex1? ) ^( EXPR $ex2? ) )
- )
- )
- ;
-
-forControlExpression
-@init
-{
- bool? isLhs = null;
-}
- : ex1=expressionNoIn
- (
- { IsLeftHandSideIn(ex1, ref isLhs) }? (
- IN ex2=expression
- -> ^( FORITER ^( EXPR $ex1 ) ^( EXPR $ex2 ) )
- )
- |
- (
- SEMIC ex2=expression? SEMIC ex3=expression?
- -> ^( FORSTEP ^( EXPR $ex1 ) ^( EXPR $ex2? ) ^( EXPR $ex3? ) )
- )
- )
- ;
-
-forControlSemic
- : SEMIC ex1=expression? SEMIC ex2=expression?
- -> ^( FORSTEP ^( EXPR ) ^( EXPR $ex1? ) ^( EXPR $ex2? ) )
- ;
-
-// $>
-
-// $
-
-// $
-
-// $
-
-// $
-
-// $ defaultClause { defaultClauseCount++; } | caseClause )* RBRACE
- -> ^( SWITCH expression defaultClause? caseClause* )
- ;
-
-caseClause
- : CASE^ expression COLON! statement*
- ;
-
-defaultClause
- : DEFAULT^ COLON! statement*
- ;
-
-// $>
-
-// $ ^( LABELLED Identifier statement )
- ;
-
-// $>
-
-// $
-
-// $
-
-// $>
-
-//
-// $< A.5 Functions and Programs (13, 14)
-//
-
-// $< Function Definition (13)
-
-functionDeclaration
- : FUNCTION name=Identifier formalParameterList functionBody
- -> ^( FUNCTION $name formalParameterList functionBody )
- ;
-
-functionExpression
- : FUNCTION name=Identifier? formalParameterList functionBody
- -> ^( FUNCTION $name? formalParameterList functionBody )
- ;
-
-formalParameterList
- : LPAREN ( Identifier ( COMMA Identifier )* )? RPAREN
- -> ^( ARGS Identifier* )
- ;
-
-functionBody
- : lb=LBRACE sourceElement* RBRACE
- -> ^( BLOCK[$lb, "BLOCK"] sourceElement* )
- ;
-
-// $>
-
-// $< Program (14)
-
-program
- : sourceElement*
- ;
-
-/*
-By setting k to 1 for this rule and adding the semantical predicate ANTRL will generate code that will always prefer functionDeclararion over functionExpression
-here and therefor remove the ambiguity between these to production.
-This will result in the same behaviour that is described in the specification under 12.4 on the expressionStatement rule.
-*/
-sourceElement
-options
-{
- k = 1 ;
-}
- : { input.LA(1) == FUNCTION }? functionDeclaration
- | statement
- ;
-
-// $>
-
-// $>
diff --git a/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/ES3/ES3Lexer.Action.cs b/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/ES3/ES3Lexer.Action.cs
deleted file mode 100644
index 9cfff5932cf..00000000000
--- a/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/ES3/ES3Lexer.Action.cs
+++ /dev/null
@@ -1,184 +0,0 @@
-// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy of this
-// software and associated documentation files (the "Software"), to deal in the Software
-// without restriction, including without limitation the rights to use, copy, modify, merge,
-// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
-// to whom the Software is furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in all copies or
-// substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
-// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
-// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
-// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-// DEALINGS IN THE SOFTWARE.
-
-using System;
-using System.Collections.Generic;
-using System.Globalization;
-using System.Text;
-
-using Antlr.Runtime;
-
-namespace Xebic.Parsers.ES3
-{
- using IToken = Antlr.Runtime.IToken;
-
- ///
- /// This partial class is complementary to the lexer generated with ANTLR from the JavaScript.g grammar.
- /// It implements the actions used in the lexer.
- ///
- public partial class ES3Lexer
- {
- ///
- /// Containts the last on channel token.
- ///
- protected IToken last;
-
- ///
- /// Indicates whether regular expression (yields true) or division expression recognition (false) in the lexer is enabled.
- /// These are mutual exclusive and the decision which is active in the lexer is based on the previous on channel token.
- /// When the previous token can be identified as a possible left operand for a division this results in false, otherwise true.
- ///
- private bool AreRegularExpressionsEnabled
- {
- get
- {
- if (last == null)
- {
- return true;
- }
-
- switch (last.Type)
- {
- // identifier
- case Identifier:
- // literals
- case NULL:
- case TRUE:
- case FALSE:
- case THIS:
- case OctalIntegerLiteral:
- case DecimalLiteral:
- case HexIntegerLiteral:
- case StringLiteral:
- // member access ending
- case RBRACK:
- // function call or nested expression ending
- case RPAREN:
- return false;
-
- // otherwise OK
- default:
- return true;
- }
- }
- }
-
- ///
- /// Consumes an unicode identifier after validating that the first character can be the starting character.
- /// This method is called by the lexer logic as fallback alternative when a character can not be considered as start of an identifier in the ASCII range.
- /// See the Identfier lexer rule for more details.
- ///
- private void ConsumeIdentifierUnicodeStart()
- {
- int ch = (char)input.LA(1);
- if (IsIdentifierStartUnicode(ch))
- {
- MatchAny();
- do
- {
- ch = (char)input.LA(1);
- if (ch == '$' || (ch >= '0' && ch <= '9') || (ch >= 'A' && ch <= 'Z') || ch == '\\' || ch == '_' || (ch >= 'a' && ch <= 'z') || IsIdentifierPartUnicode(ch))
- {
- mIdentifierPart();
- }
- else
- {
- return;
- }
- }
- while (true);
- }
- else
- {
- throw new NoViableAltException();
- }
- }
-
- ///
- /// Indicates whether a given character can be a part of an unicode identifier.
- /// This method doesn't consider ASCII characters that can be a part of an identifier, that is left to the mIdentifierPart method.
- /// The latter method will call this method to check other characters in the unicode range after evaluating those in the ASCII range.
- ///
- /// The character to check.
- /// True when the character matches, false otherwise.
- public static bool IsIdentifierPartUnicode(int ch)
- {
- switch (Char.GetUnicodeCategory((char)ch))
- {
- // UnicodeLetter
- case UnicodeCategory.UppercaseLetter: // Lu
- case UnicodeCategory.LowercaseLetter: // Ll
- case UnicodeCategory.TitlecaseLetter: // Lt
- case UnicodeCategory.ModifierLetter: // Lm
- case UnicodeCategory.OtherLetter: // Lo
- case UnicodeCategory.LetterNumber: // Nl
- // UnicodeCombiningMark
- case UnicodeCategory.NonSpacingMark: // Mn
- case UnicodeCategory.SpacingCombiningMark: // Mc
- // UnicodeDigit
- case UnicodeCategory.DecimalDigitNumber: // Nd
- // UnicodeConnectorPuntuation
- case UnicodeCategory.ConnectorPunctuation: // Pc
- return true;
-
- // Not matching
- default:
- return false;
- }
- }
-
- ///
- /// Indicates whether a given character can be the first character of an unicode identifier.
- /// This method doesn't consider ASCII characters as it is used in a fallback scenario after the ASCII range is evaluated.
- ///
- /// The character to check.
- /// True when the character matches, false otherwise.
- public static bool IsIdentifierStartUnicode(int ch)
- {
- switch (Char.GetUnicodeCategory((char)ch))
- {
- // UnicodeLetter
- case UnicodeCategory.UppercaseLetter: // Lu
- case UnicodeCategory.LowercaseLetter: // Ll
- case UnicodeCategory.TitlecaseLetter: // Lt
- case UnicodeCategory.ModifierLetter: // Lm
- case UnicodeCategory.OtherLetter: // Lo
- case UnicodeCategory.LetterNumber: // Nl
- return true;
-
- // Not matching
- default:
- return false;
- }
- }
-
- ///
- /// Override of base to track previous on channel token.
- /// This token is needed as input to decide whether regular expression or division expression recognition is enabled.
- ///
- public override IToken NextToken()
- {
- IToken result = base.NextToken();
- if (result.Channel == DefaultTokenChannel)
- {
- last = result;
- }
- return result;
- }
- }
-}
diff --git a/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/ES3/ES3Parser.Action.cs b/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/ES3/ES3Parser.Action.cs
deleted file mode 100644
index fad28e0b6ff..00000000000
--- a/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/ES3/ES3Parser.Action.cs
+++ /dev/null
@@ -1,192 +0,0 @@
-// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy of this
-// software and associated documentation files (the "Software"), to deal in the Software
-// without restriction, including without limitation the rights to use, copy, modify, merge,
-// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
-// to whom the Software is furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in all copies or
-// substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
-// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
-// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
-// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-// DEALINGS IN THE SOFTWARE.
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using System.Text.RegularExpressions;
-
-using Antlr.Runtime;
-using Antlr.Runtime.Tree;
-
-namespace Xebic.Parsers.ES3
-{
- using IToken = Antlr.Runtime.IToken;
-
- ///
- /// This partial class is complementary to the parser generated with ANTLR from the JavaScript.g grammar.
- /// It implements the actions used in the parser.
- ///
- public partial class ES3Parser
- {
- ///
- /// Is a RuleReturnScope node candidate for the left-hand-side of an assignment expression?
- ///
- /// The RuleReturnScope node
- /// The cached result of a former call to this method
- /// True if so, false otherwise
- public bool IsLeftHandSideAssign(IAstRuleReturnScope lhs, ref bool? cached)
- {
- if (cached.HasValue)
- {
- return cached.Value;
- }
-
- bool result;
- if (IsLeftHandSideExpression(lhs))
- {
- switch (input.LA(1))
- {
- case ASSIGN:
- case MULASS:
- case DIVASS:
- case MODASS:
- case ADDASS:
- case SUBASS:
- case SHLASS:
- case SHRASS:
- case SHUASS:
- case ANDASS:
- case XORASS:
- case ORASS:
- result = true;
- break;
-
- default:
- result = false;
- break;
- }
- }
- else
- {
- result = false;
- }
-
- cached = result;
- return result;
- }
-
- ///
- /// Is a RuleReturnScope node candidate a left-hand-side expression?
- ///
- /// The RuleReturnScope node
- /// True if so, false otherwise
- private bool IsLeftHandSideExpression(IAstRuleReturnScope lhs)
- {
- if (lhs.Tree == null) // e.g. during backtracking
- {
- return true;
- }
- else
- {
- switch (((ITree)lhs.Tree).Type)
- {
- // primaryExpression
- case THIS:
- case Identifier:
- case NULL:
- case TRUE:
- case FALSE:
- case DecimalLiteral:
- case OctalIntegerLiteral:
- case HexIntegerLiteral:
- case StringLiteral:
- case RegularExpressionLiteral:
- case ARRAY:
- case OBJECT:
- case PAREXPR:
- // functionExpression
- case FUNCTION:
- // newExpression
- case NEW:
- // leftHandSideExpression
- case CALL:
- case BYFIELD:
- case BYINDEX:
- return true;
-
- default:
- return false;
- }
- }
- }
-
- ///
- /// Is a RuleReturnScope node candidate for the left-hand-side of an in expression?
- ///
- /// The RuleReturnScope node
- /// The cached result of a former call to this method
- /// True if so, false otherwise
- public bool IsLeftHandSideIn(IAstRuleReturnScope lhs, ref bool? cached)
- {
- if (cached.HasValue)
- {
- return cached.Value;
- }
-
- bool result = IsLeftHandSideExpression(lhs) && (input.LA(1) == IN);
-
- cached = result;
- return result;
- }
-
- ///
- /// This method handles promotion of an EOL token to on channel in situations where the ECMA 3 specification
- /// states there should be a semicolon inserted because of an EOL between the current (offending) token
- /// and the previous token.
- /// So an semicolon is not actually inserted but the EOL present is switched from off to on channel. In this
- /// way that EOL gets the notion of an "virtual" semicolon.
- /// As a side effect a given rule's return scope starting point is set to the found EOL and the input stream is repositioned on it.
- /// A multi line comment with an EOL is also promoted.
- ///
- /// The invoking rule's return scope
- public void PromoteEOL(ParserRuleReturnScope rule)
- {
- // Get current token and its type (the possibly offending token).
- IToken lt = input.LT(1);
- int la = lt.Type;
-
- // We only need to promote an EOL when the current token is offending (not a SEMIC, EOF, RBRACE or EOL).
- // Promoting an EOL means switching it from off channel to on channel.
- if (!(la == SEMIC || la == EOF || la == RBRACE || la == EOL))
- {
- // Start on the possition before the current token and scan backwards off channel tokens until the previous on channel token.
- for (int ix = lt.TokenIndex - 1; ix > 0; ix--)
- {
- lt = input.Get(ix);
- if (lt.Channel == DefaultTokenChannel)
- {
- // On channel token found: stop scanning.
- break;
- }
- else if (lt.Type == EOL || (lt.Type == MultiLineComment && Regex.IsMatch(lt.Text, "/.*\r\n|\r|\n")))
- {
- // We found our EOL: promote it to on channel, position the input on it and reset the rule start.
- lt.Channel = DefaultTokenChannel;
- input.Seek(lt.TokenIndex);
- if (rule != null)
- {
- rule.Start = lt;
- }
- break;
- }
- }
- }
- }
- }
-}
diff --git a/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/ES3/Generated/ES3Lexer.cs b/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/ES3/Generated/ES3Lexer.cs
deleted file mode 100644
index 181b49e4fcf..00000000000
--- a/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/ES3/Generated/ES3Lexer.cs
+++ /dev/null
@@ -1,8149 +0,0 @@
-// $ANTLR 3.3 Nov 30, 2010 12:45:30 D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3 2011-07-31 12:36:33
-
-// The variable 'variable' is assigned but its value is never used.
-#pragma warning disable 168, 219
-// Unreachable code detected.
-#pragma warning disable 162
-
- #pragma warning disable 219, 162
-
-using System;
-using System.Collections.Generic;
-using Antlr.Runtime;
-using Stack = System.Collections.Generic.Stack;
-using List = System.Collections.IList;
-using ArrayList = System.Collections.Generic.List;
-
-namespace Xebic.Parsers.ES3
-{
-[System.CodeDom.Compiler.GeneratedCode("ANTLR", "3.3 Nov 30, 2010 12:45:30")]
-public partial class ES3Lexer : Antlr.Runtime.Lexer
-{
- public const int EOF=-1;
- public const int NULL=4;
- public const int TRUE=5;
- public const int FALSE=6;
- public const int BREAK=7;
- public const int CASE=8;
- public const int CATCH=9;
- public const int CONTINUE=10;
- public const int DEFAULT=11;
- public const int DELETE=12;
- public const int DO=13;
- public const int ELSE=14;
- public const int FINALLY=15;
- public const int FOR=16;
- public const int FUNCTION=17;
- public const int IF=18;
- public const int IN=19;
- public const int INSTANCEOF=20;
- public const int NEW=21;
- public const int RETURN=22;
- public const int SWITCH=23;
- public const int THIS=24;
- public const int THROW=25;
- public const int TRY=26;
- public const int TYPEOF=27;
- public const int VAR=28;
- public const int VOID=29;
- public const int WHILE=30;
- public const int WITH=31;
- public const int ABSTRACT=32;
- public const int BOOLEAN=33;
- public const int BYTE=34;
- public const int CHAR=35;
- public const int CLASS=36;
- public const int CONST=37;
- public const int DEBUGGER=38;
- public const int DOUBLE=39;
- public const int ENUM=40;
- public const int EXPORT=41;
- public const int EXTENDS=42;
- public const int FINAL=43;
- public const int FLOAT=44;
- public const int GOTO=45;
- public const int IMPLEMENTS=46;
- public const int IMPORT=47;
- public const int INT=48;
- public const int INTERFACE=49;
- public const int LONG=50;
- public const int NATIVE=51;
- public const int PACKAGE=52;
- public const int PRIVATE=53;
- public const int PROTECTED=54;
- public const int PUBLIC=55;
- public const int SHORT=56;
- public const int STATIC=57;
- public const int SUPER=58;
- public const int SYNCHRONIZED=59;
- public const int THROWS=60;
- public const int TRANSIENT=61;
- public const int VOLATILE=62;
- public const int LBRACE=63;
- public const int RBRACE=64;
- public const int LPAREN=65;
- public const int RPAREN=66;
- public const int LBRACK=67;
- public const int RBRACK=68;
- public const int DOT=69;
- public const int SEMIC=70;
- public const int COMMA=71;
- public const int LT=72;
- public const int GT=73;
- public const int LTE=74;
- public const int GTE=75;
- public const int EQ=76;
- public const int NEQ=77;
- public const int SAME=78;
- public const int NSAME=79;
- public const int ADD=80;
- public const int SUB=81;
- public const int MUL=82;
- public const int MOD=83;
- public const int INC=84;
- public const int DEC=85;
- public const int SHL=86;
- public const int SHR=87;
- public const int SHU=88;
- public const int AND=89;
- public const int OR=90;
- public const int XOR=91;
- public const int NOT=92;
- public const int INV=93;
- public const int LAND=94;
- public const int LOR=95;
- public const int QUE=96;
- public const int COLON=97;
- public const int ASSIGN=98;
- public const int ADDASS=99;
- public const int SUBASS=100;
- public const int MULASS=101;
- public const int MODASS=102;
- public const int SHLASS=103;
- public const int SHRASS=104;
- public const int SHUASS=105;
- public const int ANDASS=106;
- public const int ORASS=107;
- public const int XORASS=108;
- public const int DIV=109;
- public const int DIVASS=110;
- public const int ARGS=111;
- public const int ARRAY=112;
- public const int BLOCK=113;
- public const int BYFIELD=114;
- public const int BYINDEX=115;
- public const int CALL=116;
- public const int CEXPR=117;
- public const int EXPR=118;
- public const int FORITER=119;
- public const int FORSTEP=120;
- public const int ITEM=121;
- public const int LABELLED=122;
- public const int NAMEDVALUE=123;
- public const int NEG=124;
- public const int OBJECT=125;
- public const int PAREXPR=126;
- public const int PDEC=127;
- public const int PINC=128;
- public const int POS=129;
- public const int BSLASH=130;
- public const int DQUOTE=131;
- public const int SQUOTE=132;
- public const int TAB=133;
- public const int VT=134;
- public const int FF=135;
- public const int SP=136;
- public const int NBSP=137;
- public const int USP=138;
- public const int WhiteSpace=139;
- public const int LF=140;
- public const int CR=141;
- public const int LS=142;
- public const int PS=143;
- public const int LineTerminator=144;
- public const int EOL=145;
- public const int MultiLineComment=146;
- public const int SingleLineComment=147;
- public const int Identifier=148;
- public const int StringLiteral=149;
- public const int HexDigit=150;
- public const int IdentifierStartASCII=151;
- public const int DecimalDigit=152;
- public const int IdentifierPart=153;
- public const int IdentifierNameASCIIStart=154;
- public const int RegularExpressionLiteral=155;
- public const int OctalDigit=156;
- public const int ExponentPart=157;
- public const int DecimalIntegerLiteral=158;
- public const int DecimalLiteral=159;
- public const int OctalIntegerLiteral=160;
- public const int HexIntegerLiteral=161;
- public const int CharacterEscapeSequence=162;
- public const int ZeroToThree=163;
- public const int OctalEscapeSequence=164;
- public const int HexEscapeSequence=165;
- public const int UnicodeEscapeSequence=166;
- public const int EscapeSequence=167;
- public const int BackslashSequence=168;
- public const int RegularExpressionFirstChar=169;
- public const int RegularExpressionChar=170;
-
- // delegates
- // delegators
-
- public ES3Lexer()
- {
- OnCreated();
- }
-
- public ES3Lexer(ICharStream input )
- : this(input, new RecognizerSharedState())
- {
- }
-
- public ES3Lexer(ICharStream input, RecognizerSharedState state)
- : base(input, state)
- {
-
-
- OnCreated();
- }
- public override string GrammarFileName { get { return "D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3"; } }
-
- private static readonly bool[] decisionCanBacktrack = new bool[0];
-
-
- protected virtual void OnCreated() {}
- protected virtual void EnterRule(string ruleName, int ruleIndex) {}
- protected virtual void LeaveRule(string ruleName, int ruleIndex) {}
-
- protected virtual void Enter_NULL() {}
- protected virtual void Leave_NULL() {}
-
- // $ANTLR start "NULL"
- [GrammarRule("NULL")]
- private void mNULL()
- {
-
- try
- {
- int _type = NULL;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:10:6: ( 'null' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:10:8: 'null'
- {
- DebugLocation(10, 8);
- Match("null");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "NULL"
-
- protected virtual void Enter_TRUE() {}
- protected virtual void Leave_TRUE() {}
-
- // $ANTLR start "TRUE"
- [GrammarRule("TRUE")]
- private void mTRUE()
- {
-
- try
- {
- int _type = TRUE;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:11:6: ( 'true' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:11:8: 'true'
- {
- DebugLocation(11, 8);
- Match("true");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "TRUE"
-
- protected virtual void Enter_FALSE() {}
- protected virtual void Leave_FALSE() {}
-
- // $ANTLR start "FALSE"
- [GrammarRule("FALSE")]
- private void mFALSE()
- {
-
- try
- {
- int _type = FALSE;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:12:7: ( 'false' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:12:9: 'false'
- {
- DebugLocation(12, 9);
- Match("false");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "FALSE"
-
- protected virtual void Enter_BREAK() {}
- protected virtual void Leave_BREAK() {}
-
- // $ANTLR start "BREAK"
- [GrammarRule("BREAK")]
- private void mBREAK()
- {
-
- try
- {
- int _type = BREAK;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:13:7: ( 'break' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:13:9: 'break'
- {
- DebugLocation(13, 9);
- Match("break");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "BREAK"
-
- protected virtual void Enter_CASE() {}
- protected virtual void Leave_CASE() {}
-
- // $ANTLR start "CASE"
- [GrammarRule("CASE")]
- private void mCASE()
- {
-
- try
- {
- int _type = CASE;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:14:6: ( 'case' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:14:8: 'case'
- {
- DebugLocation(14, 8);
- Match("case");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "CASE"
-
- protected virtual void Enter_CATCH() {}
- protected virtual void Leave_CATCH() {}
-
- // $ANTLR start "CATCH"
- [GrammarRule("CATCH")]
- private void mCATCH()
- {
-
- try
- {
- int _type = CATCH;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:15:7: ( 'catch' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:15:9: 'catch'
- {
- DebugLocation(15, 9);
- Match("catch");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "CATCH"
-
- protected virtual void Enter_CONTINUE() {}
- protected virtual void Leave_CONTINUE() {}
-
- // $ANTLR start "CONTINUE"
- [GrammarRule("CONTINUE")]
- private void mCONTINUE()
- {
-
- try
- {
- int _type = CONTINUE;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:16:10: ( 'continue' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:16:12: 'continue'
- {
- DebugLocation(16, 12);
- Match("continue");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "CONTINUE"
-
- protected virtual void Enter_DEFAULT() {}
- protected virtual void Leave_DEFAULT() {}
-
- // $ANTLR start "DEFAULT"
- [GrammarRule("DEFAULT")]
- private void mDEFAULT()
- {
-
- try
- {
- int _type = DEFAULT;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:17:9: ( 'default' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:17:11: 'default'
- {
- DebugLocation(17, 11);
- Match("default");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "DEFAULT"
-
- protected virtual void Enter_DELETE() {}
- protected virtual void Leave_DELETE() {}
-
- // $ANTLR start "DELETE"
- [GrammarRule("DELETE")]
- private void mDELETE()
- {
-
- try
- {
- int _type = DELETE;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:18:8: ( 'delete' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:18:10: 'delete'
- {
- DebugLocation(18, 10);
- Match("delete");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "DELETE"
-
- protected virtual void Enter_DO() {}
- protected virtual void Leave_DO() {}
-
- // $ANTLR start "DO"
- [GrammarRule("DO")]
- private void mDO()
- {
-
- try
- {
- int _type = DO;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:19:4: ( 'do' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:19:6: 'do'
- {
- DebugLocation(19, 6);
- Match("do");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "DO"
-
- protected virtual void Enter_ELSE() {}
- protected virtual void Leave_ELSE() {}
-
- // $ANTLR start "ELSE"
- [GrammarRule("ELSE")]
- private void mELSE()
- {
-
- try
- {
- int _type = ELSE;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:20:6: ( 'else' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:20:8: 'else'
- {
- DebugLocation(20, 8);
- Match("else");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "ELSE"
-
- protected virtual void Enter_FINALLY() {}
- protected virtual void Leave_FINALLY() {}
-
- // $ANTLR start "FINALLY"
- [GrammarRule("FINALLY")]
- private void mFINALLY()
- {
-
- try
- {
- int _type = FINALLY;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:21:9: ( 'finally' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:21:11: 'finally'
- {
- DebugLocation(21, 11);
- Match("finally");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "FINALLY"
-
- protected virtual void Enter_FOR() {}
- protected virtual void Leave_FOR() {}
-
- // $ANTLR start "FOR"
- [GrammarRule("FOR")]
- private void mFOR()
- {
-
- try
- {
- int _type = FOR;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:22:5: ( 'for' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:22:7: 'for'
- {
- DebugLocation(22, 7);
- Match("for");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "FOR"
-
- protected virtual void Enter_FUNCTION() {}
- protected virtual void Leave_FUNCTION() {}
-
- // $ANTLR start "FUNCTION"
- [GrammarRule("FUNCTION")]
- private void mFUNCTION()
- {
-
- try
- {
- int _type = FUNCTION;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:23:10: ( 'function' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:23:12: 'function'
- {
- DebugLocation(23, 12);
- Match("function");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "FUNCTION"
-
- protected virtual void Enter_IF() {}
- protected virtual void Leave_IF() {}
-
- // $ANTLR start "IF"
- [GrammarRule("IF")]
- private void mIF()
- {
-
- try
- {
- int _type = IF;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:24:4: ( 'if' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:24:6: 'if'
- {
- DebugLocation(24, 6);
- Match("if");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "IF"
-
- protected virtual void Enter_IN() {}
- protected virtual void Leave_IN() {}
-
- // $ANTLR start "IN"
- [GrammarRule("IN")]
- private void mIN()
- {
-
- try
- {
- int _type = IN;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:25:4: ( 'in' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:25:6: 'in'
- {
- DebugLocation(25, 6);
- Match("in");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "IN"
-
- protected virtual void Enter_INSTANCEOF() {}
- protected virtual void Leave_INSTANCEOF() {}
-
- // $ANTLR start "INSTANCEOF"
- [GrammarRule("INSTANCEOF")]
- private void mINSTANCEOF()
- {
-
- try
- {
- int _type = INSTANCEOF;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:26:12: ( 'instanceof' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:26:14: 'instanceof'
- {
- DebugLocation(26, 14);
- Match("instanceof");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "INSTANCEOF"
-
- protected virtual void Enter_NEW() {}
- protected virtual void Leave_NEW() {}
-
- // $ANTLR start "NEW"
- [GrammarRule("NEW")]
- private void mNEW()
- {
-
- try
- {
- int _type = NEW;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:27:5: ( 'new' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:27:7: 'new'
- {
- DebugLocation(27, 7);
- Match("new");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "NEW"
-
- protected virtual void Enter_RETURN() {}
- protected virtual void Leave_RETURN() {}
-
- // $ANTLR start "RETURN"
- [GrammarRule("RETURN")]
- private void mRETURN()
- {
-
- try
- {
- int _type = RETURN;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:28:8: ( 'return' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:28:10: 'return'
- {
- DebugLocation(28, 10);
- Match("return");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "RETURN"
-
- protected virtual void Enter_SWITCH() {}
- protected virtual void Leave_SWITCH() {}
-
- // $ANTLR start "SWITCH"
- [GrammarRule("SWITCH")]
- private void mSWITCH()
- {
-
- try
- {
- int _type = SWITCH;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:29:8: ( 'switch' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:29:10: 'switch'
- {
- DebugLocation(29, 10);
- Match("switch");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "SWITCH"
-
- protected virtual void Enter_THIS() {}
- protected virtual void Leave_THIS() {}
-
- // $ANTLR start "THIS"
- [GrammarRule("THIS")]
- private void mTHIS()
- {
-
- try
- {
- int _type = THIS;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:30:6: ( 'this' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:30:8: 'this'
- {
- DebugLocation(30, 8);
- Match("this");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "THIS"
-
- protected virtual void Enter_THROW() {}
- protected virtual void Leave_THROW() {}
-
- // $ANTLR start "THROW"
- [GrammarRule("THROW")]
- private void mTHROW()
- {
-
- try
- {
- int _type = THROW;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:31:7: ( 'throw' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:31:9: 'throw'
- {
- DebugLocation(31, 9);
- Match("throw");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "THROW"
-
- protected virtual void Enter_TRY() {}
- protected virtual void Leave_TRY() {}
-
- // $ANTLR start "TRY"
- [GrammarRule("TRY")]
- private void mTRY()
- {
-
- try
- {
- int _type = TRY;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:32:5: ( 'try' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:32:7: 'try'
- {
- DebugLocation(32, 7);
- Match("try");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "TRY"
-
- protected virtual void Enter_TYPEOF() {}
- protected virtual void Leave_TYPEOF() {}
-
- // $ANTLR start "TYPEOF"
- [GrammarRule("TYPEOF")]
- private void mTYPEOF()
- {
-
- try
- {
- int _type = TYPEOF;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:33:8: ( 'typeof' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:33:10: 'typeof'
- {
- DebugLocation(33, 10);
- Match("typeof");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "TYPEOF"
-
- protected virtual void Enter_VAR() {}
- protected virtual void Leave_VAR() {}
-
- // $ANTLR start "VAR"
- [GrammarRule("VAR")]
- private void mVAR()
- {
-
- try
- {
- int _type = VAR;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:34:5: ( 'var' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:34:7: 'var'
- {
- DebugLocation(34, 7);
- Match("var");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "VAR"
-
- protected virtual void Enter_VOID() {}
- protected virtual void Leave_VOID() {}
-
- // $ANTLR start "VOID"
- [GrammarRule("VOID")]
- private void mVOID()
- {
-
- try
- {
- int _type = VOID;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:35:6: ( 'void' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:35:8: 'void'
- {
- DebugLocation(35, 8);
- Match("void");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "VOID"
-
- protected virtual void Enter_WHILE() {}
- protected virtual void Leave_WHILE() {}
-
- // $ANTLR start "WHILE"
- [GrammarRule("WHILE")]
- private void mWHILE()
- {
-
- try
- {
- int _type = WHILE;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:36:7: ( 'while' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:36:9: 'while'
- {
- DebugLocation(36, 9);
- Match("while");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "WHILE"
-
- protected virtual void Enter_WITH() {}
- protected virtual void Leave_WITH() {}
-
- // $ANTLR start "WITH"
- [GrammarRule("WITH")]
- private void mWITH()
- {
-
- try
- {
- int _type = WITH;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:37:6: ( 'with' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:37:8: 'with'
- {
- DebugLocation(37, 8);
- Match("with");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "WITH"
-
- protected virtual void Enter_ABSTRACT() {}
- protected virtual void Leave_ABSTRACT() {}
-
- // $ANTLR start "ABSTRACT"
- [GrammarRule("ABSTRACT")]
- private void mABSTRACT()
- {
-
- try
- {
- int _type = ABSTRACT;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:38:10: ( 'abstract' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:38:12: 'abstract'
- {
- DebugLocation(38, 12);
- Match("abstract");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "ABSTRACT"
-
- protected virtual void Enter_BOOLEAN() {}
- protected virtual void Leave_BOOLEAN() {}
-
- // $ANTLR start "BOOLEAN"
- [GrammarRule("BOOLEAN")]
- private void mBOOLEAN()
- {
-
- try
- {
- int _type = BOOLEAN;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:39:9: ( 'boolean' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:39:11: 'boolean'
- {
- DebugLocation(39, 11);
- Match("boolean");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "BOOLEAN"
-
- protected virtual void Enter_BYTE() {}
- protected virtual void Leave_BYTE() {}
-
- // $ANTLR start "BYTE"
- [GrammarRule("BYTE")]
- private void mBYTE()
- {
-
- try
- {
- int _type = BYTE;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:40:6: ( 'byte' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:40:8: 'byte'
- {
- DebugLocation(40, 8);
- Match("byte");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "BYTE"
-
- protected virtual void Enter_CHAR() {}
- protected virtual void Leave_CHAR() {}
-
- // $ANTLR start "CHAR"
- [GrammarRule("CHAR")]
- private void mCHAR()
- {
-
- try
- {
- int _type = CHAR;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:41:6: ( 'char' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:41:8: 'char'
- {
- DebugLocation(41, 8);
- Match("char");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "CHAR"
-
- protected virtual void Enter_CLASS() {}
- protected virtual void Leave_CLASS() {}
-
- // $ANTLR start "CLASS"
- [GrammarRule("CLASS")]
- private void mCLASS()
- {
-
- try
- {
- int _type = CLASS;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:42:7: ( 'class' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:42:9: 'class'
- {
- DebugLocation(42, 9);
- Match("class");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "CLASS"
-
- protected virtual void Enter_CONST() {}
- protected virtual void Leave_CONST() {}
-
- // $ANTLR start "CONST"
- [GrammarRule("CONST")]
- private void mCONST()
- {
-
- try
- {
- int _type = CONST;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:43:7: ( 'const' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:43:9: 'const'
- {
- DebugLocation(43, 9);
- Match("const");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "CONST"
-
- protected virtual void Enter_DEBUGGER() {}
- protected virtual void Leave_DEBUGGER() {}
-
- // $ANTLR start "DEBUGGER"
- [GrammarRule("DEBUGGER")]
- private void mDEBUGGER()
- {
-
- try
- {
- int _type = DEBUGGER;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:44:10: ( 'debugger' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:44:12: 'debugger'
- {
- DebugLocation(44, 12);
- Match("debugger");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "DEBUGGER"
-
- protected virtual void Enter_DOUBLE() {}
- protected virtual void Leave_DOUBLE() {}
-
- // $ANTLR start "DOUBLE"
- [GrammarRule("DOUBLE")]
- private void mDOUBLE()
- {
-
- try
- {
- int _type = DOUBLE;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:45:8: ( 'double' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:45:10: 'double'
- {
- DebugLocation(45, 10);
- Match("double");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "DOUBLE"
-
- protected virtual void Enter_ENUM() {}
- protected virtual void Leave_ENUM() {}
-
- // $ANTLR start "ENUM"
- [GrammarRule("ENUM")]
- private void mENUM()
- {
-
- try
- {
- int _type = ENUM;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:46:6: ( 'enum' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:46:8: 'enum'
- {
- DebugLocation(46, 8);
- Match("enum");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "ENUM"
-
- protected virtual void Enter_EXPORT() {}
- protected virtual void Leave_EXPORT() {}
-
- // $ANTLR start "EXPORT"
- [GrammarRule("EXPORT")]
- private void mEXPORT()
- {
-
- try
- {
- int _type = EXPORT;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:47:8: ( 'export' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:47:10: 'export'
- {
- DebugLocation(47, 10);
- Match("export");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "EXPORT"
-
- protected virtual void Enter_EXTENDS() {}
- protected virtual void Leave_EXTENDS() {}
-
- // $ANTLR start "EXTENDS"
- [GrammarRule("EXTENDS")]
- private void mEXTENDS()
- {
-
- try
- {
- int _type = EXTENDS;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:48:9: ( 'extends' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:48:11: 'extends'
- {
- DebugLocation(48, 11);
- Match("extends");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "EXTENDS"
-
- protected virtual void Enter_FINAL() {}
- protected virtual void Leave_FINAL() {}
-
- // $ANTLR start "FINAL"
- [GrammarRule("FINAL")]
- private void mFINAL()
- {
-
- try
- {
- int _type = FINAL;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:49:7: ( 'final' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:49:9: 'final'
- {
- DebugLocation(49, 9);
- Match("final");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "FINAL"
-
- protected virtual void Enter_FLOAT() {}
- protected virtual void Leave_FLOAT() {}
-
- // $ANTLR start "FLOAT"
- [GrammarRule("FLOAT")]
- private void mFLOAT()
- {
-
- try
- {
- int _type = FLOAT;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:50:7: ( 'float' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:50:9: 'float'
- {
- DebugLocation(50, 9);
- Match("float");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "FLOAT"
-
- protected virtual void Enter_GOTO() {}
- protected virtual void Leave_GOTO() {}
-
- // $ANTLR start "GOTO"
- [GrammarRule("GOTO")]
- private void mGOTO()
- {
-
- try
- {
- int _type = GOTO;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:51:6: ( 'goto' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:51:8: 'goto'
- {
- DebugLocation(51, 8);
- Match("goto");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "GOTO"
-
- protected virtual void Enter_IMPLEMENTS() {}
- protected virtual void Leave_IMPLEMENTS() {}
-
- // $ANTLR start "IMPLEMENTS"
- [GrammarRule("IMPLEMENTS")]
- private void mIMPLEMENTS()
- {
-
- try
- {
- int _type = IMPLEMENTS;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:52:12: ( 'implements' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:52:14: 'implements'
- {
- DebugLocation(52, 14);
- Match("implements");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "IMPLEMENTS"
-
- protected virtual void Enter_IMPORT() {}
- protected virtual void Leave_IMPORT() {}
-
- // $ANTLR start "IMPORT"
- [GrammarRule("IMPORT")]
- private void mIMPORT()
- {
-
- try
- {
- int _type = IMPORT;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:53:8: ( 'import' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:53:10: 'import'
- {
- DebugLocation(53, 10);
- Match("import");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "IMPORT"
-
- protected virtual void Enter_INT() {}
- protected virtual void Leave_INT() {}
-
- // $ANTLR start "INT"
- [GrammarRule("INT")]
- private void mINT()
- {
-
- try
- {
- int _type = INT;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:54:5: ( 'int' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:54:7: 'int'
- {
- DebugLocation(54, 7);
- Match("int");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "INT"
-
- protected virtual void Enter_INTERFACE() {}
- protected virtual void Leave_INTERFACE() {}
-
- // $ANTLR start "INTERFACE"
- [GrammarRule("INTERFACE")]
- private void mINTERFACE()
- {
-
- try
- {
- int _type = INTERFACE;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:55:11: ( 'interface' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:55:13: 'interface'
- {
- DebugLocation(55, 13);
- Match("interface");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "INTERFACE"
-
- protected virtual void Enter_LONG() {}
- protected virtual void Leave_LONG() {}
-
- // $ANTLR start "LONG"
- [GrammarRule("LONG")]
- private void mLONG()
- {
-
- try
- {
- int _type = LONG;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:56:6: ( 'long' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:56:8: 'long'
- {
- DebugLocation(56, 8);
- Match("long");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "LONG"
-
- protected virtual void Enter_NATIVE() {}
- protected virtual void Leave_NATIVE() {}
-
- // $ANTLR start "NATIVE"
- [GrammarRule("NATIVE")]
- private void mNATIVE()
- {
-
- try
- {
- int _type = NATIVE;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:57:8: ( 'native' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:57:10: 'native'
- {
- DebugLocation(57, 10);
- Match("native");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "NATIVE"
-
- protected virtual void Enter_PACKAGE() {}
- protected virtual void Leave_PACKAGE() {}
-
- // $ANTLR start "PACKAGE"
- [GrammarRule("PACKAGE")]
- private void mPACKAGE()
- {
-
- try
- {
- int _type = PACKAGE;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:58:9: ( 'package' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:58:11: 'package'
- {
- DebugLocation(58, 11);
- Match("package");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "PACKAGE"
-
- protected virtual void Enter_PRIVATE() {}
- protected virtual void Leave_PRIVATE() {}
-
- // $ANTLR start "PRIVATE"
- [GrammarRule("PRIVATE")]
- private void mPRIVATE()
- {
-
- try
- {
- int _type = PRIVATE;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:59:9: ( 'private' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:59:11: 'private'
- {
- DebugLocation(59, 11);
- Match("private");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "PRIVATE"
-
- protected virtual void Enter_PROTECTED() {}
- protected virtual void Leave_PROTECTED() {}
-
- // $ANTLR start "PROTECTED"
- [GrammarRule("PROTECTED")]
- private void mPROTECTED()
- {
-
- try
- {
- int _type = PROTECTED;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:60:11: ( 'protected' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:60:13: 'protected'
- {
- DebugLocation(60, 13);
- Match("protected");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "PROTECTED"
-
- protected virtual void Enter_PUBLIC() {}
- protected virtual void Leave_PUBLIC() {}
-
- // $ANTLR start "PUBLIC"
- [GrammarRule("PUBLIC")]
- private void mPUBLIC()
- {
-
- try
- {
- int _type = PUBLIC;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:61:8: ( 'public' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:61:10: 'public'
- {
- DebugLocation(61, 10);
- Match("public");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "PUBLIC"
-
- protected virtual void Enter_SHORT() {}
- protected virtual void Leave_SHORT() {}
-
- // $ANTLR start "SHORT"
- [GrammarRule("SHORT")]
- private void mSHORT()
- {
-
- try
- {
- int _type = SHORT;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:62:7: ( 'short' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:62:9: 'short'
- {
- DebugLocation(62, 9);
- Match("short");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "SHORT"
-
- protected virtual void Enter_STATIC() {}
- protected virtual void Leave_STATIC() {}
-
- // $ANTLR start "STATIC"
- [GrammarRule("STATIC")]
- private void mSTATIC()
- {
-
- try
- {
- int _type = STATIC;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:63:8: ( 'static' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:63:10: 'static'
- {
- DebugLocation(63, 10);
- Match("static");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "STATIC"
-
- protected virtual void Enter_SUPER() {}
- protected virtual void Leave_SUPER() {}
-
- // $ANTLR start "SUPER"
- [GrammarRule("SUPER")]
- private void mSUPER()
- {
-
- try
- {
- int _type = SUPER;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:64:7: ( 'super' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:64:9: 'super'
- {
- DebugLocation(64, 9);
- Match("super");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "SUPER"
-
- protected virtual void Enter_SYNCHRONIZED() {}
- protected virtual void Leave_SYNCHRONIZED() {}
-
- // $ANTLR start "SYNCHRONIZED"
- [GrammarRule("SYNCHRONIZED")]
- private void mSYNCHRONIZED()
- {
-
- try
- {
- int _type = SYNCHRONIZED;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:65:14: ( 'synchronized' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:65:16: 'synchronized'
- {
- DebugLocation(65, 16);
- Match("synchronized");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "SYNCHRONIZED"
-
- protected virtual void Enter_THROWS() {}
- protected virtual void Leave_THROWS() {}
-
- // $ANTLR start "THROWS"
- [GrammarRule("THROWS")]
- private void mTHROWS()
- {
-
- try
- {
- int _type = THROWS;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:66:8: ( 'throws' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:66:10: 'throws'
- {
- DebugLocation(66, 10);
- Match("throws");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "THROWS"
-
- protected virtual void Enter_TRANSIENT() {}
- protected virtual void Leave_TRANSIENT() {}
-
- // $ANTLR start "TRANSIENT"
- [GrammarRule("TRANSIENT")]
- private void mTRANSIENT()
- {
-
- try
- {
- int _type = TRANSIENT;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:67:11: ( 'transient' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:67:13: 'transient'
- {
- DebugLocation(67, 13);
- Match("transient");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "TRANSIENT"
-
- protected virtual void Enter_VOLATILE() {}
- protected virtual void Leave_VOLATILE() {}
-
- // $ANTLR start "VOLATILE"
- [GrammarRule("VOLATILE")]
- private void mVOLATILE()
- {
-
- try
- {
- int _type = VOLATILE;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:68:10: ( 'volatile' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:68:12: 'volatile'
- {
- DebugLocation(68, 12);
- Match("volatile");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "VOLATILE"
-
- protected virtual void Enter_LBRACE() {}
- protected virtual void Leave_LBRACE() {}
-
- // $ANTLR start "LBRACE"
- [GrammarRule("LBRACE")]
- private void mLBRACE()
- {
-
- try
- {
- int _type = LBRACE;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:69:8: ( '{' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:69:10: '{'
- {
- DebugLocation(69, 10);
- Match('{');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "LBRACE"
-
- protected virtual void Enter_RBRACE() {}
- protected virtual void Leave_RBRACE() {}
-
- // $ANTLR start "RBRACE"
- [GrammarRule("RBRACE")]
- private void mRBRACE()
- {
-
- try
- {
- int _type = RBRACE;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:70:8: ( '}' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:70:10: '}'
- {
- DebugLocation(70, 10);
- Match('}');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "RBRACE"
-
- protected virtual void Enter_LPAREN() {}
- protected virtual void Leave_LPAREN() {}
-
- // $ANTLR start "LPAREN"
- [GrammarRule("LPAREN")]
- private void mLPAREN()
- {
-
- try
- {
- int _type = LPAREN;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:71:8: ( '(' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:71:10: '('
- {
- DebugLocation(71, 10);
- Match('(');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "LPAREN"
-
- protected virtual void Enter_RPAREN() {}
- protected virtual void Leave_RPAREN() {}
-
- // $ANTLR start "RPAREN"
- [GrammarRule("RPAREN")]
- private void mRPAREN()
- {
-
- try
- {
- int _type = RPAREN;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:72:8: ( ')' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:72:10: ')'
- {
- DebugLocation(72, 10);
- Match(')');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "RPAREN"
-
- protected virtual void Enter_LBRACK() {}
- protected virtual void Leave_LBRACK() {}
-
- // $ANTLR start "LBRACK"
- [GrammarRule("LBRACK")]
- private void mLBRACK()
- {
-
- try
- {
- int _type = LBRACK;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:73:8: ( '[' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:73:10: '['
- {
- DebugLocation(73, 10);
- Match('[');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "LBRACK"
-
- protected virtual void Enter_RBRACK() {}
- protected virtual void Leave_RBRACK() {}
-
- // $ANTLR start "RBRACK"
- [GrammarRule("RBRACK")]
- private void mRBRACK()
- {
-
- try
- {
- int _type = RBRACK;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:74:8: ( ']' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:74:10: ']'
- {
- DebugLocation(74, 10);
- Match(']');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "RBRACK"
-
- protected virtual void Enter_DOT() {}
- protected virtual void Leave_DOT() {}
-
- // $ANTLR start "DOT"
- [GrammarRule("DOT")]
- private void mDOT()
- {
-
- try
- {
- int _type = DOT;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:75:5: ( '.' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:75:7: '.'
- {
- DebugLocation(75, 7);
- Match('.');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "DOT"
-
- protected virtual void Enter_SEMIC() {}
- protected virtual void Leave_SEMIC() {}
-
- // $ANTLR start "SEMIC"
- [GrammarRule("SEMIC")]
- private void mSEMIC()
- {
-
- try
- {
- int _type = SEMIC;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:76:7: ( ';' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:76:9: ';'
- {
- DebugLocation(76, 9);
- Match(';');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "SEMIC"
-
- protected virtual void Enter_COMMA() {}
- protected virtual void Leave_COMMA() {}
-
- // $ANTLR start "COMMA"
- [GrammarRule("COMMA")]
- private void mCOMMA()
- {
-
- try
- {
- int _type = COMMA;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:77:7: ( ',' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:77:9: ','
- {
- DebugLocation(77, 9);
- Match(',');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "COMMA"
-
- protected virtual void Enter_LT() {}
- protected virtual void Leave_LT() {}
-
- // $ANTLR start "LT"
- [GrammarRule("LT")]
- private void mLT()
- {
-
- try
- {
- int _type = LT;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:78:4: ( '<' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:78:6: '<'
- {
- DebugLocation(78, 6);
- Match('<');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "LT"
-
- protected virtual void Enter_GT() {}
- protected virtual void Leave_GT() {}
-
- // $ANTLR start "GT"
- [GrammarRule("GT")]
- private void mGT()
- {
-
- try
- {
- int _type = GT;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:79:4: ( '>' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:79:6: '>'
- {
- DebugLocation(79, 6);
- Match('>');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "GT"
-
- protected virtual void Enter_LTE() {}
- protected virtual void Leave_LTE() {}
-
- // $ANTLR start "LTE"
- [GrammarRule("LTE")]
- private void mLTE()
- {
-
- try
- {
- int _type = LTE;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:80:5: ( '<=' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:80:7: '<='
- {
- DebugLocation(80, 7);
- Match("<=");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "LTE"
-
- protected virtual void Enter_GTE() {}
- protected virtual void Leave_GTE() {}
-
- // $ANTLR start "GTE"
- [GrammarRule("GTE")]
- private void mGTE()
- {
-
- try
- {
- int _type = GTE;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:81:5: ( '>=' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:81:7: '>='
- {
- DebugLocation(81, 7);
- Match(">=");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "GTE"
-
- protected virtual void Enter_EQ() {}
- protected virtual void Leave_EQ() {}
-
- // $ANTLR start "EQ"
- [GrammarRule("EQ")]
- private void mEQ()
- {
-
- try
- {
- int _type = EQ;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:82:4: ( '==' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:82:6: '=='
- {
- DebugLocation(82, 6);
- Match("==");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "EQ"
-
- protected virtual void Enter_NEQ() {}
- protected virtual void Leave_NEQ() {}
-
- // $ANTLR start "NEQ"
- [GrammarRule("NEQ")]
- private void mNEQ()
- {
-
- try
- {
- int _type = NEQ;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:83:5: ( '!=' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:83:7: '!='
- {
- DebugLocation(83, 7);
- Match("!=");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "NEQ"
-
- protected virtual void Enter_SAME() {}
- protected virtual void Leave_SAME() {}
-
- // $ANTLR start "SAME"
- [GrammarRule("SAME")]
- private void mSAME()
- {
-
- try
- {
- int _type = SAME;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:84:6: ( '===' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:84:8: '==='
- {
- DebugLocation(84, 8);
- Match("===");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "SAME"
-
- protected virtual void Enter_NSAME() {}
- protected virtual void Leave_NSAME() {}
-
- // $ANTLR start "NSAME"
- [GrammarRule("NSAME")]
- private void mNSAME()
- {
-
- try
- {
- int _type = NSAME;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:85:7: ( '!==' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:85:9: '!=='
- {
- DebugLocation(85, 9);
- Match("!==");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "NSAME"
-
- protected virtual void Enter_ADD() {}
- protected virtual void Leave_ADD() {}
-
- // $ANTLR start "ADD"
- [GrammarRule("ADD")]
- private void mADD()
- {
-
- try
- {
- int _type = ADD;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:86:5: ( '+' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:86:7: '+'
- {
- DebugLocation(86, 7);
- Match('+');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "ADD"
-
- protected virtual void Enter_SUB() {}
- protected virtual void Leave_SUB() {}
-
- // $ANTLR start "SUB"
- [GrammarRule("SUB")]
- private void mSUB()
- {
-
- try
- {
- int _type = SUB;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:87:5: ( '-' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:87:7: '-'
- {
- DebugLocation(87, 7);
- Match('-');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "SUB"
-
- protected virtual void Enter_MUL() {}
- protected virtual void Leave_MUL() {}
-
- // $ANTLR start "MUL"
- [GrammarRule("MUL")]
- private void mMUL()
- {
-
- try
- {
- int _type = MUL;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:88:5: ( '*' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:88:7: '*'
- {
- DebugLocation(88, 7);
- Match('*');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "MUL"
-
- protected virtual void Enter_MOD() {}
- protected virtual void Leave_MOD() {}
-
- // $ANTLR start "MOD"
- [GrammarRule("MOD")]
- private void mMOD()
- {
-
- try
- {
- int _type = MOD;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:89:5: ( '%' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:89:7: '%'
- {
- DebugLocation(89, 7);
- Match('%');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "MOD"
-
- protected virtual void Enter_INC() {}
- protected virtual void Leave_INC() {}
-
- // $ANTLR start "INC"
- [GrammarRule("INC")]
- private void mINC()
- {
-
- try
- {
- int _type = INC;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:90:5: ( '++' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:90:7: '++'
- {
- DebugLocation(90, 7);
- Match("++");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "INC"
-
- protected virtual void Enter_DEC() {}
- protected virtual void Leave_DEC() {}
-
- // $ANTLR start "DEC"
- [GrammarRule("DEC")]
- private void mDEC()
- {
-
- try
- {
- int _type = DEC;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:91:5: ( '--' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:91:7: '--'
- {
- DebugLocation(91, 7);
- Match("--");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "DEC"
-
- protected virtual void Enter_SHL() {}
- protected virtual void Leave_SHL() {}
-
- // $ANTLR start "SHL"
- [GrammarRule("SHL")]
- private void mSHL()
- {
-
- try
- {
- int _type = SHL;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:92:5: ( '<<' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:92:7: '<<'
- {
- DebugLocation(92, 7);
- Match("<<");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "SHL"
-
- protected virtual void Enter_SHR() {}
- protected virtual void Leave_SHR() {}
-
- // $ANTLR start "SHR"
- [GrammarRule("SHR")]
- private void mSHR()
- {
-
- try
- {
- int _type = SHR;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:93:5: ( '>>' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:93:7: '>>'
- {
- DebugLocation(93, 7);
- Match(">>");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "SHR"
-
- protected virtual void Enter_SHU() {}
- protected virtual void Leave_SHU() {}
-
- // $ANTLR start "SHU"
- [GrammarRule("SHU")]
- private void mSHU()
- {
-
- try
- {
- int _type = SHU;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:94:5: ( '>>>' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:94:7: '>>>'
- {
- DebugLocation(94, 7);
- Match(">>>");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "SHU"
-
- protected virtual void Enter_AND() {}
- protected virtual void Leave_AND() {}
-
- // $ANTLR start "AND"
- [GrammarRule("AND")]
- private void mAND()
- {
-
- try
- {
- int _type = AND;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:95:5: ( '&' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:95:7: '&'
- {
- DebugLocation(95, 7);
- Match('&');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "AND"
-
- protected virtual void Enter_OR() {}
- protected virtual void Leave_OR() {}
-
- // $ANTLR start "OR"
- [GrammarRule("OR")]
- private void mOR()
- {
-
- try
- {
- int _type = OR;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:96:4: ( '|' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:96:6: '|'
- {
- DebugLocation(96, 6);
- Match('|');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "OR"
-
- protected virtual void Enter_XOR() {}
- protected virtual void Leave_XOR() {}
-
- // $ANTLR start "XOR"
- [GrammarRule("XOR")]
- private void mXOR()
- {
-
- try
- {
- int _type = XOR;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:97:5: ( '^' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:97:7: '^'
- {
- DebugLocation(97, 7);
- Match('^');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "XOR"
-
- protected virtual void Enter_NOT() {}
- protected virtual void Leave_NOT() {}
-
- // $ANTLR start "NOT"
- [GrammarRule("NOT")]
- private void mNOT()
- {
-
- try
- {
- int _type = NOT;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:98:5: ( '!' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:98:7: '!'
- {
- DebugLocation(98, 7);
- Match('!');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "NOT"
-
- protected virtual void Enter_INV() {}
- protected virtual void Leave_INV() {}
-
- // $ANTLR start "INV"
- [GrammarRule("INV")]
- private void mINV()
- {
-
- try
- {
- int _type = INV;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:99:5: ( '~' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:99:7: '~'
- {
- DebugLocation(99, 7);
- Match('~');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "INV"
-
- protected virtual void Enter_LAND() {}
- protected virtual void Leave_LAND() {}
-
- // $ANTLR start "LAND"
- [GrammarRule("LAND")]
- private void mLAND()
- {
-
- try
- {
- int _type = LAND;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:100:6: ( '&&' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:100:8: '&&'
- {
- DebugLocation(100, 8);
- Match("&&");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "LAND"
-
- protected virtual void Enter_LOR() {}
- protected virtual void Leave_LOR() {}
-
- // $ANTLR start "LOR"
- [GrammarRule("LOR")]
- private void mLOR()
- {
-
- try
- {
- int _type = LOR;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:101:5: ( '||' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:101:7: '||'
- {
- DebugLocation(101, 7);
- Match("||");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "LOR"
-
- protected virtual void Enter_QUE() {}
- protected virtual void Leave_QUE() {}
-
- // $ANTLR start "QUE"
- [GrammarRule("QUE")]
- private void mQUE()
- {
-
- try
- {
- int _type = QUE;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:102:5: ( '?' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:102:7: '?'
- {
- DebugLocation(102, 7);
- Match('?');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "QUE"
-
- protected virtual void Enter_COLON() {}
- protected virtual void Leave_COLON() {}
-
- // $ANTLR start "COLON"
- [GrammarRule("COLON")]
- private void mCOLON()
- {
-
- try
- {
- int _type = COLON;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:103:7: ( ':' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:103:9: ':'
- {
- DebugLocation(103, 9);
- Match(':');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "COLON"
-
- protected virtual void Enter_ASSIGN() {}
- protected virtual void Leave_ASSIGN() {}
-
- // $ANTLR start "ASSIGN"
- [GrammarRule("ASSIGN")]
- private void mASSIGN()
- {
-
- try
- {
- int _type = ASSIGN;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:104:8: ( '=' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:104:10: '='
- {
- DebugLocation(104, 10);
- Match('=');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "ASSIGN"
-
- protected virtual void Enter_ADDASS() {}
- protected virtual void Leave_ADDASS() {}
-
- // $ANTLR start "ADDASS"
- [GrammarRule("ADDASS")]
- private void mADDASS()
- {
-
- try
- {
- int _type = ADDASS;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:105:8: ( '+=' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:105:10: '+='
- {
- DebugLocation(105, 10);
- Match("+=");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "ADDASS"
-
- protected virtual void Enter_SUBASS() {}
- protected virtual void Leave_SUBASS() {}
-
- // $ANTLR start "SUBASS"
- [GrammarRule("SUBASS")]
- private void mSUBASS()
- {
-
- try
- {
- int _type = SUBASS;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:106:8: ( '-=' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:106:10: '-='
- {
- DebugLocation(106, 10);
- Match("-=");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "SUBASS"
-
- protected virtual void Enter_MULASS() {}
- protected virtual void Leave_MULASS() {}
-
- // $ANTLR start "MULASS"
- [GrammarRule("MULASS")]
- private void mMULASS()
- {
-
- try
- {
- int _type = MULASS;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:107:8: ( '*=' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:107:10: '*='
- {
- DebugLocation(107, 10);
- Match("*=");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "MULASS"
-
- protected virtual void Enter_MODASS() {}
- protected virtual void Leave_MODASS() {}
-
- // $ANTLR start "MODASS"
- [GrammarRule("MODASS")]
- private void mMODASS()
- {
-
- try
- {
- int _type = MODASS;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:108:8: ( '%=' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:108:10: '%='
- {
- DebugLocation(108, 10);
- Match("%=");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "MODASS"
-
- protected virtual void Enter_SHLASS() {}
- protected virtual void Leave_SHLASS() {}
-
- // $ANTLR start "SHLASS"
- [GrammarRule("SHLASS")]
- private void mSHLASS()
- {
-
- try
- {
- int _type = SHLASS;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:109:8: ( '<<=' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:109:10: '<<='
- {
- DebugLocation(109, 10);
- Match("<<=");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "SHLASS"
-
- protected virtual void Enter_SHRASS() {}
- protected virtual void Leave_SHRASS() {}
-
- // $ANTLR start "SHRASS"
- [GrammarRule("SHRASS")]
- private void mSHRASS()
- {
-
- try
- {
- int _type = SHRASS;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:110:8: ( '>>=' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:110:10: '>>='
- {
- DebugLocation(110, 10);
- Match(">>=");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "SHRASS"
-
- protected virtual void Enter_SHUASS() {}
- protected virtual void Leave_SHUASS() {}
-
- // $ANTLR start "SHUASS"
- [GrammarRule("SHUASS")]
- private void mSHUASS()
- {
-
- try
- {
- int _type = SHUASS;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:111:8: ( '>>>=' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:111:10: '>>>='
- {
- DebugLocation(111, 10);
- Match(">>>=");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "SHUASS"
-
- protected virtual void Enter_ANDASS() {}
- protected virtual void Leave_ANDASS() {}
-
- // $ANTLR start "ANDASS"
- [GrammarRule("ANDASS")]
- private void mANDASS()
- {
-
- try
- {
- int _type = ANDASS;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:112:8: ( '&=' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:112:10: '&='
- {
- DebugLocation(112, 10);
- Match("&=");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "ANDASS"
-
- protected virtual void Enter_ORASS() {}
- protected virtual void Leave_ORASS() {}
-
- // $ANTLR start "ORASS"
- [GrammarRule("ORASS")]
- private void mORASS()
- {
-
- try
- {
- int _type = ORASS;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:113:7: ( '|=' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:113:9: '|='
- {
- DebugLocation(113, 9);
- Match("|=");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "ORASS"
-
- protected virtual void Enter_XORASS() {}
- protected virtual void Leave_XORASS() {}
-
- // $ANTLR start "XORASS"
- [GrammarRule("XORASS")]
- private void mXORASS()
- {
-
- try
- {
- int _type = XORASS;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:114:8: ( '^=' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:114:10: '^='
- {
- DebugLocation(114, 10);
- Match("^=");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "XORASS"
-
- protected virtual void Enter_DIV() {}
- protected virtual void Leave_DIV() {}
-
- // $ANTLR start "DIV"
- [GrammarRule("DIV")]
- private void mDIV()
- {
-
- try
- {
- int _type = DIV;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:115:5: ( '/' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:115:7: '/'
- {
- DebugLocation(115, 7);
- Match('/');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "DIV"
-
- protected virtual void Enter_DIVASS() {}
- protected virtual void Leave_DIVASS() {}
-
- // $ANTLR start "DIVASS"
- [GrammarRule("DIVASS")]
- private void mDIVASS()
- {
-
- try
- {
- int _type = DIVASS;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:116:8: ( '/=' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:116:10: '/='
- {
- DebugLocation(116, 10);
- Match("/=");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "DIVASS"
-
- protected virtual void Enter_BSLASH() {}
- protected virtual void Leave_BSLASH() {}
-
- // $ANTLR start "BSLASH"
- [GrammarRule("BSLASH")]
- private void mBSLASH()
- {
-
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:203:2: ( '\\\\' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:203:4: '\\\\'
- {
- DebugLocation(203, 4);
- Match('\\');
-
- }
-
- }
- finally
- {
- }
- }
- // $ANTLR end "BSLASH"
-
- protected virtual void Enter_DQUOTE() {}
- protected virtual void Leave_DQUOTE() {}
-
- // $ANTLR start "DQUOTE"
- [GrammarRule("DQUOTE")]
- private void mDQUOTE()
- {
-
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:207:2: ( '\"' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:207:4: '\"'
- {
- DebugLocation(207, 4);
- Match('\"');
-
- }
-
- }
- finally
- {
- }
- }
- // $ANTLR end "DQUOTE"
-
- protected virtual void Enter_SQUOTE() {}
- protected virtual void Leave_SQUOTE() {}
-
- // $ANTLR start "SQUOTE"
- [GrammarRule("SQUOTE")]
- private void mSQUOTE()
- {
-
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:211:2: ( '\\'' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:211:4: '\\''
- {
- DebugLocation(211, 4);
- Match('\'');
-
- }
-
- }
- finally
- {
- }
- }
- // $ANTLR end "SQUOTE"
-
- protected virtual void Enter_TAB() {}
- protected virtual void Leave_TAB() {}
-
- // $ANTLR start "TAB"
- [GrammarRule("TAB")]
- private void mTAB()
- {
-
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:217:2: ( '\\u0009' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:217:4: '\\u0009'
- {
- DebugLocation(217, 4);
- Match('\t');
-
- }
-
- }
- finally
- {
- }
- }
- // $ANTLR end "TAB"
-
- protected virtual void Enter_VT() {}
- protected virtual void Leave_VT() {}
-
- // $ANTLR start "VT"
- [GrammarRule("VT")]
- private void mVT()
- {
-
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:221:2: ( '\\u000b' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:221:4: '\\u000b'
- {
- DebugLocation(221, 4);
- Match('\u000B');
-
- }
-
- }
- finally
- {
- }
- }
- // $ANTLR end "VT"
-
- protected virtual void Enter_FF() {}
- protected virtual void Leave_FF() {}
-
- // $ANTLR start "FF"
- [GrammarRule("FF")]
- private void mFF()
- {
-
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:225:2: ( '\\u000c' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:225:4: '\\u000c'
- {
- DebugLocation(225, 4);
- Match('\f');
-
- }
-
- }
- finally
- {
- }
- }
- // $ANTLR end "FF"
-
- protected virtual void Enter_SP() {}
- protected virtual void Leave_SP() {}
-
- // $ANTLR start "SP"
- [GrammarRule("SP")]
- private void mSP()
- {
-
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:229:2: ( '\\u0020' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:229:4: '\\u0020'
- {
- DebugLocation(229, 4);
- Match(' ');
-
- }
-
- }
- finally
- {
- }
- }
- // $ANTLR end "SP"
-
- protected virtual void Enter_NBSP() {}
- protected virtual void Leave_NBSP() {}
-
- // $ANTLR start "NBSP"
- [GrammarRule("NBSP")]
- private void mNBSP()
- {
-
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:233:2: ( '\\u00a0' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:233:4: '\\u00a0'
- {
- DebugLocation(233, 4);
- Match('\u00A0');
-
- }
-
- }
- finally
- {
- }
- }
- // $ANTLR end "NBSP"
-
- protected virtual void Enter_USP() {}
- protected virtual void Leave_USP() {}
-
- // $ANTLR start "USP"
- [GrammarRule("USP")]
- private void mUSP()
- {
-
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:237:2: ( '\\u1680' | '\\u180E' | '\\u2000' | '\\u2001' | '\\u2002' | '\\u2003' | '\\u2004' | '\\u2005' | '\\u2006' | '\\u2007' | '\\u2008' | '\\u2009' | '\\u200A' | '\\u202F' | '\\u205F' | '\\u3000' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:
- {
- DebugLocation(237, 2);
- if (input.LA(1)=='\u1680'||input.LA(1)=='\u180E'||(input.LA(1)>='\u2000' && input.LA(1)<='\u200A')||input.LA(1)=='\u202F'||input.LA(1)=='\u205F'||input.LA(1)=='\u3000')
- {
- input.Consume();
-
- }
- else
- {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- DebugRecognitionException(mse);
- Recover(mse);
- throw mse;}
-
-
- }
-
- }
- finally
- {
- }
- }
- // $ANTLR end "USP"
-
- protected virtual void Enter_WhiteSpace() {}
- protected virtual void Leave_WhiteSpace() {}
-
- // $ANTLR start "WhiteSpace"
- [GrammarRule("WhiteSpace")]
- private void mWhiteSpace()
- {
-
- try
- {
- int _type = WhiteSpace;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:256:2: ( ( TAB | VT | FF | SP | NBSP | USP )+ )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:256:4: ( TAB | VT | FF | SP | NBSP | USP )+
- {
- DebugLocation(256, 4);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:256:4: ( TAB | VT | FF | SP | NBSP | USP )+
- int cnt1=0;
- try { DebugEnterSubRule(1);
- while (true)
- {
- int alt1=2;
- try { DebugEnterDecision(1, decisionCanBacktrack[1]);
- int LA1_0 = input.LA(1);
-
- if ((LA1_0=='\t'||(LA1_0>='\u000B' && LA1_0<='\f')||LA1_0==' '||LA1_0=='\u00A0'||LA1_0=='\u1680'||LA1_0=='\u180E'||(LA1_0>='\u2000' && LA1_0<='\u200A')||LA1_0=='\u202F'||LA1_0=='\u205F'||LA1_0=='\u3000'))
- {
- alt1=1;
- }
-
-
- } finally { DebugExitDecision(1); }
- switch (alt1)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:
- {
- DebugLocation(256, 4);
- if (input.LA(1)=='\t'||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||input.LA(1)==' '||input.LA(1)=='\u00A0'||input.LA(1)=='\u1680'||input.LA(1)=='\u180E'||(input.LA(1)>='\u2000' && input.LA(1)<='\u200A')||input.LA(1)=='\u202F'||input.LA(1)=='\u205F'||input.LA(1)=='\u3000')
- {
- input.Consume();
-
- }
- else
- {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- DebugRecognitionException(mse);
- Recover(mse);
- throw mse;}
-
-
- }
- break;
-
- default:
- if (cnt1 >= 1)
- goto loop1;
-
- EarlyExitException eee1 = new EarlyExitException( 1, input );
- DebugRecognitionException(eee1);
- throw eee1;
- }
- cnt1++;
- }
- loop1:
- ;
-
- } finally { DebugExitSubRule(1); }
-
- DebugLocation(256, 41);
- _channel = Hidden;
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "WhiteSpace"
-
- protected virtual void Enter_LF() {}
- protected virtual void Leave_LF() {}
-
- // $ANTLR start "LF"
- [GrammarRule("LF")]
- private void mLF()
- {
-
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:264:2: ( '\\n' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:264:4: '\\n'
- {
- DebugLocation(264, 4);
- Match('\n');
-
- }
-
- }
- finally
- {
- }
- }
- // $ANTLR end "LF"
-
- protected virtual void Enter_CR() {}
- protected virtual void Leave_CR() {}
-
- // $ANTLR start "CR"
- [GrammarRule("CR")]
- private void mCR()
- {
-
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:268:2: ( '\\r' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:268:4: '\\r'
- {
- DebugLocation(268, 4);
- Match('\r');
-
- }
-
- }
- finally
- {
- }
- }
- // $ANTLR end "CR"
-
- protected virtual void Enter_LS() {}
- protected virtual void Leave_LS() {}
-
- // $ANTLR start "LS"
- [GrammarRule("LS")]
- private void mLS()
- {
-
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:272:2: ( '\\u2028' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:272:4: '\\u2028'
- {
- DebugLocation(272, 4);
- Match('\u2028');
-
- }
-
- }
- finally
- {
- }
- }
- // $ANTLR end "LS"
-
- protected virtual void Enter_PS() {}
- protected virtual void Leave_PS() {}
-
- // $ANTLR start "PS"
- [GrammarRule("PS")]
- private void mPS()
- {
-
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:276:2: ( '\\u2029' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:276:4: '\\u2029'
- {
- DebugLocation(276, 4);
- Match('\u2029');
-
- }
-
- }
- finally
- {
- }
- }
- // $ANTLR end "PS"
-
- protected virtual void Enter_LineTerminator() {}
- protected virtual void Leave_LineTerminator() {}
-
- // $ANTLR start "LineTerminator"
- [GrammarRule("LineTerminator")]
- private void mLineTerminator()
- {
-
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:280:2: ( CR | LF | LS | PS )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:
- {
- DebugLocation(280, 2);
- if (input.LA(1)=='\n'||input.LA(1)=='\r'||(input.LA(1)>='\u2028' && input.LA(1)<='\u2029'))
- {
- input.Consume();
-
- }
- else
- {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- DebugRecognitionException(mse);
- Recover(mse);
- throw mse;}
-
-
- }
-
- }
- finally
- {
- }
- }
- // $ANTLR end "LineTerminator"
-
- protected virtual void Enter_EOL() {}
- protected virtual void Leave_EOL() {}
-
- // $ANTLR start "EOL"
- [GrammarRule("EOL")]
- private void mEOL()
- {
-
- try
- {
- int _type = EOL;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:284:2: ( ( ( CR ( LF )? ) | LF | LS | PS ) )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:284:4: ( ( CR ( LF )? ) | LF | LS | PS )
- {
- DebugLocation(284, 4);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:284:4: ( ( CR ( LF )? ) | LF | LS | PS )
- int alt3=4;
- try { DebugEnterSubRule(3);
- try { DebugEnterDecision(3, decisionCanBacktrack[3]);
- switch (input.LA(1))
- {
- case '\r':
- {
- alt3=1;
- }
- break;
- case '\n':
- {
- alt3=2;
- }
- break;
- case '\u2028':
- {
- alt3=3;
- }
- break;
- case '\u2029':
- {
- alt3=4;
- }
- break;
- default:
- {
- NoViableAltException nvae = new NoViableAltException("", 3, 0, input);
-
- DebugRecognitionException(nvae);
- throw nvae;
- }
- }
-
- } finally { DebugExitDecision(3); }
- switch (alt3)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:284:6: ( CR ( LF )? )
- {
- DebugLocation(284, 6);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:284:6: ( CR ( LF )? )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:284:8: CR ( LF )?
- {
- DebugLocation(284, 8);
- mCR();
- DebugLocation(284, 11);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:284:11: ( LF )?
- int alt2=2;
- try { DebugEnterSubRule(2);
- try { DebugEnterDecision(2, decisionCanBacktrack[2]);
- int LA2_0 = input.LA(1);
-
- if ((LA2_0=='\n'))
- {
- alt2=1;
- }
- } finally { DebugExitDecision(2); }
- switch (alt2)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:284:11: LF
- {
- DebugLocation(284, 11);
- mLF();
-
- }
- break;
-
- }
- } finally { DebugExitSubRule(2); }
-
-
- }
-
-
- }
- break;
- case 2:
- DebugEnterAlt(2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:284:19: LF
- {
- DebugLocation(284, 19);
- mLF();
-
- }
- break;
- case 3:
- DebugEnterAlt(3);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:284:24: LS
- {
- DebugLocation(284, 24);
- mLS();
-
- }
- break;
- case 4:
- DebugEnterAlt(4);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:284:29: PS
- {
- DebugLocation(284, 29);
- mPS();
-
- }
- break;
-
- }
- } finally { DebugExitSubRule(3); }
-
- DebugLocation(284, 34);
- _channel = Hidden;
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "EOL"
-
- protected virtual void Enter_MultiLineComment() {}
- protected virtual void Leave_MultiLineComment() {}
-
- // $ANTLR start "MultiLineComment"
- [GrammarRule("MultiLineComment")]
- private void mMultiLineComment()
- {
-
- try
- {
- int _type = MultiLineComment;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:291:2: ( '/*' ( options {greedy=false; } : . )* '*/' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:291:4: '/*' ( options {greedy=false; } : . )* '*/'
- {
- DebugLocation(291, 4);
- Match("/*");
-
- DebugLocation(291, 9);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:291:9: ( options {greedy=false; } : . )*
- try { DebugEnterSubRule(4);
- while (true)
- {
- int alt4=2;
- try { DebugEnterDecision(4, decisionCanBacktrack[4]);
- int LA4_0 = input.LA(1);
-
- if ((LA4_0=='*'))
- {
- int LA4_1 = input.LA(2);
-
- if ((LA4_1=='/'))
- {
- alt4=2;
- }
- else if (((LA4_1>='\u0000' && LA4_1<='.')||(LA4_1>='0' && LA4_1<='\uFFFF')))
- {
- alt4=1;
- }
-
-
- }
- else if (((LA4_0>='\u0000' && LA4_0<=')')||(LA4_0>='+' && LA4_0<='\uFFFF')))
- {
- alt4=1;
- }
-
-
- } finally { DebugExitDecision(4); }
- switch ( alt4 )
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:291:41: .
- {
- DebugLocation(291, 41);
- MatchAny();
-
- }
- break;
-
- default:
- goto loop4;
- }
- }
-
- loop4:
- ;
-
- } finally { DebugExitSubRule(4); }
-
- DebugLocation(291, 46);
- Match("*/");
-
- DebugLocation(291, 51);
- _channel = Hidden;
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "MultiLineComment"
-
- protected virtual void Enter_SingleLineComment() {}
- protected virtual void Leave_SingleLineComment() {}
-
- // $ANTLR start "SingleLineComment"
- [GrammarRule("SingleLineComment")]
- private void mSingleLineComment()
- {
-
- try
- {
- int _type = SingleLineComment;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:295:2: ( '//' (~ ( LineTerminator ) )* )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:295:4: '//' (~ ( LineTerminator ) )*
- {
- DebugLocation(295, 4);
- Match("//");
-
- DebugLocation(295, 9);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:295:9: (~ ( LineTerminator ) )*
- try { DebugEnterSubRule(5);
- while (true)
- {
- int alt5=2;
- try { DebugEnterDecision(5, decisionCanBacktrack[5]);
- int LA5_0 = input.LA(1);
-
- if (((LA5_0>='\u0000' && LA5_0<='\t')||(LA5_0>='\u000B' && LA5_0<='\f')||(LA5_0>='\u000E' && LA5_0<='\u2027')||(LA5_0>='\u202A' && LA5_0<='\uFFFF')))
- {
- alt5=1;
- }
-
-
- } finally { DebugExitDecision(5); }
- switch ( alt5 )
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:295:11: ~ ( LineTerminator )
- {
- DebugLocation(295, 11);
- if ((input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\u2027')||(input.LA(1)>='\u202A' && input.LA(1)<='\uFFFF'))
- {
- input.Consume();
-
- }
- else
- {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- DebugRecognitionException(mse);
- Recover(mse);
- throw mse;}
-
-
- }
- break;
-
- default:
- goto loop5;
- }
- }
-
- loop5:
- ;
-
- } finally { DebugExitSubRule(5); }
-
- DebugLocation(295, 34);
- _channel = Hidden;
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "SingleLineComment"
-
- protected virtual void Enter_IdentifierStartASCII() {}
- protected virtual void Leave_IdentifierStartASCII() {}
-
- // $ANTLR start "IdentifierStartASCII"
- [GrammarRule("IdentifierStartASCII")]
- private void mIdentifierStartASCII()
- {
-
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:396:2: ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' | BSLASH 'u' HexDigit HexDigit HexDigit HexDigit )
- int alt6=5;
- try { DebugEnterDecision(6, decisionCanBacktrack[6]);
- switch (input.LA(1))
- {
- case 'a':
- case 'b':
- case 'c':
- case 'd':
- case 'e':
- case 'f':
- case 'g':
- case 'h':
- case 'i':
- case 'j':
- case 'k':
- case 'l':
- case 'm':
- case 'n':
- case 'o':
- case 'p':
- case 'q':
- case 'r':
- case 's':
- case 't':
- case 'u':
- case 'v':
- case 'w':
- case 'x':
- case 'y':
- case 'z':
- {
- alt6=1;
- }
- break;
- case 'A':
- case 'B':
- case 'C':
- case 'D':
- case 'E':
- case 'F':
- case 'G':
- case 'H':
- case 'I':
- case 'J':
- case 'K':
- case 'L':
- case 'M':
- case 'N':
- case 'O':
- case 'P':
- case 'Q':
- case 'R':
- case 'S':
- case 'T':
- case 'U':
- case 'V':
- case 'W':
- case 'X':
- case 'Y':
- case 'Z':
- {
- alt6=2;
- }
- break;
- case '$':
- {
- alt6=3;
- }
- break;
- case '_':
- {
- alt6=4;
- }
- break;
- case '\\':
- {
- alt6=5;
- }
- break;
- default:
- {
- NoViableAltException nvae = new NoViableAltException("", 6, 0, input);
-
- DebugRecognitionException(nvae);
- throw nvae;
- }
- }
-
- } finally { DebugExitDecision(6); }
- switch (alt6)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:396:4: 'a' .. 'z'
- {
- DebugLocation(396, 4);
- MatchRange('a','z');
-
- }
- break;
- case 2:
- DebugEnterAlt(2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:396:15: 'A' .. 'Z'
- {
- DebugLocation(396, 15);
- MatchRange('A','Z');
-
- }
- break;
- case 3:
- DebugEnterAlt(3);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:397:4: '$'
- {
- DebugLocation(397, 4);
- Match('$');
-
- }
- break;
- case 4:
- DebugEnterAlt(4);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:398:4: '_'
- {
- DebugLocation(398, 4);
- Match('_');
-
- }
- break;
- case 5:
- DebugEnterAlt(5);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:399:4: BSLASH 'u' HexDigit HexDigit HexDigit HexDigit
- {
- DebugLocation(399, 4);
- mBSLASH();
- DebugLocation(399, 11);
- Match('u');
- DebugLocation(399, 15);
- mHexDigit();
- DebugLocation(399, 24);
- mHexDigit();
- DebugLocation(399, 33);
- mHexDigit();
- DebugLocation(399, 42);
- mHexDigit();
-
- }
- break;
-
- }
- }
- finally
- {
- }
- }
- // $ANTLR end "IdentifierStartASCII"
-
- protected virtual void Enter_IdentifierPart() {}
- protected virtual void Leave_IdentifierPart() {}
-
- // $ANTLR start "IdentifierPart"
- [GrammarRule("IdentifierPart")]
- private void mIdentifierPart()
- {
-
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:407:2: ( DecimalDigit | IdentifierStartASCII | {...}?)
- int alt7=3;
- try { DebugEnterDecision(7, decisionCanBacktrack[7]);
- switch (input.LA(1))
- {
- case '0':
- case '1':
- case '2':
- case '3':
- case '4':
- case '5':
- case '6':
- case '7':
- case '8':
- case '9':
- {
- alt7=1;
- }
- break;
- case '$':
- case 'A':
- case 'B':
- case 'C':
- case 'D':
- case 'E':
- case 'F':
- case 'G':
- case 'H':
- case 'I':
- case 'J':
- case 'K':
- case 'L':
- case 'M':
- case 'N':
- case 'O':
- case 'P':
- case 'Q':
- case 'R':
- case 'S':
- case 'T':
- case 'U':
- case 'V':
- case 'W':
- case 'X':
- case 'Y':
- case 'Z':
- case '\\':
- case '_':
- case 'a':
- case 'b':
- case 'c':
- case 'd':
- case 'e':
- case 'f':
- case 'g':
- case 'h':
- case 'i':
- case 'j':
- case 'k':
- case 'l':
- case 'm':
- case 'n':
- case 'o':
- case 'p':
- case 'q':
- case 'r':
- case 's':
- case 't':
- case 'u':
- case 'v':
- case 'w':
- case 'x':
- case 'y':
- case 'z':
- {
- alt7=2;
- }
- break;
- default:
- alt7=3;
- break;
- }
-
- } finally { DebugExitDecision(7); }
- switch (alt7)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:407:4: DecimalDigit
- {
- DebugLocation(407, 4);
- mDecimalDigit();
-
- }
- break;
- case 2:
- DebugEnterAlt(2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:408:4: IdentifierStartASCII
- {
- DebugLocation(408, 4);
- mIdentifierStartASCII();
-
- }
- break;
- case 3:
- DebugEnterAlt(3);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:409:4: {...}?
- {
- DebugLocation(409, 4);
- if (!(( IsIdentifierPartUnicode(input.LA(1)) )))
- {
- throw new FailedPredicateException(input, "IdentifierPart", " IsIdentifierPartUnicode(input.LA(1)) ");
- }
- DebugLocation(409, 46);
- MatchAny();
-
- }
- break;
-
- }
- }
- finally
- {
- }
- }
- // $ANTLR end "IdentifierPart"
-
- protected virtual void Enter_IdentifierNameASCIIStart() {}
- protected virtual void Leave_IdentifierNameASCIIStart() {}
-
- // $ANTLR start "IdentifierNameASCIIStart"
- [GrammarRule("IdentifierNameASCIIStart")]
- private void mIdentifierNameASCIIStart()
- {
-
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:413:2: ( IdentifierStartASCII ( IdentifierPart )* )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:413:4: IdentifierStartASCII ( IdentifierPart )*
- {
- DebugLocation(413, 4);
- mIdentifierStartASCII();
- DebugLocation(413, 25);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:413:25: ( IdentifierPart )*
- try { DebugEnterSubRule(8);
- while (true)
- {
- int alt8=2;
- try { DebugEnterDecision(8, decisionCanBacktrack[8]);
- int LA8_0 = input.LA(1);
-
- if ((LA8_0=='$'||(LA8_0>='0' && LA8_0<='9')||(LA8_0>='A' && LA8_0<='Z')||LA8_0=='\\'||LA8_0=='_'||(LA8_0>='a' && LA8_0<='z')))
- {
- alt8=1;
- }
- else if ((( IsIdentifierPartUnicode(input.LA(1)) )))
- {
- alt8=1;
- }
-
-
- } finally { DebugExitDecision(8); }
- switch ( alt8 )
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:413:25: IdentifierPart
- {
- DebugLocation(413, 25);
- mIdentifierPart();
-
- }
- break;
-
- default:
- goto loop8;
- }
- }
-
- loop8:
- ;
-
- } finally { DebugExitSubRule(8); }
-
-
- }
-
- }
- finally
- {
- }
- }
- // $ANTLR end "IdentifierNameASCIIStart"
-
- protected virtual void Enter_Identifier() {}
- protected virtual void Leave_Identifier() {}
-
- // $ANTLR start "Identifier"
- [GrammarRule("Identifier")]
- private void mIdentifier()
- {
-
- try
- {
- int _type = Identifier;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:425:2: ( IdentifierNameASCIIStart | )
- int alt9=2;
- try { DebugEnterDecision(9, decisionCanBacktrack[9]);
- int LA9_0 = input.LA(1);
-
- if ((LA9_0=='$'||(LA9_0>='A' && LA9_0<='Z')||LA9_0=='\\'||LA9_0=='_'||(LA9_0>='a' && LA9_0<='z')))
- {
- alt9=1;
- }
- else
- {
- alt9=2;}
- } finally { DebugExitDecision(9); }
- switch (alt9)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:425:4: IdentifierNameASCIIStart
- {
- DebugLocation(425, 4);
- mIdentifierNameASCIIStart();
-
- }
- break;
- case 2:
- DebugEnterAlt(2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:426:4:
- {
- DebugLocation(426, 4);
- ConsumeIdentifierUnicodeStart();
-
- }
- break;
-
- }
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "Identifier"
-
- protected virtual void Enter_DecimalDigit() {}
- protected virtual void Leave_DecimalDigit() {}
-
- // $ANTLR start "DecimalDigit"
- [GrammarRule("DecimalDigit")]
- private void mDecimalDigit()
- {
-
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:509:2: ( '0' .. '9' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:509:4: '0' .. '9'
- {
- DebugLocation(509, 4);
- MatchRange('0','9');
-
- }
-
- }
- finally
- {
- }
- }
- // $ANTLR end "DecimalDigit"
-
- protected virtual void Enter_HexDigit() {}
- protected virtual void Leave_HexDigit() {}
-
- // $ANTLR start "HexDigit"
- [GrammarRule("HexDigit")]
- private void mHexDigit()
- {
-
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:513:2: ( DecimalDigit | 'a' .. 'f' | 'A' .. 'F' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:
- {
- DebugLocation(513, 2);
- if ((input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='F')||(input.LA(1)>='a' && input.LA(1)<='f'))
- {
- input.Consume();
-
- }
- else
- {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- DebugRecognitionException(mse);
- Recover(mse);
- throw mse;}
-
-
- }
-
- }
- finally
- {
- }
- }
- // $ANTLR end "HexDigit"
-
- protected virtual void Enter_OctalDigit() {}
- protected virtual void Leave_OctalDigit() {}
-
- // $ANTLR start "OctalDigit"
- [GrammarRule("OctalDigit")]
- private void mOctalDigit()
- {
-
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:517:2: ( '0' .. '7' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:517:4: '0' .. '7'
- {
- DebugLocation(517, 4);
- MatchRange('0','7');
-
- }
-
- }
- finally
- {
- }
- }
- // $ANTLR end "OctalDigit"
-
- protected virtual void Enter_ExponentPart() {}
- protected virtual void Leave_ExponentPart() {}
-
- // $ANTLR start "ExponentPart"
- [GrammarRule("ExponentPart")]
- private void mExponentPart()
- {
-
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:521:2: ( ( 'e' | 'E' ) ( '+' | '-' )? ( DecimalDigit )+ )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:521:4: ( 'e' | 'E' ) ( '+' | '-' )? ( DecimalDigit )+
- {
- DebugLocation(521, 4);
- if (input.LA(1)=='E'||input.LA(1)=='e')
- {
- input.Consume();
-
- }
- else
- {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- DebugRecognitionException(mse);
- Recover(mse);
- throw mse;}
-
- DebugLocation(521, 18);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:521:18: ( '+' | '-' )?
- int alt10=2;
- try { DebugEnterSubRule(10);
- try { DebugEnterDecision(10, decisionCanBacktrack[10]);
- int LA10_0 = input.LA(1);
-
- if ((LA10_0=='+'||LA10_0=='-'))
- {
- alt10=1;
- }
- } finally { DebugExitDecision(10); }
- switch (alt10)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:
- {
- DebugLocation(521, 18);
- if (input.LA(1)=='+'||input.LA(1)=='-')
- {
- input.Consume();
-
- }
- else
- {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- DebugRecognitionException(mse);
- Recover(mse);
- throw mse;}
-
-
- }
- break;
-
- }
- } finally { DebugExitSubRule(10); }
-
- DebugLocation(521, 33);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:521:33: ( DecimalDigit )+
- int cnt11=0;
- try { DebugEnterSubRule(11);
- while (true)
- {
- int alt11=2;
- try { DebugEnterDecision(11, decisionCanBacktrack[11]);
- int LA11_0 = input.LA(1);
-
- if (((LA11_0>='0' && LA11_0<='9')))
- {
- alt11=1;
- }
-
-
- } finally { DebugExitDecision(11); }
- switch (alt11)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:521:33: DecimalDigit
- {
- DebugLocation(521, 33);
- mDecimalDigit();
-
- }
- break;
-
- default:
- if (cnt11 >= 1)
- goto loop11;
-
- EarlyExitException eee11 = new EarlyExitException( 11, input );
- DebugRecognitionException(eee11);
- throw eee11;
- }
- cnt11++;
- }
- loop11:
- ;
-
- } finally { DebugExitSubRule(11); }
-
-
- }
-
- }
- finally
- {
- }
- }
- // $ANTLR end "ExponentPart"
-
- protected virtual void Enter_DecimalIntegerLiteral() {}
- protected virtual void Leave_DecimalIntegerLiteral() {}
-
- // $ANTLR start "DecimalIntegerLiteral"
- [GrammarRule("DecimalIntegerLiteral")]
- private void mDecimalIntegerLiteral()
- {
-
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:525:2: ( '0' | '1' .. '9' ( DecimalDigit )* )
- int alt13=2;
- try { DebugEnterDecision(13, decisionCanBacktrack[13]);
- int LA13_0 = input.LA(1);
-
- if ((LA13_0=='0'))
- {
- alt13=1;
- }
- else if (((LA13_0>='1' && LA13_0<='9')))
- {
- alt13=2;
- }
- else
- {
- NoViableAltException nvae = new NoViableAltException("", 13, 0, input);
-
- DebugRecognitionException(nvae);
- throw nvae;
- }
- } finally { DebugExitDecision(13); }
- switch (alt13)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:525:4: '0'
- {
- DebugLocation(525, 4);
- Match('0');
-
- }
- break;
- case 2:
- DebugEnterAlt(2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:526:4: '1' .. '9' ( DecimalDigit )*
- {
- DebugLocation(526, 4);
- MatchRange('1','9');
- DebugLocation(526, 13);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:526:13: ( DecimalDigit )*
- try { DebugEnterSubRule(12);
- while (true)
- {
- int alt12=2;
- try { DebugEnterDecision(12, decisionCanBacktrack[12]);
- int LA12_0 = input.LA(1);
-
- if (((LA12_0>='0' && LA12_0<='9')))
- {
- alt12=1;
- }
-
-
- } finally { DebugExitDecision(12); }
- switch ( alt12 )
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:526:13: DecimalDigit
- {
- DebugLocation(526, 13);
- mDecimalDigit();
-
- }
- break;
-
- default:
- goto loop12;
- }
- }
-
- loop12:
- ;
-
- } finally { DebugExitSubRule(12); }
-
-
- }
- break;
-
- }
- }
- finally
- {
- }
- }
- // $ANTLR end "DecimalIntegerLiteral"
-
- protected virtual void Enter_DecimalLiteral() {}
- protected virtual void Leave_DecimalLiteral() {}
-
- // $ANTLR start "DecimalLiteral"
- [GrammarRule("DecimalLiteral")]
- private void mDecimalLiteral()
- {
-
- try
- {
- int _type = DecimalLiteral;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:530:2: ( DecimalIntegerLiteral '.' ( DecimalDigit )* ( ExponentPart )? | '.' ( DecimalDigit )+ ( ExponentPart )? | DecimalIntegerLiteral ( ExponentPart )? )
- int alt19=3;
- try { DebugEnterDecision(19, decisionCanBacktrack[19]);
- try
- {
- alt19 = dfa19.Predict(input);
- }
- catch (NoViableAltException nvae)
- {
- DebugRecognitionException(nvae);
- throw;
- }
- } finally { DebugExitDecision(19); }
- switch (alt19)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:530:4: DecimalIntegerLiteral '.' ( DecimalDigit )* ( ExponentPart )?
- {
- DebugLocation(530, 4);
- mDecimalIntegerLiteral();
- DebugLocation(530, 26);
- Match('.');
- DebugLocation(530, 30);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:530:30: ( DecimalDigit )*
- try { DebugEnterSubRule(14);
- while (true)
- {
- int alt14=2;
- try { DebugEnterDecision(14, decisionCanBacktrack[14]);
- int LA14_0 = input.LA(1);
-
- if (((LA14_0>='0' && LA14_0<='9')))
- {
- alt14=1;
- }
-
-
- } finally { DebugExitDecision(14); }
- switch ( alt14 )
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:530:30: DecimalDigit
- {
- DebugLocation(530, 30);
- mDecimalDigit();
-
- }
- break;
-
- default:
- goto loop14;
- }
- }
-
- loop14:
- ;
-
- } finally { DebugExitSubRule(14); }
-
- DebugLocation(530, 44);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:530:44: ( ExponentPart )?
- int alt15=2;
- try { DebugEnterSubRule(15);
- try { DebugEnterDecision(15, decisionCanBacktrack[15]);
- int LA15_0 = input.LA(1);
-
- if ((LA15_0=='E'||LA15_0=='e'))
- {
- alt15=1;
- }
- } finally { DebugExitDecision(15); }
- switch (alt15)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:530:44: ExponentPart
- {
- DebugLocation(530, 44);
- mExponentPart();
-
- }
- break;
-
- }
- } finally { DebugExitSubRule(15); }
-
-
- }
- break;
- case 2:
- DebugEnterAlt(2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:531:4: '.' ( DecimalDigit )+ ( ExponentPart )?
- {
- DebugLocation(531, 4);
- Match('.');
- DebugLocation(531, 8);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:531:8: ( DecimalDigit )+
- int cnt16=0;
- try { DebugEnterSubRule(16);
- while (true)
- {
- int alt16=2;
- try { DebugEnterDecision(16, decisionCanBacktrack[16]);
- int LA16_0 = input.LA(1);
-
- if (((LA16_0>='0' && LA16_0<='9')))
- {
- alt16=1;
- }
-
-
- } finally { DebugExitDecision(16); }
- switch (alt16)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:531:8: DecimalDigit
- {
- DebugLocation(531, 8);
- mDecimalDigit();
-
- }
- break;
-
- default:
- if (cnt16 >= 1)
- goto loop16;
-
- EarlyExitException eee16 = new EarlyExitException( 16, input );
- DebugRecognitionException(eee16);
- throw eee16;
- }
- cnt16++;
- }
- loop16:
- ;
-
- } finally { DebugExitSubRule(16); }
-
- DebugLocation(531, 22);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:531:22: ( ExponentPart )?
- int alt17=2;
- try { DebugEnterSubRule(17);
- try { DebugEnterDecision(17, decisionCanBacktrack[17]);
- int LA17_0 = input.LA(1);
-
- if ((LA17_0=='E'||LA17_0=='e'))
- {
- alt17=1;
- }
- } finally { DebugExitDecision(17); }
- switch (alt17)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:531:22: ExponentPart
- {
- DebugLocation(531, 22);
- mExponentPart();
-
- }
- break;
-
- }
- } finally { DebugExitSubRule(17); }
-
-
- }
- break;
- case 3:
- DebugEnterAlt(3);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:532:4: DecimalIntegerLiteral ( ExponentPart )?
- {
- DebugLocation(532, 4);
- mDecimalIntegerLiteral();
- DebugLocation(532, 26);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:532:26: ( ExponentPart )?
- int alt18=2;
- try { DebugEnterSubRule(18);
- try { DebugEnterDecision(18, decisionCanBacktrack[18]);
- int LA18_0 = input.LA(1);
-
- if ((LA18_0=='E'||LA18_0=='e'))
- {
- alt18=1;
- }
- } finally { DebugExitDecision(18); }
- switch (alt18)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:532:26: ExponentPart
- {
- DebugLocation(532, 26);
- mExponentPart();
-
- }
- break;
-
- }
- } finally { DebugExitSubRule(18); }
-
-
- }
- break;
-
- }
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "DecimalLiteral"
-
- protected virtual void Enter_OctalIntegerLiteral() {}
- protected virtual void Leave_OctalIntegerLiteral() {}
-
- // $ANTLR start "OctalIntegerLiteral"
- [GrammarRule("OctalIntegerLiteral")]
- private void mOctalIntegerLiteral()
- {
-
- try
- {
- int _type = OctalIntegerLiteral;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:536:2: ( '0' ( OctalDigit )+ )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:536:4: '0' ( OctalDigit )+
- {
- DebugLocation(536, 4);
- Match('0');
- DebugLocation(536, 8);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:536:8: ( OctalDigit )+
- int cnt20=0;
- try { DebugEnterSubRule(20);
- while (true)
- {
- int alt20=2;
- try { DebugEnterDecision(20, decisionCanBacktrack[20]);
- int LA20_0 = input.LA(1);
-
- if (((LA20_0>='0' && LA20_0<='7')))
- {
- alt20=1;
- }
-
-
- } finally { DebugExitDecision(20); }
- switch (alt20)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:536:8: OctalDigit
- {
- DebugLocation(536, 8);
- mOctalDigit();
-
- }
- break;
-
- default:
- if (cnt20 >= 1)
- goto loop20;
-
- EarlyExitException eee20 = new EarlyExitException( 20, input );
- DebugRecognitionException(eee20);
- throw eee20;
- }
- cnt20++;
- }
- loop20:
- ;
-
- } finally { DebugExitSubRule(20); }
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "OctalIntegerLiteral"
-
- protected virtual void Enter_HexIntegerLiteral() {}
- protected virtual void Leave_HexIntegerLiteral() {}
-
- // $ANTLR start "HexIntegerLiteral"
- [GrammarRule("HexIntegerLiteral")]
- private void mHexIntegerLiteral()
- {
-
- try
- {
- int _type = HexIntegerLiteral;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:540:2: ( ( '0x' | '0X' ) ( HexDigit )+ )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:540:4: ( '0x' | '0X' ) ( HexDigit )+
- {
- DebugLocation(540, 4);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:540:4: ( '0x' | '0X' )
- int alt21=2;
- try { DebugEnterSubRule(21);
- try { DebugEnterDecision(21, decisionCanBacktrack[21]);
- int LA21_0 = input.LA(1);
-
- if ((LA21_0=='0'))
- {
- int LA21_1 = input.LA(2);
-
- if ((LA21_1=='x'))
- {
- alt21=1;
- }
- else if ((LA21_1=='X'))
- {
- alt21=2;
- }
- else
- {
- NoViableAltException nvae = new NoViableAltException("", 21, 1, input);
-
- DebugRecognitionException(nvae);
- throw nvae;
- }
- }
- else
- {
- NoViableAltException nvae = new NoViableAltException("", 21, 0, input);
-
- DebugRecognitionException(nvae);
- throw nvae;
- }
- } finally { DebugExitDecision(21); }
- switch (alt21)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:540:6: '0x'
- {
- DebugLocation(540, 6);
- Match("0x");
-
-
- }
- break;
- case 2:
- DebugEnterAlt(2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:540:13: '0X'
- {
- DebugLocation(540, 13);
- Match("0X");
-
-
- }
- break;
-
- }
- } finally { DebugExitSubRule(21); }
-
- DebugLocation(540, 20);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:540:20: ( HexDigit )+
- int cnt22=0;
- try { DebugEnterSubRule(22);
- while (true)
- {
- int alt22=2;
- try { DebugEnterDecision(22, decisionCanBacktrack[22]);
- int LA22_0 = input.LA(1);
-
- if (((LA22_0>='0' && LA22_0<='9')||(LA22_0>='A' && LA22_0<='F')||(LA22_0>='a' && LA22_0<='f')))
- {
- alt22=1;
- }
-
-
- } finally { DebugExitDecision(22); }
- switch (alt22)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:540:20: HexDigit
- {
- DebugLocation(540, 20);
- mHexDigit();
-
- }
- break;
-
- default:
- if (cnt22 >= 1)
- goto loop22;
-
- EarlyExitException eee22 = new EarlyExitException( 22, input );
- DebugRecognitionException(eee22);
- throw eee22;
- }
- cnt22++;
- }
- loop22:
- ;
-
- } finally { DebugExitSubRule(22); }
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "HexIntegerLiteral"
-
- protected virtual void Enter_CharacterEscapeSequence() {}
- protected virtual void Leave_CharacterEscapeSequence() {}
-
- // $ANTLR start "CharacterEscapeSequence"
- [GrammarRule("CharacterEscapeSequence")]
- private void mCharacterEscapeSequence()
- {
-
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:559:2: (~ ( DecimalDigit | 'x' | 'u' | LineTerminator ) )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:559:4: ~ ( DecimalDigit | 'x' | 'u' | LineTerminator )
- {
- DebugLocation(559, 4);
- if ((input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='/')||(input.LA(1)>=':' && input.LA(1)<='t')||(input.LA(1)>='v' && input.LA(1)<='w')||(input.LA(1)>='y' && input.LA(1)<='\u2027')||(input.LA(1)>='\u202A' && input.LA(1)<='\uFFFF'))
- {
- input.Consume();
-
- }
- else
- {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- DebugRecognitionException(mse);
- Recover(mse);
- throw mse;}
-
-
- }
-
- }
- finally
- {
- }
- }
- // $ANTLR end "CharacterEscapeSequence"
-
- protected virtual void Enter_ZeroToThree() {}
- protected virtual void Leave_ZeroToThree() {}
-
- // $ANTLR start "ZeroToThree"
- [GrammarRule("ZeroToThree")]
- private void mZeroToThree()
- {
-
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:563:2: ( '0' .. '3' )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:563:4: '0' .. '3'
- {
- DebugLocation(563, 4);
- MatchRange('0','3');
-
- }
-
- }
- finally
- {
- }
- }
- // $ANTLR end "ZeroToThree"
-
- protected virtual void Enter_OctalEscapeSequence() {}
- protected virtual void Leave_OctalEscapeSequence() {}
-
- // $ANTLR start "OctalEscapeSequence"
- [GrammarRule("OctalEscapeSequence")]
- private void mOctalEscapeSequence()
- {
-
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:567:2: ( OctalDigit | ZeroToThree OctalDigit | '4' .. '7' OctalDigit | ZeroToThree OctalDigit OctalDigit )
- int alt23=4;
- try { DebugEnterDecision(23, decisionCanBacktrack[23]);
- int LA23_0 = input.LA(1);
-
- if (((LA23_0>='0' && LA23_0<='3')))
- {
- int LA23_1 = input.LA(2);
-
- if (((LA23_1>='0' && LA23_1<='7')))
- {
- int LA23_4 = input.LA(3);
-
- if (((LA23_4>='0' && LA23_4<='7')))
- {
- alt23=4;
- }
- else
- {
- alt23=2;}
- }
- else
- {
- alt23=1;}
- }
- else if (((LA23_0>='4' && LA23_0<='7')))
- {
- int LA23_2 = input.LA(2);
-
- if (((LA23_2>='0' && LA23_2<='7')))
- {
- alt23=3;
- }
- else
- {
- alt23=1;}
- }
- else
- {
- NoViableAltException nvae = new NoViableAltException("", 23, 0, input);
-
- DebugRecognitionException(nvae);
- throw nvae;
- }
- } finally { DebugExitDecision(23); }
- switch (alt23)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:567:4: OctalDigit
- {
- DebugLocation(567, 4);
- mOctalDigit();
-
- }
- break;
- case 2:
- DebugEnterAlt(2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:568:4: ZeroToThree OctalDigit
- {
- DebugLocation(568, 4);
- mZeroToThree();
- DebugLocation(568, 16);
- mOctalDigit();
-
- }
- break;
- case 3:
- DebugEnterAlt(3);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:569:4: '4' .. '7' OctalDigit
- {
- DebugLocation(569, 4);
- MatchRange('4','7');
- DebugLocation(569, 13);
- mOctalDigit();
-
- }
- break;
- case 4:
- DebugEnterAlt(4);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:570:4: ZeroToThree OctalDigit OctalDigit
- {
- DebugLocation(570, 4);
- mZeroToThree();
- DebugLocation(570, 16);
- mOctalDigit();
- DebugLocation(570, 27);
- mOctalDigit();
-
- }
- break;
-
- }
- }
- finally
- {
- }
- }
- // $ANTLR end "OctalEscapeSequence"
-
- protected virtual void Enter_HexEscapeSequence() {}
- protected virtual void Leave_HexEscapeSequence() {}
-
- // $ANTLR start "HexEscapeSequence"
- [GrammarRule("HexEscapeSequence")]
- private void mHexEscapeSequence()
- {
-
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:574:2: ( 'x' HexDigit HexDigit )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:574:4: 'x' HexDigit HexDigit
- {
- DebugLocation(574, 4);
- Match('x');
- DebugLocation(574, 8);
- mHexDigit();
- DebugLocation(574, 17);
- mHexDigit();
-
- }
-
- }
- finally
- {
- }
- }
- // $ANTLR end "HexEscapeSequence"
-
- protected virtual void Enter_UnicodeEscapeSequence() {}
- protected virtual void Leave_UnicodeEscapeSequence() {}
-
- // $ANTLR start "UnicodeEscapeSequence"
- [GrammarRule("UnicodeEscapeSequence")]
- private void mUnicodeEscapeSequence()
- {
-
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:578:2: ( 'u' HexDigit HexDigit HexDigit HexDigit )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:578:4: 'u' HexDigit HexDigit HexDigit HexDigit
- {
- DebugLocation(578, 4);
- Match('u');
- DebugLocation(578, 8);
- mHexDigit();
- DebugLocation(578, 17);
- mHexDigit();
- DebugLocation(578, 26);
- mHexDigit();
- DebugLocation(578, 35);
- mHexDigit();
-
- }
-
- }
- finally
- {
- }
- }
- // $ANTLR end "UnicodeEscapeSequence"
-
- protected virtual void Enter_EscapeSequence() {}
- protected virtual void Leave_EscapeSequence() {}
-
- // $ANTLR start "EscapeSequence"
- [GrammarRule("EscapeSequence")]
- private void mEscapeSequence()
- {
-
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:582:2: ( BSLASH ( CharacterEscapeSequence | OctalEscapeSequence | HexEscapeSequence | UnicodeEscapeSequence ) )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:583:2: BSLASH ( CharacterEscapeSequence | OctalEscapeSequence | HexEscapeSequence | UnicodeEscapeSequence )
- {
- DebugLocation(583, 2);
- mBSLASH();
- DebugLocation(584, 2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:584:2: ( CharacterEscapeSequence | OctalEscapeSequence | HexEscapeSequence | UnicodeEscapeSequence )
- int alt24=4;
- try { DebugEnterSubRule(24);
- try { DebugEnterDecision(24, decisionCanBacktrack[24]);
- int LA24_0 = input.LA(1);
-
- if (((LA24_0>='\u0000' && LA24_0<='\t')||(LA24_0>='\u000B' && LA24_0<='\f')||(LA24_0>='\u000E' && LA24_0<='/')||(LA24_0>=':' && LA24_0<='t')||(LA24_0>='v' && LA24_0<='w')||(LA24_0>='y' && LA24_0<='\u2027')||(LA24_0>='\u202A' && LA24_0<='\uFFFF')))
- {
- alt24=1;
- }
- else if (((LA24_0>='0' && LA24_0<='7')))
- {
- alt24=2;
- }
- else if ((LA24_0=='x'))
- {
- alt24=3;
- }
- else if ((LA24_0=='u'))
- {
- alt24=4;
- }
- else
- {
- NoViableAltException nvae = new NoViableAltException("", 24, 0, input);
-
- DebugRecognitionException(nvae);
- throw nvae;
- }
- } finally { DebugExitDecision(24); }
- switch (alt24)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:585:3: CharacterEscapeSequence
- {
- DebugLocation(585, 3);
- mCharacterEscapeSequence();
-
- }
- break;
- case 2:
- DebugEnterAlt(2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:586:5: OctalEscapeSequence
- {
- DebugLocation(586, 5);
- mOctalEscapeSequence();
-
- }
- break;
- case 3:
- DebugEnterAlt(3);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:587:5: HexEscapeSequence
- {
- DebugLocation(587, 5);
- mHexEscapeSequence();
-
- }
- break;
- case 4:
- DebugEnterAlt(4);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:588:5: UnicodeEscapeSequence
- {
- DebugLocation(588, 5);
- mUnicodeEscapeSequence();
-
- }
- break;
-
- }
- } finally { DebugExitSubRule(24); }
-
-
- }
-
- }
- finally
- {
- }
- }
- // $ANTLR end "EscapeSequence"
-
- protected virtual void Enter_StringLiteral() {}
- protected virtual void Leave_StringLiteral() {}
-
- // $ANTLR start "StringLiteral"
- [GrammarRule("StringLiteral")]
- private void mStringLiteral()
- {
-
- try
- {
- int _type = StringLiteral;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:593:2: ( SQUOTE (~ ( SQUOTE | BSLASH | LineTerminator ) | EscapeSequence )* SQUOTE | DQUOTE (~ ( DQUOTE | BSLASH | LineTerminator ) | EscapeSequence )* DQUOTE )
- int alt27=2;
- try { DebugEnterDecision(27, decisionCanBacktrack[27]);
- int LA27_0 = input.LA(1);
-
- if ((LA27_0=='\''))
- {
- alt27=1;
- }
- else if ((LA27_0=='\"'))
- {
- alt27=2;
- }
- else
- {
- NoViableAltException nvae = new NoViableAltException("", 27, 0, input);
-
- DebugRecognitionException(nvae);
- throw nvae;
- }
- } finally { DebugExitDecision(27); }
- switch (alt27)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:593:4: SQUOTE (~ ( SQUOTE | BSLASH | LineTerminator ) | EscapeSequence )* SQUOTE
- {
- DebugLocation(593, 4);
- mSQUOTE();
- DebugLocation(593, 11);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:593:11: (~ ( SQUOTE | BSLASH | LineTerminator ) | EscapeSequence )*
- try { DebugEnterSubRule(25);
- while (true)
- {
- int alt25=3;
- try { DebugEnterDecision(25, decisionCanBacktrack[25]);
- int LA25_0 = input.LA(1);
-
- if (((LA25_0>='\u0000' && LA25_0<='\t')||(LA25_0>='\u000B' && LA25_0<='\f')||(LA25_0>='\u000E' && LA25_0<='&')||(LA25_0>='(' && LA25_0<='[')||(LA25_0>=']' && LA25_0<='\u2027')||(LA25_0>='\u202A' && LA25_0<='\uFFFF')))
- {
- alt25=1;
- }
- else if ((LA25_0=='\\'))
- {
- alt25=2;
- }
-
-
- } finally { DebugExitDecision(25); }
- switch ( alt25 )
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:593:13: ~ ( SQUOTE | BSLASH | LineTerminator )
- {
- DebugLocation(593, 13);
- if ((input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\u2027')||(input.LA(1)>='\u202A' && input.LA(1)<='\uFFFF'))
- {
- input.Consume();
-
- }
- else
- {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- DebugRecognitionException(mse);
- Recover(mse);
- throw mse;}
-
-
- }
- break;
- case 2:
- DebugEnterAlt(2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:593:53: EscapeSequence
- {
- DebugLocation(593, 53);
- mEscapeSequence();
-
- }
- break;
-
- default:
- goto loop25;
- }
- }
-
- loop25:
- ;
-
- } finally { DebugExitSubRule(25); }
-
- DebugLocation(593, 71);
- mSQUOTE();
-
- }
- break;
- case 2:
- DebugEnterAlt(2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:594:4: DQUOTE (~ ( DQUOTE | BSLASH | LineTerminator ) | EscapeSequence )* DQUOTE
- {
- DebugLocation(594, 4);
- mDQUOTE();
- DebugLocation(594, 11);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:594:11: (~ ( DQUOTE | BSLASH | LineTerminator ) | EscapeSequence )*
- try { DebugEnterSubRule(26);
- while (true)
- {
- int alt26=3;
- try { DebugEnterDecision(26, decisionCanBacktrack[26]);
- int LA26_0 = input.LA(1);
-
- if (((LA26_0>='\u0000' && LA26_0<='\t')||(LA26_0>='\u000B' && LA26_0<='\f')||(LA26_0>='\u000E' && LA26_0<='!')||(LA26_0>='#' && LA26_0<='[')||(LA26_0>=']' && LA26_0<='\u2027')||(LA26_0>='\u202A' && LA26_0<='\uFFFF')))
- {
- alt26=1;
- }
- else if ((LA26_0=='\\'))
- {
- alt26=2;
- }
-
-
- } finally { DebugExitDecision(26); }
- switch ( alt26 )
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:594:13: ~ ( DQUOTE | BSLASH | LineTerminator )
- {
- DebugLocation(594, 13);
- if ((input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\u2027')||(input.LA(1)>='\u202A' && input.LA(1)<='\uFFFF'))
- {
- input.Consume();
-
- }
- else
- {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- DebugRecognitionException(mse);
- Recover(mse);
- throw mse;}
-
-
- }
- break;
- case 2:
- DebugEnterAlt(2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:594:53: EscapeSequence
- {
- DebugLocation(594, 53);
- mEscapeSequence();
-
- }
- break;
-
- default:
- goto loop26;
- }
- }
-
- loop26:
- ;
-
- } finally { DebugExitSubRule(26); }
-
- DebugLocation(594, 71);
- mDQUOTE();
-
- }
- break;
-
- }
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "StringLiteral"
-
- protected virtual void Enter_BackslashSequence() {}
- protected virtual void Leave_BackslashSequence() {}
-
- // $ANTLR start "BackslashSequence"
- [GrammarRule("BackslashSequence")]
- private void mBackslashSequence()
- {
-
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:602:2: ( BSLASH ~ ( LineTerminator ) )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:602:4: BSLASH ~ ( LineTerminator )
- {
- DebugLocation(602, 4);
- mBSLASH();
- DebugLocation(602, 11);
- if ((input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\u2027')||(input.LA(1)>='\u202A' && input.LA(1)<='\uFFFF'))
- {
- input.Consume();
-
- }
- else
- {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- DebugRecognitionException(mse);
- Recover(mse);
- throw mse;}
-
-
- }
-
- }
- finally
- {
- }
- }
- // $ANTLR end "BackslashSequence"
-
- protected virtual void Enter_RegularExpressionFirstChar() {}
- protected virtual void Leave_RegularExpressionFirstChar() {}
-
- // $ANTLR start "RegularExpressionFirstChar"
- [GrammarRule("RegularExpressionFirstChar")]
- private void mRegularExpressionFirstChar()
- {
-
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:606:2: (~ ( LineTerminator | MUL | BSLASH | DIV ) | BackslashSequence )
- int alt28=2;
- try { DebugEnterDecision(28, decisionCanBacktrack[28]);
- int LA28_0 = input.LA(1);
-
- if (((LA28_0>='\u0000' && LA28_0<='\t')||(LA28_0>='\u000B' && LA28_0<='\f')||(LA28_0>='\u000E' && LA28_0<=')')||(LA28_0>='+' && LA28_0<='.')||(LA28_0>='0' && LA28_0<='[')||(LA28_0>=']' && LA28_0<='\u2027')||(LA28_0>='\u202A' && LA28_0<='\uFFFF')))
- {
- alt28=1;
- }
- else if ((LA28_0=='\\'))
- {
- alt28=2;
- }
- else
- {
- NoViableAltException nvae = new NoViableAltException("", 28, 0, input);
-
- DebugRecognitionException(nvae);
- throw nvae;
- }
- } finally { DebugExitDecision(28); }
- switch (alt28)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:606:4: ~ ( LineTerminator | MUL | BSLASH | DIV )
- {
- DebugLocation(606, 4);
- if ((input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<=')')||(input.LA(1)>='+' && input.LA(1)<='.')||(input.LA(1)>='0' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\u2027')||(input.LA(1)>='\u202A' && input.LA(1)<='\uFFFF'))
- {
- input.Consume();
-
- }
- else
- {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- DebugRecognitionException(mse);
- Recover(mse);
- throw mse;}
-
-
- }
- break;
- case 2:
- DebugEnterAlt(2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:607:4: BackslashSequence
- {
- DebugLocation(607, 4);
- mBackslashSequence();
-
- }
- break;
-
- }
- }
- finally
- {
- }
- }
- // $ANTLR end "RegularExpressionFirstChar"
-
- protected virtual void Enter_RegularExpressionChar() {}
- protected virtual void Leave_RegularExpressionChar() {}
-
- // $ANTLR start "RegularExpressionChar"
- [GrammarRule("RegularExpressionChar")]
- private void mRegularExpressionChar()
- {
-
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:611:2: (~ ( LineTerminator | BSLASH | DIV ) | BackslashSequence )
- int alt29=2;
- try { DebugEnterDecision(29, decisionCanBacktrack[29]);
- int LA29_0 = input.LA(1);
-
- if (((LA29_0>='\u0000' && LA29_0<='\t')||(LA29_0>='\u000B' && LA29_0<='\f')||(LA29_0>='\u000E' && LA29_0<='.')||(LA29_0>='0' && LA29_0<='[')||(LA29_0>=']' && LA29_0<='\u2027')||(LA29_0>='\u202A' && LA29_0<='\uFFFF')))
- {
- alt29=1;
- }
- else if ((LA29_0=='\\'))
- {
- alt29=2;
- }
- else
- {
- NoViableAltException nvae = new NoViableAltException("", 29, 0, input);
-
- DebugRecognitionException(nvae);
- throw nvae;
- }
- } finally { DebugExitDecision(29); }
- switch (alt29)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:611:4: ~ ( LineTerminator | BSLASH | DIV )
- {
- DebugLocation(611, 4);
- if ((input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='.')||(input.LA(1)>='0' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\u2027')||(input.LA(1)>='\u202A' && input.LA(1)<='\uFFFF'))
- {
- input.Consume();
-
- }
- else
- {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- DebugRecognitionException(mse);
- Recover(mse);
- throw mse;}
-
-
- }
- break;
- case 2:
- DebugEnterAlt(2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:612:4: BackslashSequence
- {
- DebugLocation(612, 4);
- mBackslashSequence();
-
- }
- break;
-
- }
- }
- finally
- {
- }
- }
- // $ANTLR end "RegularExpressionChar"
-
- protected virtual void Enter_RegularExpressionLiteral() {}
- protected virtual void Leave_RegularExpressionLiteral() {}
-
- // $ANTLR start "RegularExpressionLiteral"
- [GrammarRule("RegularExpressionLiteral")]
- private void mRegularExpressionLiteral()
- {
-
- try
- {
- int _type = RegularExpressionLiteral;
- int _channel = DefaultTokenChannel;
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:616:2: ({...}? => DIV RegularExpressionFirstChar ( RegularExpressionChar )* DIV ( IdentifierPart )* )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:616:4: {...}? => DIV RegularExpressionFirstChar ( RegularExpressionChar )* DIV ( IdentifierPart )*
- {
- DebugLocation(616, 4);
- if (!(( AreRegularExpressionsEnabled )))
- {
- throw new FailedPredicateException(input, "RegularExpressionLiteral", " AreRegularExpressionsEnabled ");
- }
- DebugLocation(616, 40);
- mDIV();
- DebugLocation(616, 44);
- mRegularExpressionFirstChar();
- DebugLocation(616, 71);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:616:71: ( RegularExpressionChar )*
- try { DebugEnterSubRule(30);
- while (true)
- {
- int alt30=2;
- try { DebugEnterDecision(30, decisionCanBacktrack[30]);
- int LA30_0 = input.LA(1);
-
- if (((LA30_0>='\u0000' && LA30_0<='\t')||(LA30_0>='\u000B' && LA30_0<='\f')||(LA30_0>='\u000E' && LA30_0<='.')||(LA30_0>='0' && LA30_0<='\u2027')||(LA30_0>='\u202A' && LA30_0<='\uFFFF')))
- {
- alt30=1;
- }
-
-
- } finally { DebugExitDecision(30); }
- switch ( alt30 )
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:616:71: RegularExpressionChar
- {
- DebugLocation(616, 71);
- mRegularExpressionChar();
-
- }
- break;
-
- default:
- goto loop30;
- }
- }
-
- loop30:
- ;
-
- } finally { DebugExitSubRule(30); }
-
- DebugLocation(616, 94);
- mDIV();
- DebugLocation(616, 98);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:616:98: ( IdentifierPart )*
- try { DebugEnterSubRule(31);
- while (true)
- {
- int alt31=2;
- try { DebugEnterDecision(31, decisionCanBacktrack[31]);
- int LA31_0 = input.LA(1);
-
- if ((LA31_0=='$'||(LA31_0>='0' && LA31_0<='9')||(LA31_0>='A' && LA31_0<='Z')||LA31_0=='\\'||LA31_0=='_'||(LA31_0>='a' && LA31_0<='z')))
- {
- alt31=1;
- }
- else if ((( IsIdentifierPartUnicode(input.LA(1)) )))
- {
- alt31=1;
- }
-
-
- } finally { DebugExitDecision(31); }
- switch ( alt31 )
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:616:98: IdentifierPart
- {
- DebugLocation(616, 98);
- mIdentifierPart();
-
- }
- break;
-
- default:
- goto loop31;
- }
- }
-
- loop31:
- ;
-
- } finally { DebugExitSubRule(31); }
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally
- {
- }
- }
- // $ANTLR end "RegularExpressionLiteral"
-
- public override void mTokens()
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:8: ( NULL | TRUE | FALSE | BREAK | CASE | CATCH | CONTINUE | DEFAULT | DELETE | DO | ELSE | FINALLY | FOR | FUNCTION | IF | IN | INSTANCEOF | NEW | RETURN | SWITCH | THIS | THROW | TRY | TYPEOF | VAR | VOID | WHILE | WITH | ABSTRACT | BOOLEAN | BYTE | CHAR | CLASS | CONST | DEBUGGER | DOUBLE | ENUM | EXPORT | EXTENDS | FINAL | FLOAT | GOTO | IMPLEMENTS | IMPORT | INT | INTERFACE | LONG | NATIVE | PACKAGE | PRIVATE | PROTECTED | PUBLIC | SHORT | STATIC | SUPER | SYNCHRONIZED | THROWS | TRANSIENT | VOLATILE | LBRACE | RBRACE | LPAREN | RPAREN | LBRACK | RBRACK | DOT | SEMIC | COMMA | LT | GT | LTE | GTE | EQ | NEQ | SAME | NSAME | ADD | SUB | MUL | MOD | INC | DEC | SHL | SHR | SHU | AND | OR | XOR | NOT | INV | LAND | LOR | QUE | COLON | ASSIGN | ADDASS | SUBASS | MULASS | MODASS | SHLASS | SHRASS | SHUASS | ANDASS | ORASS | XORASS | DIV | DIVASS | WhiteSpace | EOL | MultiLineComment | SingleLineComment | Identifier | DecimalLiteral | OctalIntegerLiteral | HexIntegerLiteral | StringLiteral | RegularExpressionLiteral )
- int alt32=117;
- try { DebugEnterDecision(32, decisionCanBacktrack[32]);
- try
- {
- alt32 = dfa32.Predict(input);
- }
- catch (NoViableAltException nvae)
- {
- DebugRecognitionException(nvae);
- throw;
- }
- } finally { DebugExitDecision(32); }
- switch (alt32)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:10: NULL
- {
- DebugLocation(1, 10);
- mNULL();
-
- }
- break;
- case 2:
- DebugEnterAlt(2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:15: TRUE
- {
- DebugLocation(1, 15);
- mTRUE();
-
- }
- break;
- case 3:
- DebugEnterAlt(3);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:20: FALSE
- {
- DebugLocation(1, 20);
- mFALSE();
-
- }
- break;
- case 4:
- DebugEnterAlt(4);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:26: BREAK
- {
- DebugLocation(1, 26);
- mBREAK();
-
- }
- break;
- case 5:
- DebugEnterAlt(5);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:32: CASE
- {
- DebugLocation(1, 32);
- mCASE();
-
- }
- break;
- case 6:
- DebugEnterAlt(6);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:37: CATCH
- {
- DebugLocation(1, 37);
- mCATCH();
-
- }
- break;
- case 7:
- DebugEnterAlt(7);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:43: CONTINUE
- {
- DebugLocation(1, 43);
- mCONTINUE();
-
- }
- break;
- case 8:
- DebugEnterAlt(8);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:52: DEFAULT
- {
- DebugLocation(1, 52);
- mDEFAULT();
-
- }
- break;
- case 9:
- DebugEnterAlt(9);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:60: DELETE
- {
- DebugLocation(1, 60);
- mDELETE();
-
- }
- break;
- case 10:
- DebugEnterAlt(10);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:67: DO
- {
- DebugLocation(1, 67);
- mDO();
-
- }
- break;
- case 11:
- DebugEnterAlt(11);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:70: ELSE
- {
- DebugLocation(1, 70);
- mELSE();
-
- }
- break;
- case 12:
- DebugEnterAlt(12);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:75: FINALLY
- {
- DebugLocation(1, 75);
- mFINALLY();
-
- }
- break;
- case 13:
- DebugEnterAlt(13);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:83: FOR
- {
- DebugLocation(1, 83);
- mFOR();
-
- }
- break;
- case 14:
- DebugEnterAlt(14);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:87: FUNCTION
- {
- DebugLocation(1, 87);
- mFUNCTION();
-
- }
- break;
- case 15:
- DebugEnterAlt(15);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:96: IF
- {
- DebugLocation(1, 96);
- mIF();
-
- }
- break;
- case 16:
- DebugEnterAlt(16);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:99: IN
- {
- DebugLocation(1, 99);
- mIN();
-
- }
- break;
- case 17:
- DebugEnterAlt(17);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:102: INSTANCEOF
- {
- DebugLocation(1, 102);
- mINSTANCEOF();
-
- }
- break;
- case 18:
- DebugEnterAlt(18);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:113: NEW
- {
- DebugLocation(1, 113);
- mNEW();
-
- }
- break;
- case 19:
- DebugEnterAlt(19);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:117: RETURN
- {
- DebugLocation(1, 117);
- mRETURN();
-
- }
- break;
- case 20:
- DebugEnterAlt(20);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:124: SWITCH
- {
- DebugLocation(1, 124);
- mSWITCH();
-
- }
- break;
- case 21:
- DebugEnterAlt(21);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:131: THIS
- {
- DebugLocation(1, 131);
- mTHIS();
-
- }
- break;
- case 22:
- DebugEnterAlt(22);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:136: THROW
- {
- DebugLocation(1, 136);
- mTHROW();
-
- }
- break;
- case 23:
- DebugEnterAlt(23);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:142: TRY
- {
- DebugLocation(1, 142);
- mTRY();
-
- }
- break;
- case 24:
- DebugEnterAlt(24);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:146: TYPEOF
- {
- DebugLocation(1, 146);
- mTYPEOF();
-
- }
- break;
- case 25:
- DebugEnterAlt(25);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:153: VAR
- {
- DebugLocation(1, 153);
- mVAR();
-
- }
- break;
- case 26:
- DebugEnterAlt(26);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:157: VOID
- {
- DebugLocation(1, 157);
- mVOID();
-
- }
- break;
- case 27:
- DebugEnterAlt(27);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:162: WHILE
- {
- DebugLocation(1, 162);
- mWHILE();
-
- }
- break;
- case 28:
- DebugEnterAlt(28);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:168: WITH
- {
- DebugLocation(1, 168);
- mWITH();
-
- }
- break;
- case 29:
- DebugEnterAlt(29);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:173: ABSTRACT
- {
- DebugLocation(1, 173);
- mABSTRACT();
-
- }
- break;
- case 30:
- DebugEnterAlt(30);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:182: BOOLEAN
- {
- DebugLocation(1, 182);
- mBOOLEAN();
-
- }
- break;
- case 31:
- DebugEnterAlt(31);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:190: BYTE
- {
- DebugLocation(1, 190);
- mBYTE();
-
- }
- break;
- case 32:
- DebugEnterAlt(32);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:195: CHAR
- {
- DebugLocation(1, 195);
- mCHAR();
-
- }
- break;
- case 33:
- DebugEnterAlt(33);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:200: CLASS
- {
- DebugLocation(1, 200);
- mCLASS();
-
- }
- break;
- case 34:
- DebugEnterAlt(34);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:206: CONST
- {
- DebugLocation(1, 206);
- mCONST();
-
- }
- break;
- case 35:
- DebugEnterAlt(35);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:212: DEBUGGER
- {
- DebugLocation(1, 212);
- mDEBUGGER();
-
- }
- break;
- case 36:
- DebugEnterAlt(36);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:221: DOUBLE
- {
- DebugLocation(1, 221);
- mDOUBLE();
-
- }
- break;
- case 37:
- DebugEnterAlt(37);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:228: ENUM
- {
- DebugLocation(1, 228);
- mENUM();
-
- }
- break;
- case 38:
- DebugEnterAlt(38);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:233: EXPORT
- {
- DebugLocation(1, 233);
- mEXPORT();
-
- }
- break;
- case 39:
- DebugEnterAlt(39);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:240: EXTENDS
- {
- DebugLocation(1, 240);
- mEXTENDS();
-
- }
- break;
- case 40:
- DebugEnterAlt(40);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:248: FINAL
- {
- DebugLocation(1, 248);
- mFINAL();
-
- }
- break;
- case 41:
- DebugEnterAlt(41);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:254: FLOAT
- {
- DebugLocation(1, 254);
- mFLOAT();
-
- }
- break;
- case 42:
- DebugEnterAlt(42);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:260: GOTO
- {
- DebugLocation(1, 260);
- mGOTO();
-
- }
- break;
- case 43:
- DebugEnterAlt(43);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:265: IMPLEMENTS
- {
- DebugLocation(1, 265);
- mIMPLEMENTS();
-
- }
- break;
- case 44:
- DebugEnterAlt(44);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:276: IMPORT
- {
- DebugLocation(1, 276);
- mIMPORT();
-
- }
- break;
- case 45:
- DebugEnterAlt(45);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:283: INT
- {
- DebugLocation(1, 283);
- mINT();
-
- }
- break;
- case 46:
- DebugEnterAlt(46);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:287: INTERFACE
- {
- DebugLocation(1, 287);
- mINTERFACE();
-
- }
- break;
- case 47:
- DebugEnterAlt(47);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:297: LONG
- {
- DebugLocation(1, 297);
- mLONG();
-
- }
- break;
- case 48:
- DebugEnterAlt(48);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:302: NATIVE
- {
- DebugLocation(1, 302);
- mNATIVE();
-
- }
- break;
- case 49:
- DebugEnterAlt(49);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:309: PACKAGE
- {
- DebugLocation(1, 309);
- mPACKAGE();
-
- }
- break;
- case 50:
- DebugEnterAlt(50);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:317: PRIVATE
- {
- DebugLocation(1, 317);
- mPRIVATE();
-
- }
- break;
- case 51:
- DebugEnterAlt(51);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:325: PROTECTED
- {
- DebugLocation(1, 325);
- mPROTECTED();
-
- }
- break;
- case 52:
- DebugEnterAlt(52);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:335: PUBLIC
- {
- DebugLocation(1, 335);
- mPUBLIC();
-
- }
- break;
- case 53:
- DebugEnterAlt(53);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:342: SHORT
- {
- DebugLocation(1, 342);
- mSHORT();
-
- }
- break;
- case 54:
- DebugEnterAlt(54);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:348: STATIC
- {
- DebugLocation(1, 348);
- mSTATIC();
-
- }
- break;
- case 55:
- DebugEnterAlt(55);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:355: SUPER
- {
- DebugLocation(1, 355);
- mSUPER();
-
- }
- break;
- case 56:
- DebugEnterAlt(56);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:361: SYNCHRONIZED
- {
- DebugLocation(1, 361);
- mSYNCHRONIZED();
-
- }
- break;
- case 57:
- DebugEnterAlt(57);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:374: THROWS
- {
- DebugLocation(1, 374);
- mTHROWS();
-
- }
- break;
- case 58:
- DebugEnterAlt(58);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:381: TRANSIENT
- {
- DebugLocation(1, 381);
- mTRANSIENT();
-
- }
- break;
- case 59:
- DebugEnterAlt(59);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:391: VOLATILE
- {
- DebugLocation(1, 391);
- mVOLATILE();
-
- }
- break;
- case 60:
- DebugEnterAlt(60);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:400: LBRACE
- {
- DebugLocation(1, 400);
- mLBRACE();
-
- }
- break;
- case 61:
- DebugEnterAlt(61);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:407: RBRACE
- {
- DebugLocation(1, 407);
- mRBRACE();
-
- }
- break;
- case 62:
- DebugEnterAlt(62);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:414: LPAREN
- {
- DebugLocation(1, 414);
- mLPAREN();
-
- }
- break;
- case 63:
- DebugEnterAlt(63);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:421: RPAREN
- {
- DebugLocation(1, 421);
- mRPAREN();
-
- }
- break;
- case 64:
- DebugEnterAlt(64);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:428: LBRACK
- {
- DebugLocation(1, 428);
- mLBRACK();
-
- }
- break;
- case 65:
- DebugEnterAlt(65);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:435: RBRACK
- {
- DebugLocation(1, 435);
- mRBRACK();
-
- }
- break;
- case 66:
- DebugEnterAlt(66);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:442: DOT
- {
- DebugLocation(1, 442);
- mDOT();
-
- }
- break;
- case 67:
- DebugEnterAlt(67);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:446: SEMIC
- {
- DebugLocation(1, 446);
- mSEMIC();
-
- }
- break;
- case 68:
- DebugEnterAlt(68);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:452: COMMA
- {
- DebugLocation(1, 452);
- mCOMMA();
-
- }
- break;
- case 69:
- DebugEnterAlt(69);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:458: LT
- {
- DebugLocation(1, 458);
- mLT();
-
- }
- break;
- case 70:
- DebugEnterAlt(70);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:461: GT
- {
- DebugLocation(1, 461);
- mGT();
-
- }
- break;
- case 71:
- DebugEnterAlt(71);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:464: LTE
- {
- DebugLocation(1, 464);
- mLTE();
-
- }
- break;
- case 72:
- DebugEnterAlt(72);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:468: GTE
- {
- DebugLocation(1, 468);
- mGTE();
-
- }
- break;
- case 73:
- DebugEnterAlt(73);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:472: EQ
- {
- DebugLocation(1, 472);
- mEQ();
-
- }
- break;
- case 74:
- DebugEnterAlt(74);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:475: NEQ
- {
- DebugLocation(1, 475);
- mNEQ();
-
- }
- break;
- case 75:
- DebugEnterAlt(75);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:479: SAME
- {
- DebugLocation(1, 479);
- mSAME();
-
- }
- break;
- case 76:
- DebugEnterAlt(76);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:484: NSAME
- {
- DebugLocation(1, 484);
- mNSAME();
-
- }
- break;
- case 77:
- DebugEnterAlt(77);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:490: ADD
- {
- DebugLocation(1, 490);
- mADD();
-
- }
- break;
- case 78:
- DebugEnterAlt(78);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:494: SUB
- {
- DebugLocation(1, 494);
- mSUB();
-
- }
- break;
- case 79:
- DebugEnterAlt(79);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:498: MUL
- {
- DebugLocation(1, 498);
- mMUL();
-
- }
- break;
- case 80:
- DebugEnterAlt(80);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:502: MOD
- {
- DebugLocation(1, 502);
- mMOD();
-
- }
- break;
- case 81:
- DebugEnterAlt(81);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:506: INC
- {
- DebugLocation(1, 506);
- mINC();
-
- }
- break;
- case 82:
- DebugEnterAlt(82);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:510: DEC
- {
- DebugLocation(1, 510);
- mDEC();
-
- }
- break;
- case 83:
- DebugEnterAlt(83);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:514: SHL
- {
- DebugLocation(1, 514);
- mSHL();
-
- }
- break;
- case 84:
- DebugEnterAlt(84);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:518: SHR
- {
- DebugLocation(1, 518);
- mSHR();
-
- }
- break;
- case 85:
- DebugEnterAlt(85);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:522: SHU
- {
- DebugLocation(1, 522);
- mSHU();
-
- }
- break;
- case 86:
- DebugEnterAlt(86);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:526: AND
- {
- DebugLocation(1, 526);
- mAND();
-
- }
- break;
- case 87:
- DebugEnterAlt(87);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:530: OR
- {
- DebugLocation(1, 530);
- mOR();
-
- }
- break;
- case 88:
- DebugEnterAlt(88);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:533: XOR
- {
- DebugLocation(1, 533);
- mXOR();
-
- }
- break;
- case 89:
- DebugEnterAlt(89);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:537: NOT
- {
- DebugLocation(1, 537);
- mNOT();
-
- }
- break;
- case 90:
- DebugEnterAlt(90);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:541: INV
- {
- DebugLocation(1, 541);
- mINV();
-
- }
- break;
- case 91:
- DebugEnterAlt(91);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:545: LAND
- {
- DebugLocation(1, 545);
- mLAND();
-
- }
- break;
- case 92:
- DebugEnterAlt(92);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:550: LOR
- {
- DebugLocation(1, 550);
- mLOR();
-
- }
- break;
- case 93:
- DebugEnterAlt(93);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:554: QUE
- {
- DebugLocation(1, 554);
- mQUE();
-
- }
- break;
- case 94:
- DebugEnterAlt(94);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:558: COLON
- {
- DebugLocation(1, 558);
- mCOLON();
-
- }
- break;
- case 95:
- DebugEnterAlt(95);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:564: ASSIGN
- {
- DebugLocation(1, 564);
- mASSIGN();
-
- }
- break;
- case 96:
- DebugEnterAlt(96);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:571: ADDASS
- {
- DebugLocation(1, 571);
- mADDASS();
-
- }
- break;
- case 97:
- DebugEnterAlt(97);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:578: SUBASS
- {
- DebugLocation(1, 578);
- mSUBASS();
-
- }
- break;
- case 98:
- DebugEnterAlt(98);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:585: MULASS
- {
- DebugLocation(1, 585);
- mMULASS();
-
- }
- break;
- case 99:
- DebugEnterAlt(99);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:592: MODASS
- {
- DebugLocation(1, 592);
- mMODASS();
-
- }
- break;
- case 100:
- DebugEnterAlt(100);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:599: SHLASS
- {
- DebugLocation(1, 599);
- mSHLASS();
-
- }
- break;
- case 101:
- DebugEnterAlt(101);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:606: SHRASS
- {
- DebugLocation(1, 606);
- mSHRASS();
-
- }
- break;
- case 102:
- DebugEnterAlt(102);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:613: SHUASS
- {
- DebugLocation(1, 613);
- mSHUASS();
-
- }
- break;
- case 103:
- DebugEnterAlt(103);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:620: ANDASS
- {
- DebugLocation(1, 620);
- mANDASS();
-
- }
- break;
- case 104:
- DebugEnterAlt(104);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:627: ORASS
- {
- DebugLocation(1, 627);
- mORASS();
-
- }
- break;
- case 105:
- DebugEnterAlt(105);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:633: XORASS
- {
- DebugLocation(1, 633);
- mXORASS();
-
- }
- break;
- case 106:
- DebugEnterAlt(106);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:640: DIV
- {
- DebugLocation(1, 640);
- mDIV();
-
- }
- break;
- case 107:
- DebugEnterAlt(107);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:644: DIVASS
- {
- DebugLocation(1, 644);
- mDIVASS();
-
- }
- break;
- case 108:
- DebugEnterAlt(108);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:651: WhiteSpace
- {
- DebugLocation(1, 651);
- mWhiteSpace();
-
- }
- break;
- case 109:
- DebugEnterAlt(109);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:662: EOL
- {
- DebugLocation(1, 662);
- mEOL();
-
- }
- break;
- case 110:
- DebugEnterAlt(110);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:666: MultiLineComment
- {
- DebugLocation(1, 666);
- mMultiLineComment();
-
- }
- break;
- case 111:
- DebugEnterAlt(111);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:683: SingleLineComment
- {
- DebugLocation(1, 683);
- mSingleLineComment();
-
- }
- break;
- case 112:
- DebugEnterAlt(112);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:701: Identifier
- {
- DebugLocation(1, 701);
- mIdentifier();
-
- }
- break;
- case 113:
- DebugEnterAlt(113);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:712: DecimalLiteral
- {
- DebugLocation(1, 712);
- mDecimalLiteral();
-
- }
- break;
- case 114:
- DebugEnterAlt(114);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:727: OctalIntegerLiteral
- {
- DebugLocation(1, 727);
- mOctalIntegerLiteral();
-
- }
- break;
- case 115:
- DebugEnterAlt(115);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:747: HexIntegerLiteral
- {
- DebugLocation(1, 747);
- mHexIntegerLiteral();
-
- }
- break;
- case 116:
- DebugEnterAlt(116);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:765: StringLiteral
- {
- DebugLocation(1, 765);
- mStringLiteral();
-
- }
- break;
- case 117:
- DebugEnterAlt(117);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1:779: RegularExpressionLiteral
- {
- DebugLocation(1, 779);
- mRegularExpressionLiteral();
-
- }
- break;
-
- }
-
- }
-
-
- #region DFA
- DFA19 dfa19;
- DFA32 dfa32;
-
- protected override void InitDFAs()
- {
- base.InitDFAs();
- dfa19 = new DFA19(this);
- dfa32 = new DFA32(this, SpecialStateTransition32);
- }
-
- private class DFA19 : DFA
- {
- private const string DFA19_eotS =
- "\x01\uffff\x02\x04\x03\uffff\x01\x04";
- private const string DFA19_eofS =
- "\x07\uffff";
- private const string DFA19_minS =
- "\x03\x2e\x03\uffff\x01\x2e";
- private const string DFA19_maxS =
- "\x01\x39\x01\x2e\x01\x39\x03\uffff\x01\x39";
- private const string DFA19_acceptS =
- "\x03\uffff\x01\x02\x01\x03\x01\x01\x01\uffff";
- private const string DFA19_specialS =
- "\x07\uffff}>";
- private static readonly string[] DFA19_transitionS =
- {
- "\x01\x03\x01\uffff\x01\x01\x09\x02",
- "\x01\x05",
- "\x01\x05\x01\uffff\x0a\x06",
- "",
- "",
- "",
- "\x01\x05\x01\uffff\x0a\x06"
- };
-
- private static readonly short[] DFA19_eot = DFA.UnpackEncodedString(DFA19_eotS);
- private static readonly short[] DFA19_eof = DFA.UnpackEncodedString(DFA19_eofS);
- private static readonly char[] DFA19_min = DFA.UnpackEncodedStringToUnsignedChars(DFA19_minS);
- private static readonly char[] DFA19_max = DFA.UnpackEncodedStringToUnsignedChars(DFA19_maxS);
- private static readonly short[] DFA19_accept = DFA.UnpackEncodedString(DFA19_acceptS);
- private static readonly short[] DFA19_special = DFA.UnpackEncodedString(DFA19_specialS);
- private static readonly short[][] DFA19_transition;
-
- static DFA19()
- {
- int numStates = DFA19_transitionS.Length;
- DFA19_transition = new short[numStates][];
- for ( int i=0; i < numStates; i++ )
- {
- DFA19_transition[i] = DFA.UnpackEncodedString(DFA19_transitionS[i]);
- }
- }
-
- public DFA19( BaseRecognizer recognizer )
- {
- this.recognizer = recognizer;
- this.decisionNumber = 19;
- this.eot = DFA19_eot;
- this.eof = DFA19_eof;
- this.min = DFA19_min;
- this.max = DFA19_max;
- this.accept = DFA19_accept;
- this.special = DFA19_special;
- this.transition = DFA19_transition;
- }
-
- public override string Description { get { return "529:1: DecimalLiteral : ( DecimalIntegerLiteral '.' ( DecimalDigit )* ( ExponentPart )? | '.' ( DecimalDigit )+ ( ExponentPart )? | DecimalIntegerLiteral ( ExponentPart )? );"; } }
-
- public override void Error(NoViableAltException nvae)
- {
- DebugRecognitionException(nvae);
- }
- }
-
- private class DFA32 : DFA
- {
- private const string DFA32_eotS =
- "\x11\x2b\x06\uffff\x01\x59\x02\uffff\x01\x5c\x01\x5f\x01\x61\x01\x63"+
- "\x01\x66\x01\x69\x01\x6b\x01\x6d\x01\x70\x01\x73\x01\x75\x03\uffff\x01"+
- "\x79\x03\uffff\x01\x2d\x02\uffff\x13\x2b\x01\u0097\x03\x2b\x01\u009c"+
- "\x01\u009f\x11\x2b\x02\uffff\x01\u00b4\x02\uffff\x01\u00b7\x01\uffff"+
- "\x01\u00b9\x01\uffff\x01\u00bb\x13\uffff\x01\u00bc\x06\uffff\x01\x2b"+
- "\x01\u00be\x02\x2b\x01\u00c1\x06\x2b\x01\u00c8\x0e\x2b\x01\uffff\x04"+
- "\x2b\x01\uffff\x01\x2b\x01\u00de\x01\uffff\x07\x2b\x01\u00e7\x0b\x2b"+
- "\x02\uffff\x01\u00f4\x07\uffff\x01\u00f5\x01\uffff\x01\x2b\x01\u00f7"+
- "\x01\uffff\x01\x2b\x01\u00f9\x04\x2b\x01\uffff\x04\x2b\x01\u0102\x01"+
- "\u0103\x03\x2b\x01\u0107\x05\x2b\x01\u010d\x01\u010e\x04\x2b\x01\uffff"+
- "\x08\x2b\x01\uffff\x01\u011b\x02\x2b\x01\u011e\x01\x2b\x01\u0120\x01"+
- "\u0121\x04\x2b\x03\uffff\x01\x2b\x01\uffff\x01\x2b\x01\uffff\x01\u0129"+
- "\x01\x2b\x01\u012b\x01\u012d\x01\x2b\x01\u012f\x01\u0130\x01\x2b\x02"+
- "\uffff\x01\u0132\x01\x2b\x01\u0134\x01\uffff\x01\u0135\x04\x2b\x02\uffff"+
- "\x08\x2b\x01\u0142\x01\x2b\x01\u0144\x01\x2b\x01\uffff\x01\x2b\x01\u0147"+
- "\x01\uffff\x01\x2b\x02\uffff\x04\x2b\x01\u014d\x01\x2b\x01\u014f\x01"+
- "\uffff\x01\u0150\x01\uffff\x01\x2b\x01\uffff\x01\x2b\x02\uffff\x01\x2b"+
- "\x01\uffff\x01\x2b\x02\uffff\x01\x2b\x01\u0156\x01\x2b\x01\u0158\x01"+
- "\u0159\x04\x2b\x01\u015e\x01\u015f\x01\u0160\x01\uffff\x01\u0161\x01"+
- "\uffff\x02\x2b\x01\uffff\x04\x2b\x01\u0168\x01\uffff\x01\x2b\x02\uffff"+
- "\x01\u016a\x01\x2b\x01\u016c\x01\x2b\x01\u016e\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\u0170\x03\x2b\x04\uffff\x03\x2b\x01\u0177\x01\u0178\x01\x2b"+
- "\x01\uffff\x01\x2b\x01\uffff\x01\u017b\x01\uffff\x01\u017c\x01\uffff"+
- "\x01\u017d\x01\uffff\x04\x2b\x01\u0182\x01\u0183\x02\uffff\x01\x2b\x01"+
- "\u0185\x03\uffff\x01\x2b\x01\u0187\x02\x2b\x02\uffff\x01\u018a\x01\uffff"+
- "\x01\u018b\x01\uffff\x01\u018c\x01\x2b\x03\uffff\x01\x2b\x01\u018f\x01"+
- "\uffff";
- private const string DFA32_eofS =
- "\u0190\uffff";
- private const string DFA32_minS =
- "\x01\x09\x01\x61\x01\x68\x01\x61\x01\x6f\x01\x61\x01\x65\x01\x6c\x01"+
- "\x66\x01\x65\x01\x68\x01\x61\x01\x68\x01\x62\x02\x6f\x01\x61\x06\uffff"+
- "\x01\x30\x02\uffff\x01\x3c\x03\x3d\x01\x2b\x01\x2d\x02\x3d\x01\x26\x02"+
- "\x3d\x03\uffff\x01\x00\x03\uffff\x01\x30\x02\uffff\x01\x6c\x01\x77\x01"+
- "\x74\x01\x61\x01\x69\x01\x70\x01\x6c\x01\x6e\x01\x72\x01\x6e\x01\x6f"+
- "\x01\x65\x01\x6f\x01\x74\x01\x73\x01\x6e\x02\x61\x01\x62\x01\x24\x01"+
- "\x73\x01\x75\x01\x70\x02\x24\x01\x70\x01\x74\x01\x69\x01\x6f\x01\x61"+
- "\x01\x70\x01\x6e\x01\x72\x02\x69\x01\x74\x01\x73\x01\x74\x01\x6e\x01"+
- "\x63\x01\x69\x01\x62\x02\uffff\x01\x3d\x02\uffff\x01\x3d\x01\uffff\x01"+
- "\x3d\x01\uffff\x01\x3d\x13\uffff\x01\x00\x06\uffff\x01\x6c\x01\x24\x01"+
- "\x69\x01\x65\x01\x24\x01\x6e\x01\x73\x01\x6f\x01\x65\x01\x73\x01\x61"+
- "\x01\x24\x01\x63\x02\x61\x01\x6c\x02\x65\x01\x63\x01\x73\x01\x72\x01"+
- "\x73\x01\x61\x01\x65\x01\x75\x01\x62\x01\uffff\x01\x65\x01\x6d\x01\x6f"+
- "\x01\x65\x01\uffff\x01\x74\x01\x24\x01\uffff\x01\x6c\x01\x75\x01\x74"+
- "\x01\x72\x01\x74\x01\x65\x01\x63\x01\x24\x01\x64\x01\x61\x01\x6c\x01"+
- "\x68\x01\x74\x01\x6f\x01\x67\x01\x6b\x01\x76\x01\x74\x01\x6c\x02\uffff"+
- "\x01\x3d\x07\uffff\x01\x24\x01\uffff\x01\x76\x01\x24\x01\uffff\x01\x73"+
- "\x01\x24\x01\x77\x01\x6f\x01\x65\x01\x6c\x01\uffff\x02\x74\x01\x6b\x01"+
- "\x65\x02\x24\x01\x68\x01\x69\x01\x74\x01\x24\x01\x73\x01\x75\x01\x74"+
- "\x01\x67\x01\x6c\x02\x24\x01\x72\x01\x6e\x01\x61\x01\x72\x01\uffff\x01"+
- "\x65\x02\x72\x01\x63\x01\x74\x01\x69\x01\x72\x01\x68\x01\uffff\x01\x24"+
- "\x01\x74\x01\x65\x01\x24\x01\x72\x02\x24\x02\x61\x01\x65\x01\x69\x03"+
- "\uffff\x01\x65\x01\uffff\x01\x69\x01\uffff\x01\x24\x01\x66\x02\x24\x01"+
- "\x69\x02\x24\x01\x61\x02\uffff\x01\x24\x01\x6e\x01\x24\x01\uffff\x01"+
- "\x24\x01\x6c\x01\x65\x01\x67\x01\x65\x02\uffff\x01\x74\x01\x64\x01\x6e"+
- "\x01\x66\x01\x6d\x01\x74\x01\x6e\x01\x68\x01\x24\x01\x63\x01\x24\x01"+
- "\x72\x01\uffff\x01\x69\x01\x24\x01\uffff\x01\x61\x02\uffff\x01\x67\x01"+
- "\x74\x02\x63\x01\x24\x01\x65\x01\x24\x01\uffff\x01\x24\x01\uffff\x01"+
- "\x79\x01\uffff\x01\x6f\x02\uffff\x01\x6e\x01\uffff\x01\x75\x02\uffff"+
- "\x01\x74\x01\x24\x01\x65\x02\x24\x01\x73\x01\x63\x01\x61\x01\x65\x03"+
- "\x24\x01\uffff\x01\x24\x01\uffff\x01\x6f\x01\x6c\x01\uffff\x01\x63\x02"+
- "\x65\x01\x74\x01\x24\x01\uffff\x01\x6e\x02\uffff\x01\x24\x01\x6e\x01"+
- "\x24\x01\x65\x01\x24\x01\uffff\x01\x72\x02\uffff\x01\x24\x01\x65\x01"+
- "\x63\x01\x6e\x04\uffff\x01\x6e\x01\x65\x01\x74\x02\x24\x01\x65\x01\uffff"+
- "\x01\x74\x01\uffff\x01\x24\x01\uffff\x01\x24\x01\uffff\x01\x24\x01\uffff"+
- "\x01\x6f\x01\x65\x01\x74\x01\x69\x02\x24\x02\uffff\x01\x64\x01\x24\x03"+
- "\uffff\x01\x66\x01\x24\x01\x73\x01\x7a\x02\uffff\x01\x24\x01\uffff\x01"+
- "\x24\x01\uffff\x01\x24\x01\x65\x03\uffff\x01\x64\x01\x24\x01\uffff";
- private const string DFA32_maxS =
- "\x01\u3000\x01\x75\x01\x79\x01\x75\x01\x79\x02\x6f\x01\x78\x01\x6e\x01"+
- "\x65\x01\x79\x01\x6f\x01\x69\x01\x62\x02\x6f\x01\x75\x06\uffff\x01\x39"+
- "\x02\uffff\x01\x3d\x01\x3e\x07\x3d\x01\x7c\x01\x3d\x03\uffff\x01\uffff"+
- "\x03\uffff\x01\x78\x02\uffff\x01\x6c\x01\x77\x01\x74\x01\x79\x01\x72"+
- "\x01\x70\x01\x6c\x01\x6e\x01\x72\x01\x6e\x01\x6f\x01\x65\x01\x6f\x02"+
- "\x74\x01\x6e\x02\x61\x01\x6c\x01\x7a\x01\x73\x01\x75\x01\x74\x02\x7a"+
- "\x01\x70\x01\x74\x01\x69\x01\x6f\x01\x61\x01\x70\x01\x6e\x01\x72\x01"+
- "\x6c\x01\x69\x01\x74\x01\x73\x01\x74\x01\x6e\x01\x63\x01\x6f\x01\x62"+
- "\x02\uffff\x01\x3d\x02\uffff\x01\x3e\x01\uffff\x01\x3d\x01\uffff\x01"+
- "\x3d\x13\uffff\x01\uffff\x06\uffff\x01\x6c\x01\x7a\x01\x69\x01\x65\x01"+
- "\x7a\x01\x6e\x01\x73\x01\x6f\x01\x65\x01\x73\x01\x61\x01\x7a\x01\x63"+
- "\x02\x61\x01\x6c\x02\x65\x01\x63\x01\x74\x01\x72\x01\x73\x01\x61\x01"+
- "\x65\x01\x75\x01\x62\x01\uffff\x01\x65\x01\x6d\x01\x6f\x01\x65\x01\uffff"+
- "\x01\x74\x01\x7a\x01\uffff\x01\x6f\x01\x75\x01\x74\x01\x72\x01\x74\x01"+
- "\x65\x01\x63\x01\x7a\x01\x64\x01\x61\x01\x6c\x01\x68\x01\x74\x01\x6f"+
- "\x01\x67\x01\x6b\x01\x76\x01\x74\x01\x6c\x02\uffff\x01\x3d\x07\uffff"+
- "\x01\x7a\x01\uffff\x01\x76\x01\x7a\x01\uffff\x01\x73\x01\x7a\x01\x77"+
- "\x01\x6f\x01\x65\x01\x6c\x01\uffff\x02\x74\x01\x6b\x01\x65\x02\x7a\x01"+
- "\x68\x01\x69\x01\x74\x01\x7a\x01\x73\x01\x75\x01\x74\x01\x67\x01\x6c"+
- "\x02\x7a\x01\x72\x01\x6e\x01\x61\x01\x72\x01\uffff\x01\x65\x02\x72\x01"+
- "\x63\x01\x74\x01\x69\x01\x72\x01\x68\x01\uffff\x01\x7a\x01\x74\x01\x65"+
- "\x01\x7a\x01\x72\x02\x7a\x02\x61\x01\x65\x01\x69\x03\uffff\x01\x65\x01"+
- "\uffff\x01\x69\x01\uffff\x01\x7a\x01\x66\x02\x7a\x01\x69\x02\x7a\x01"+
- "\x61\x02\uffff\x01\x7a\x01\x6e\x01\x7a\x01\uffff\x01\x7a\x01\x6c\x01"+
- "\x65\x01\x67\x01\x65\x02\uffff\x01\x74\x01\x64\x01\x6e\x01\x66\x01\x6d"+
- "\x01\x74\x01\x6e\x01\x68\x01\x7a\x01\x63\x01\x7a\x01\x72\x01\uffff\x01"+
- "\x69\x01\x7a\x01\uffff\x01\x61\x02\uffff\x01\x67\x01\x74\x02\x63\x01"+
- "\x7a\x01\x65\x01\x7a\x01\uffff\x01\x7a\x01\uffff\x01\x79\x01\uffff\x01"+
- "\x6f\x02\uffff\x01\x6e\x01\uffff\x01\x75\x02\uffff\x01\x74\x01\x7a\x01"+
- "\x65\x02\x7a\x01\x73\x01\x63\x01\x61\x01\x65\x03\x7a\x01\uffff\x01\x7a"+
- "\x01\uffff\x01\x6f\x01\x6c\x01\uffff\x01\x63\x02\x65\x01\x74\x01\x7a"+
- "\x01\uffff\x01\x6e\x02\uffff\x01\x7a\x01\x6e\x01\x7a\x01\x65\x01\x7a"+
- "\x01\uffff\x01\x72\x02\uffff\x01\x7a\x01\x65\x01\x63\x01\x6e\x04\uffff"+
- "\x01\x6e\x01\x65\x01\x74\x02\x7a\x01\x65\x01\uffff\x01\x74\x01\uffff"+
- "\x01\x7a\x01\uffff\x01\x7a\x01\uffff\x01\x7a\x01\uffff\x01\x6f\x01\x65"+
- "\x01\x74\x01\x69\x02\x7a\x02\uffff\x01\x64\x01\x7a\x03\uffff\x01\x66"+
- "\x01\x7a\x01\x73\x01\x7a\x02\uffff\x01\x7a\x01\uffff\x01\x7a\x01\uffff"+
- "\x01\x7a\x01\x65\x03\uffff\x01\x64\x01\x7a\x01\uffff";
- private const string DFA32_acceptS =
- "\x11\uffff\x01\x3c\x01\x3d\x01\x3e\x01\x3f\x01\x40\x01\x41\x01\uffff"+
- "\x01\x43\x01\x44\x0b\uffff\x01\x5a\x01\x5d\x01\x5e\x01\uffff\x01\x6c"+
- "\x01\x6d\x01\x70\x01\uffff\x01\x71\x01\x74\x2a\uffff\x01\x42\x01\x47"+
- "\x01\uffff\x01\x45\x01\x48\x01\uffff\x01\x46\x01\uffff\x01\x5f\x01\uffff"+
- "\x01\x59\x01\x51\x01\x60\x01\x4d\x01\x52\x01\x61\x01\x4e\x01\x62\x01"+
- "\x4f\x01\x63\x01\x50\x01\x5b\x01\x67\x01\x56\x01\x5c\x01\x68\x01\x57"+
- "\x01\x69\x01\x58\x01\uffff\x01\x6e\x01\x6f\x01\x6a\x01\x75\x01\x73\x01"+
- "\x72\x1a\uffff\x01\x0a\x04\uffff\x01\x0f\x02\uffff\x01\x10\x13\uffff"+
- "\x01\x64\x01\x53\x01\uffff\x01\x65\x01\x54\x01\x4b\x01\x49\x01\x4c\x01"+
- "\x4a\x01\x6b\x01\uffff\x01\x12\x02\uffff\x01\x17\x06\uffff\x01\x0d\x15"+
- "\uffff\x01\x2d\x08\uffff\x01\x19\x0b\uffff\x01\x66\x01\x55\x01\x01\x01"+
- "\uffff\x01\x02\x01\uffff\x01\x15\x08\uffff\x01\x1f\x01\x05\x03\uffff"+
- "\x01\x20\x05\uffff\x01\x0b\x01\x25\x0c\uffff\x01\x1a\x02\uffff\x01\x1c"+
- "\x01\uffff\x01\x2a\x01\x2f\x07\uffff\x01\x16\x01\uffff\x01\x03\x01\uffff"+
- "\x01\x28\x01\uffff\x01\x29\x01\x04\x01\uffff\x01\x06\x01\uffff\x01\x22"+
- "\x01\x21\x0c\uffff\x01\x35\x01\uffff\x01\x37\x02\uffff\x01\x1b\x05\uffff"+
- "\x01\x30\x01\uffff\x01\x39\x01\x18\x05\uffff\x01\x09\x01\uffff\x01\x24"+
- "\x01\x26\x04\uffff\x01\x2c\x01\x13\x01\x14\x01\x36\x06\uffff\x01\x34"+
- "\x01\uffff\x01\x0c\x01\uffff\x01\x1e\x01\uffff\x01\x08\x01\uffff\x01"+
- "\x27\x06\uffff\x01\x31\x01\x32\x02\uffff\x01\x0e\x01\x07\x01\x23\x04"+
- "\uffff\x01\x3b\x01\x1d\x01\uffff\x01\x3a\x01\uffff\x01\x2e\x02\uffff"+
- "\x01\x33\x01\x11\x01\x2b\x02\uffff\x01\x38";
- private const string DFA32_specialS =
- "\x28\uffff\x01\x00\x4d\uffff\x01\x01\u0119\uffff}>";
- private static readonly string[] DFA32_transitionS =
- {
- "\x01\x29\x01\x2a\x02\x29\x01\x2a\x12\uffff\x01\x29\x01\x1d\x01\x2e"+
- "\x02\uffff\x01\x21\x01\x22\x01\x2e\x01\x13\x01\x14\x01\x20\x01\x1e\x01"+
- "\x19\x01\x1f\x01\x17\x01\x28\x01\x2c\x09\x2d\x01\x27\x01\x18\x01\x1a"+
- "\x01\x1c\x01\x1b\x01\x26\x1b\uffff\x01\x15\x01\uffff\x01\x16\x01\x24"+
- "\x02\uffff\x01\x0d\x01\x04\x01\x05\x01\x06\x01\x07\x01\x03\x01\x0e\x01"+
- "\uffff\x01\x08\x02\uffff\x01\x0f\x01\uffff\x01\x01\x01\uffff\x01\x10"+
- "\x01\uffff\x01\x09\x01\x0a\x01\x02\x01\uffff\x01\x0b\x01\x0c\x03\uffff"+
- "\x01\x11\x01\x23\x01\x12\x01\x25\x21\uffff\x01\x29\u15df\uffff\x01\x29"+
- "\u018d\uffff\x01\x29\u07f1\uffff\x0b\x29\x1d\uffff\x02\x2a\x05\uffff"+
- "\x01\x29\x2f\uffff\x01\x29\u0fa0\uffff\x01\x29",
- "\x01\x31\x03\uffff\x01\x30\x0f\uffff\x01\x2f",
- "\x01\x33\x09\uffff\x01\x32\x06\uffff\x01\x34",
- "\x01\x35\x07\uffff\x01\x36\x02\uffff\x01\x39\x02\uffff\x01\x37\x05"+
- "\uffff\x01\x38",
- "\x01\x3b\x02\uffff\x01\x3a\x06\uffff\x01\x3c",
- "\x01\x3d\x06\uffff\x01\x3f\x03\uffff\x01\x40\x02\uffff\x01\x3e",
- "\x01\x41\x09\uffff\x01\x42",
- "\x01\x43\x01\uffff\x01\x44\x09\uffff\x01\x45",
- "\x01\x46\x06\uffff\x01\x48\x01\x47",
- "\x01\x49",
- "\x01\x4b\x0b\uffff\x01\x4c\x01\x4d\x01\uffff\x01\x4a\x01\uffff\x01"+
- "\x4e",
- "\x01\x4f\x0d\uffff\x01\x50",
- "\x01\x51\x01\x52",
- "\x01\x53",
- "\x01\x54",
- "\x01\x55",
- "\x01\x56\x10\uffff\x01\x57\x02\uffff\x01\x58",
- "",
- "",
- "",
- "",
- "",
- "",
- "\x0a\x2d",
- "",
- "",
- "\x01\x5b\x01\x5a",
- "\x01\x5d\x01\x5e",
- "\x01\x60",
- "\x01\x62",
- "\x01\x64\x11\uffff\x01\x65",
- "\x01\x67\x0f\uffff\x01\x68",
- "\x01\x6a",
- "\x01\x6c",
- "\x01\x6e\x16\uffff\x01\x6f",
- "\x01\x72\x3e\uffff\x01\x71",
- "\x01\x74",
- "",
- "",
- "",
- "\x0a\x7a\x01\uffff\x02\x7a\x01\uffff\x1c\x7a\x01\x77\x04\x7a\x01\x78"+
- "\x0d\x7a\x01\x76\u1fea\x7a\x02\uffff\udfd6\x7a",
- "",
- "",
- "",
- "\x08\x7c\x20\uffff\x01\x7b\x1f\uffff\x01\x7b",
- "",
- "",
- "\x01\x7d",
- "\x01\x7e",
- "\x01\x7f",
- "\x01\u0082\x13\uffff\x01\u0080\x03\uffff\x01\u0081",
- "\x01\u0083\x08\uffff\x01\u0084",
- "\x01\u0085",
- "\x01\u0086",
- "\x01\u0087",
- "\x01\u0088",
- "\x01\u0089",
- "\x01\u008a",
- "\x01\u008b",
- "\x01\u008c",
- "\x01\u008d",
- "\x01\u008e\x01\u008f",
- "\x01\u0090",
- "\x01\u0091",
- "\x01\u0092",
- "\x01\u0095\x03\uffff\x01\u0093\x05\uffff\x01\u0094",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x14\x2b\x01\u0096\x05\x2b",
- "\x01\u0098",
- "\x01\u0099",
- "\x01\u009a\x03\uffff\x01\u009b",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x12\x2b\x01\u009d\x01\u009e\x06\x2b",
- "\x01\u00a0",
- "\x01\u00a1",
- "\x01\u00a2",
- "\x01\u00a3",
- "\x01\u00a4",
- "\x01\u00a5",
- "\x01\u00a6",
- "\x01\u00a7",
- "\x01\u00a8\x02\uffff\x01\u00a9",
- "\x01\u00aa",
- "\x01\u00ab",
- "\x01\u00ac",
- "\x01\u00ad",
- "\x01\u00ae",
- "\x01\u00af",
- "\x01\u00b0\x05\uffff\x01\u00b1",
- "\x01\u00b2",
- "",
- "",
- "\x01\u00b3",
- "",
- "",
- "\x01\u00b6\x01\u00b5",
- "",
- "\x01\u00b8",
- "",
- "\x01\u00ba",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "\x0a\x7a\x01\uffff\x02\x7a\x01\uffff\u201a\x7a\x02\uffff\udfd6\x7a",
- "",
- "",
- "",
- "",
- "",
- "",
- "\x01\u00bd",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "\x01\u00bf",
- "\x01\u00c0",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "\x01\u00c2",
- "\x01\u00c3",
- "\x01\u00c4",
- "\x01\u00c5",
- "\x01\u00c6",
- "\x01\u00c7",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "\x01\u00c9",
- "\x01\u00ca",
- "\x01\u00cb",
- "\x01\u00cc",
- "\x01\u00cd",
- "\x01\u00ce",
- "\x01\u00cf",
- "\x01\u00d1\x01\u00d0",
- "\x01\u00d2",
- "\x01\u00d3",
- "\x01\u00d4",
- "\x01\u00d5",
- "\x01\u00d6",
- "\x01\u00d7",
- "",
- "\x01\u00d8",
- "\x01\u00d9",
- "\x01\u00da",
- "\x01\u00db",
- "",
- "\x01\u00dc",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x04\x2b\x01\u00dd\x15\x2b",
- "",
- "\x01\u00df\x02\uffff\x01\u00e0",
- "\x01\u00e1",
- "\x01\u00e2",
- "\x01\u00e3",
- "\x01\u00e4",
- "\x01\u00e5",
- "\x01\u00e6",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "\x01\u00e8",
- "\x01\u00e9",
- "\x01\u00ea",
- "\x01\u00eb",
- "\x01\u00ec",
- "\x01\u00ed",
- "\x01\u00ee",
- "\x01\u00ef",
- "\x01\u00f0",
- "\x01\u00f1",
- "\x01\u00f2",
- "",
- "",
- "\x01\u00f3",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "",
- "\x01\u00f6",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "",
- "\x01\u00f8",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "\x01\u00fa",
- "\x01\u00fb",
- "\x01\u00fc",
- "\x01\u00fd",
- "",
- "\x01\u00fe",
- "\x01\u00ff",
- "\x01\u0100",
- "\x01\u0101",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "\x01\u0104",
- "\x01\u0105",
- "\x01\u0106",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "\x01\u0108",
- "\x01\u0109",
- "\x01\u010a",
- "\x01\u010b",
- "\x01\u010c",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "\x01\u010f",
- "\x01\u0110",
- "\x01\u0111",
- "\x01\u0112",
- "",
- "\x01\u0113",
- "\x01\u0114",
- "\x01\u0115",
- "\x01\u0116",
- "\x01\u0117",
- "\x01\u0118",
- "\x01\u0119",
- "\x01\u011a",
- "",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "\x01\u011c",
- "\x01\u011d",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "\x01\u011f",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "\x01\u0122",
- "\x01\u0123",
- "\x01\u0124",
- "\x01\u0125",
- "",
- "",
- "",
- "\x01\u0126",
- "",
- "\x01\u0127",
- "",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x12\x2b\x01\u0128\x07\x2b",
- "\x01\u012a",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x0b\x2b\x01\u012c\x0e\x2b",
- "\x01\u012e",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "\x01\u0131",
- "",
- "",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "\x01\u0133",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "\x01\u0136",
- "\x01\u0137",
- "\x01\u0138",
- "\x01\u0139",
- "",
- "",
- "\x01\u013a",
- "\x01\u013b",
- "\x01\u013c",
- "\x01\u013d",
- "\x01\u013e",
- "\x01\u013f",
- "\x01\u0140",
- "\x01\u0141",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "\x01\u0143",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "\x01\u0145",
- "",
- "\x01\u0146",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "",
- "\x01\u0148",
- "",
- "",
- "\x01\u0149",
- "\x01\u014a",
- "\x01\u014b",
- "\x01\u014c",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "\x01\u014e",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "",
- "\x01\u0151",
- "",
- "\x01\u0152",
- "",
- "",
- "\x01\u0153",
- "",
- "\x01\u0154",
- "",
- "",
- "\x01\u0155",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "\x01\u0157",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "\x01\u015a",
- "\x01\u015b",
- "\x01\u015c",
- "\x01\u015d",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "",
- "\x01\u0162",
- "\x01\u0163",
- "",
- "\x01\u0164",
- "\x01\u0165",
- "\x01\u0166",
- "\x01\u0167",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "",
- "\x01\u0169",
- "",
- "",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "\x01\u016b",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "\x01\u016d",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "",
- "\x01\u016f",
- "",
- "",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "\x01\u0171",
- "\x01\u0172",
- "\x01\u0173",
- "",
- "",
- "",
- "",
- "\x01\u0174",
- "\x01\u0175",
- "\x01\u0176",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "\x01\u0179",
- "",
- "\x01\u017a",
- "",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "",
- "\x01\u017e",
- "\x01\u017f",
- "\x01\u0180",
- "\x01\u0181",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "",
- "",
- "\x01\u0184",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "",
- "",
- "",
- "\x01\u0186",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "\x01\u0188",
- "\x01\u0189",
- "",
- "",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- "\x01\u018d",
- "",
- "",
- "",
- "\x01\u018e",
- "\x01\x2b\x0b\uffff\x0a\x2b\x07\uffff\x1a\x2b\x01\uffff\x01\x2b\x02"+
- "\uffff\x01\x2b\x01\uffff\x1a\x2b",
- ""
- };
-
- private static readonly short[] DFA32_eot = DFA.UnpackEncodedString(DFA32_eotS);
- private static readonly short[] DFA32_eof = DFA.UnpackEncodedString(DFA32_eofS);
- private static readonly char[] DFA32_min = DFA.UnpackEncodedStringToUnsignedChars(DFA32_minS);
- private static readonly char[] DFA32_max = DFA.UnpackEncodedStringToUnsignedChars(DFA32_maxS);
- private static readonly short[] DFA32_accept = DFA.UnpackEncodedString(DFA32_acceptS);
- private static readonly short[] DFA32_special = DFA.UnpackEncodedString(DFA32_specialS);
- private static readonly short[][] DFA32_transition;
-
- static DFA32()
- {
- int numStates = DFA32_transitionS.Length;
- DFA32_transition = new short[numStates][];
- for ( int i=0; i < numStates; i++ )
- {
- DFA32_transition[i] = DFA.UnpackEncodedString(DFA32_transitionS[i]);
- }
- }
-
- public DFA32( BaseRecognizer recognizer, SpecialStateTransitionHandler specialStateTransition )
- : base(specialStateTransition)
- {
- this.recognizer = recognizer;
- this.decisionNumber = 32;
- this.eot = DFA32_eot;
- this.eof = DFA32_eof;
- this.min = DFA32_min;
- this.max = DFA32_max;
- this.accept = DFA32_accept;
- this.special = DFA32_special;
- this.transition = DFA32_transition;
- }
-
- public override string Description { get { return "1:1: Tokens : ( NULL | TRUE | FALSE | BREAK | CASE | CATCH | CONTINUE | DEFAULT | DELETE | DO | ELSE | FINALLY | FOR | FUNCTION | IF | IN | INSTANCEOF | NEW | RETURN | SWITCH | THIS | THROW | TRY | TYPEOF | VAR | VOID | WHILE | WITH | ABSTRACT | BOOLEAN | BYTE | CHAR | CLASS | CONST | DEBUGGER | DOUBLE | ENUM | EXPORT | EXTENDS | FINAL | FLOAT | GOTO | IMPLEMENTS | IMPORT | INT | INTERFACE | LONG | NATIVE | PACKAGE | PRIVATE | PROTECTED | PUBLIC | SHORT | STATIC | SUPER | SYNCHRONIZED | THROWS | TRANSIENT | VOLATILE | LBRACE | RBRACE | LPAREN | RPAREN | LBRACK | RBRACK | DOT | SEMIC | COMMA | LT | GT | LTE | GTE | EQ | NEQ | SAME | NSAME | ADD | SUB | MUL | MOD | INC | DEC | SHL | SHR | SHU | AND | OR | XOR | NOT | INV | LAND | LOR | QUE | COLON | ASSIGN | ADDASS | SUBASS | MULASS | MODASS | SHLASS | SHRASS | SHUASS | ANDASS | ORASS | XORASS | DIV | DIVASS | WhiteSpace | EOL | MultiLineComment | SingleLineComment | Identifier | DecimalLiteral | OctalIntegerLiteral | HexIntegerLiteral | StringLiteral | RegularExpressionLiteral );"; } }
-
- public override void Error(NoViableAltException nvae)
- {
- DebugRecognitionException(nvae);
- }
- }
-
- private int SpecialStateTransition32(DFA dfa, int s, IIntStream _input)
- {
- IIntStream input = _input;
- int _s = s;
- switch (s)
- {
- case 0:
- int LA32_40 = input.LA(1);
-
-
- int index32_40 = input.Index;
- input.Rewind();
- s = -1;
- if ( (LA32_40=='=') ) {s = 118;}
-
- else if ( (LA32_40=='*') ) {s = 119;}
-
- else if ( (LA32_40=='/') ) {s = 120;}
-
- else if ( ((LA32_40>='\u0000' && LA32_40<='\t')||(LA32_40>='\u000B' && LA32_40<='\f')||(LA32_40>='\u000E' && LA32_40<=')')||(LA32_40>='+' && LA32_40<='.')||(LA32_40>='0' && LA32_40<='<')||(LA32_40>='>' && LA32_40<='\u2027')||(LA32_40>='\u202A' && LA32_40<='\uFFFF')) && (( AreRegularExpressionsEnabled ))) {s = 122;}
-
- else s = 121;
-
-
- input.Seek(index32_40);
- if ( s>=0 ) return s;
- break;
- case 1:
- int LA32_118 = input.LA(1);
-
-
- int index32_118 = input.Index;
- input.Rewind();
- s = -1;
- if ( ((LA32_118>='\u0000' && LA32_118<='\t')||(LA32_118>='\u000B' && LA32_118<='\f')||(LA32_118>='\u000E' && LA32_118<='\u2027')||(LA32_118>='\u202A' && LA32_118<='\uFFFF')) && (( AreRegularExpressionsEnabled ))) {s = 122;}
-
- else s = 188;
-
-
- input.Seek(index32_118);
- if ( s>=0 ) return s;
- break;
- }
- NoViableAltException nvae = new NoViableAltException(dfa.Description, 32, _s, input);
- dfa.Error(nvae);
- throw nvae;
- }
-
- #endregion
-
-}
-}
\ No newline at end of file
diff --git a/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/ES3/Generated/ES3Parser.cs b/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/ES3/Generated/ES3Parser.cs
deleted file mode 100644
index ed538530fa8..00000000000
--- a/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/ES3/Generated/ES3Parser.cs
+++ /dev/null
@@ -1,12382 +0,0 @@
-// $ANTLR 3.3 Nov 30, 2010 12:45:30 D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3 2011-07-31 12:36:31
-
-// The variable 'variable' is assigned but its value is never used.
-#pragma warning disable 168, 219
-// Unreachable code detected.
-#pragma warning disable 162
-
- #pragma warning disable 219, 162
-
-using System;
-using System.Collections.Generic;
-using Antlr.Runtime;
-using Stack = System.Collections.Generic.Stack;
-using List = System.Collections.IList;
-using ArrayList = System.Collections.Generic.List;
-
-
-using Antlr.Runtime.Tree;
-using RewriteRuleITokenStream = Antlr.Runtime.Tree.RewriteRuleTokenStream;
-
-namespace Xebic.Parsers.ES3
-{
-[System.CodeDom.Compiler.GeneratedCode("ANTLR", "3.3 Nov 30, 2010 12:45:30")]
-public partial class ES3Parser : Antlr.Runtime.Parser
-{
- internal static readonly string[] tokenNames = new string[] {
- "", "", "", "", "NULL", "TRUE", "FALSE", "BREAK", "CASE", "CATCH", "CONTINUE", "DEFAULT", "DELETE", "DO", "ELSE", "FINALLY", "FOR", "FUNCTION", "IF", "IN", "INSTANCEOF", "NEW", "RETURN", "SWITCH", "THIS", "THROW", "TRY", "TYPEOF", "VAR", "VOID", "WHILE", "WITH", "ABSTRACT", "BOOLEAN", "BYTE", "CHAR", "CLASS", "CONST", "DEBUGGER", "DOUBLE", "ENUM", "EXPORT", "EXTENDS", "FINAL", "FLOAT", "GOTO", "IMPLEMENTS", "IMPORT", "INT", "INTERFACE", "LONG", "NATIVE", "PACKAGE", "PRIVATE", "PROTECTED", "PUBLIC", "SHORT", "STATIC", "SUPER", "SYNCHRONIZED", "THROWS", "TRANSIENT", "VOLATILE", "LBRACE", "RBRACE", "LPAREN", "RPAREN", "LBRACK", "RBRACK", "DOT", "SEMIC", "COMMA", "LT", "GT", "LTE", "GTE", "EQ", "NEQ", "SAME", "NSAME", "ADD", "SUB", "MUL", "MOD", "INC", "DEC", "SHL", "SHR", "SHU", "AND", "OR", "XOR", "NOT", "INV", "LAND", "LOR", "QUE", "COLON", "ASSIGN", "ADDASS", "SUBASS", "MULASS", "MODASS", "SHLASS", "SHRASS", "SHUASS", "ANDASS", "ORASS", "XORASS", "DIV", "DIVASS", "ARGS", "ARRAY", "BLOCK", "BYFIELD", "BYINDEX", "CALL", "CEXPR", "EXPR", "FORITER", "FORSTEP", "ITEM", "LABELLED", "NAMEDVALUE", "NEG", "OBJECT", "PAREXPR", "PDEC", "PINC", "POS", "BSLASH", "DQUOTE", "SQUOTE", "TAB", "VT", "FF", "SP", "NBSP", "USP", "WhiteSpace", "LF", "CR", "LS", "PS", "LineTerminator", "EOL", "MultiLineComment", "SingleLineComment", "Identifier", "StringLiteral", "HexDigit", "IdentifierStartASCII", "DecimalDigit", "IdentifierPart", "IdentifierNameASCIIStart", "RegularExpressionLiteral", "OctalDigit", "ExponentPart", "DecimalIntegerLiteral", "DecimalLiteral", "OctalIntegerLiteral", "HexIntegerLiteral", "CharacterEscapeSequence", "ZeroToThree", "OctalEscapeSequence", "HexEscapeSequence", "UnicodeEscapeSequence", "EscapeSequence", "BackslashSequence", "RegularExpressionFirstChar", "RegularExpressionChar"
- };
- public const int EOF=-1;
- public const int NULL=4;
- public const int TRUE=5;
- public const int FALSE=6;
- public const int BREAK=7;
- public const int CASE=8;
- public const int CATCH=9;
- public const int CONTINUE=10;
- public const int DEFAULT=11;
- public const int DELETE=12;
- public const int DO=13;
- public const int ELSE=14;
- public const int FINALLY=15;
- public const int FOR=16;
- public const int FUNCTION=17;
- public const int IF=18;
- public const int IN=19;
- public const int INSTANCEOF=20;
- public const int NEW=21;
- public const int RETURN=22;
- public const int SWITCH=23;
- public const int THIS=24;
- public const int THROW=25;
- public const int TRY=26;
- public const int TYPEOF=27;
- public const int VAR=28;
- public const int VOID=29;
- public const int WHILE=30;
- public const int WITH=31;
- public const int ABSTRACT=32;
- public const int BOOLEAN=33;
- public const int BYTE=34;
- public const int CHAR=35;
- public const int CLASS=36;
- public const int CONST=37;
- public const int DEBUGGER=38;
- public const int DOUBLE=39;
- public const int ENUM=40;
- public const int EXPORT=41;
- public const int EXTENDS=42;
- public const int FINAL=43;
- public const int FLOAT=44;
- public const int GOTO=45;
- public const int IMPLEMENTS=46;
- public const int IMPORT=47;
- public const int INT=48;
- public const int INTERFACE=49;
- public const int LONG=50;
- public const int NATIVE=51;
- public const int PACKAGE=52;
- public const int PRIVATE=53;
- public const int PROTECTED=54;
- public const int PUBLIC=55;
- public const int SHORT=56;
- public const int STATIC=57;
- public const int SUPER=58;
- public const int SYNCHRONIZED=59;
- public const int THROWS=60;
- public const int TRANSIENT=61;
- public const int VOLATILE=62;
- public const int LBRACE=63;
- public const int RBRACE=64;
- public const int LPAREN=65;
- public const int RPAREN=66;
- public const int LBRACK=67;
- public const int RBRACK=68;
- public const int DOT=69;
- public const int SEMIC=70;
- public const int COMMA=71;
- public const int LT=72;
- public const int GT=73;
- public const int LTE=74;
- public const int GTE=75;
- public const int EQ=76;
- public const int NEQ=77;
- public const int SAME=78;
- public const int NSAME=79;
- public const int ADD=80;
- public const int SUB=81;
- public const int MUL=82;
- public const int MOD=83;
- public const int INC=84;
- public const int DEC=85;
- public const int SHL=86;
- public const int SHR=87;
- public const int SHU=88;
- public const int AND=89;
- public const int OR=90;
- public const int XOR=91;
- public const int NOT=92;
- public const int INV=93;
- public const int LAND=94;
- public const int LOR=95;
- public const int QUE=96;
- public const int COLON=97;
- public const int ASSIGN=98;
- public const int ADDASS=99;
- public const int SUBASS=100;
- public const int MULASS=101;
- public const int MODASS=102;
- public const int SHLASS=103;
- public const int SHRASS=104;
- public const int SHUASS=105;
- public const int ANDASS=106;
- public const int ORASS=107;
- public const int XORASS=108;
- public const int DIV=109;
- public const int DIVASS=110;
- public const int ARGS=111;
- public const int ARRAY=112;
- public const int BLOCK=113;
- public const int BYFIELD=114;
- public const int BYINDEX=115;
- public const int CALL=116;
- public const int CEXPR=117;
- public const int EXPR=118;
- public const int FORITER=119;
- public const int FORSTEP=120;
- public const int ITEM=121;
- public const int LABELLED=122;
- public const int NAMEDVALUE=123;
- public const int NEG=124;
- public const int OBJECT=125;
- public const int PAREXPR=126;
- public const int PDEC=127;
- public const int PINC=128;
- public const int POS=129;
- public const int BSLASH=130;
- public const int DQUOTE=131;
- public const int SQUOTE=132;
- public const int TAB=133;
- public const int VT=134;
- public const int FF=135;
- public const int SP=136;
- public const int NBSP=137;
- public const int USP=138;
- public const int WhiteSpace=139;
- public const int LF=140;
- public const int CR=141;
- public const int LS=142;
- public const int PS=143;
- public const int LineTerminator=144;
- public const int EOL=145;
- public const int MultiLineComment=146;
- public const int SingleLineComment=147;
- public const int Identifier=148;
- public const int StringLiteral=149;
- public const int HexDigit=150;
- public const int IdentifierStartASCII=151;
- public const int DecimalDigit=152;
- public const int IdentifierPart=153;
- public const int IdentifierNameASCIIStart=154;
- public const int RegularExpressionLiteral=155;
- public const int OctalDigit=156;
- public const int ExponentPart=157;
- public const int DecimalIntegerLiteral=158;
- public const int DecimalLiteral=159;
- public const int OctalIntegerLiteral=160;
- public const int HexIntegerLiteral=161;
- public const int CharacterEscapeSequence=162;
- public const int ZeroToThree=163;
- public const int OctalEscapeSequence=164;
- public const int HexEscapeSequence=165;
- public const int UnicodeEscapeSequence=166;
- public const int EscapeSequence=167;
- public const int BackslashSequence=168;
- public const int RegularExpressionFirstChar=169;
- public const int RegularExpressionChar=170;
-
- // delegates
- // delegators
-
- #if ANTLR_DEBUG
- private static readonly bool[] decisionCanBacktrack =
- new bool[]
- {
- false, // invalid decision
- false, false, false, false, false, false, false, false, false, false,
- false, false, false, false, false, false, false, false, false, false,
- false, false, false, false, false, false, false, false, false, false,
- false, false, false, false, false, false, false, false, false, false,
- false, false, false, false, false, false, false, false, false, false,
- false, false, false, false, false, false, false, false, false, false,
- false, false, false, false, false, false, false, false, false, false,
- false, false, false, false
- };
- #else
- private static readonly bool[] decisionCanBacktrack = new bool[0];
- #endif
- public ES3Parser( ITokenStream input )
- : this( input, new RecognizerSharedState() )
- {
- }
- public ES3Parser(ITokenStream input, RecognizerSharedState state)
- : base(input, state)
- {
- ITreeAdaptor treeAdaptor = null;
- CreateTreeAdaptor(ref treeAdaptor);
- TreeAdaptor = treeAdaptor ?? new CommonTreeAdaptor();
-
- OnCreated();
- }
-
- // Implement this function in your helper file to use a custom tree adaptor
- void CreateTreeAdaptor(ref ITreeAdaptor adaptor) {}
-
- private ITreeAdaptor adaptor;
-
- public ITreeAdaptor TreeAdaptor
- {
- get
- {
- return adaptor;
- }
- set
- {
- this.adaptor = value;
- }
- }
-
- public override string[] TokenNames { get { return ES3Parser.tokenNames; } }
- public override string GrammarFileName { get { return "D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3"; } }
-
-
-
- protected virtual void OnCreated() {}
- protected virtual void EnterRule(string ruleName, int ruleIndex) {}
- protected virtual void LeaveRule(string ruleName, int ruleIndex) {}
-
- public class token_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_token() {}
- protected virtual void Leave_token() {}
-
- // $ANTLR start "token"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:302:1: token : ( reservedWord | Identifier | punctuator | numericLiteral | StringLiteral );
- [GrammarRule("token")]
- private ES3Parser.token_return token()
- {
-
- ES3Parser.token_return retval = new ES3Parser.token_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken Identifier2=null;
- IToken StringLiteral5=null;
- ES3Parser.reservedWord_return reservedWord1 = default(ES3Parser.reservedWord_return);
- ES3Parser.punctuator_return punctuator3 = default(ES3Parser.punctuator_return);
- ES3Parser.numericLiteral_return numericLiteral4 = default(ES3Parser.numericLiteral_return);
-
- object Identifier2_tree=null;
- object StringLiteral5_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "token");
- DebugLocation(302, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:303:2: ( reservedWord | Identifier | punctuator | numericLiteral | StringLiteral )
- int alt1=5;
- try { DebugEnterDecision(1, decisionCanBacktrack[1]);
- switch (input.LA(1))
- {
- case NULL:
- case TRUE:
- case FALSE:
- case BREAK:
- case CASE:
- case CATCH:
- case CONTINUE:
- case DEFAULT:
- case DELETE:
- case DO:
- case ELSE:
- case FINALLY:
- case FOR:
- case FUNCTION:
- case IF:
- case IN:
- case INSTANCEOF:
- case NEW:
- case RETURN:
- case SWITCH:
- case THIS:
- case THROW:
- case TRY:
- case TYPEOF:
- case VAR:
- case VOID:
- case WHILE:
- case WITH:
- case ABSTRACT:
- case BOOLEAN:
- case BYTE:
- case CHAR:
- case CLASS:
- case CONST:
- case DEBUGGER:
- case DOUBLE:
- case ENUM:
- case EXPORT:
- case EXTENDS:
- case FINAL:
- case FLOAT:
- case GOTO:
- case IMPLEMENTS:
- case IMPORT:
- case INT:
- case INTERFACE:
- case LONG:
- case NATIVE:
- case PACKAGE:
- case PRIVATE:
- case PROTECTED:
- case PUBLIC:
- case SHORT:
- case STATIC:
- case SUPER:
- case SYNCHRONIZED:
- case THROWS:
- case TRANSIENT:
- case VOLATILE:
- {
- alt1=1;
- }
- break;
- case Identifier:
- {
- alt1=2;
- }
- break;
- case LBRACE:
- case RBRACE:
- case LPAREN:
- case RPAREN:
- case LBRACK:
- case RBRACK:
- case DOT:
- case SEMIC:
- case COMMA:
- case LT:
- case GT:
- case LTE:
- case GTE:
- case EQ:
- case NEQ:
- case SAME:
- case NSAME:
- case ADD:
- case SUB:
- case MUL:
- case MOD:
- case INC:
- case DEC:
- case SHL:
- case SHR:
- case SHU:
- case AND:
- case OR:
- case XOR:
- case NOT:
- case INV:
- case LAND:
- case LOR:
- case QUE:
- case COLON:
- case ASSIGN:
- case ADDASS:
- case SUBASS:
- case MULASS:
- case MODASS:
- case SHLASS:
- case SHRASS:
- case SHUASS:
- case ANDASS:
- case ORASS:
- case XORASS:
- case DIV:
- case DIVASS:
- {
- alt1=3;
- }
- break;
- case DecimalLiteral:
- case OctalIntegerLiteral:
- case HexIntegerLiteral:
- {
- alt1=4;
- }
- break;
- case StringLiteral:
- {
- alt1=5;
- }
- break;
- default:
- {
- NoViableAltException nvae = new NoViableAltException("", 1, 0, input);
-
- DebugRecognitionException(nvae);
- throw nvae;
- }
- }
-
- } finally { DebugExitDecision(1); }
- switch (alt1)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:303:4: reservedWord
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(303, 4);
- PushFollow(Follow._reservedWord_in_token1753);
- reservedWord1=reservedWord();
- PopFollow();
-
- adaptor.AddChild(root_0, reservedWord1.Tree);
-
- }
- break;
- case 2:
- DebugEnterAlt(2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:304:4: Identifier
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(304, 4);
- Identifier2=(IToken)Match(input,Identifier,Follow._Identifier_in_token1758);
- Identifier2_tree = (object)adaptor.Create(Identifier2);
- adaptor.AddChild(root_0, Identifier2_tree);
-
-
- }
- break;
- case 3:
- DebugEnterAlt(3);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:305:4: punctuator
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(305, 4);
- PushFollow(Follow._punctuator_in_token1763);
- punctuator3=punctuator();
- PopFollow();
-
- adaptor.AddChild(root_0, punctuator3.Tree);
-
- }
- break;
- case 4:
- DebugEnterAlt(4);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:306:4: numericLiteral
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(306, 4);
- PushFollow(Follow._numericLiteral_in_token1768);
- numericLiteral4=numericLiteral();
- PopFollow();
-
- adaptor.AddChild(root_0, numericLiteral4.Tree);
-
- }
- break;
- case 5:
- DebugEnterAlt(5);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:307:4: StringLiteral
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(307, 4);
- StringLiteral5=(IToken)Match(input,StringLiteral,Follow._StringLiteral_in_token1773);
- StringLiteral5_tree = (object)adaptor.Create(StringLiteral5);
- adaptor.AddChild(root_0, StringLiteral5_tree);
-
-
- }
- break;
-
- }
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(308, 1);
- } finally { DebugExitRule(GrammarFileName, "token"); }
- return retval;
-
- }
- // $ANTLR end "token"
-
- public class reservedWord_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_reservedWord() {}
- protected virtual void Leave_reservedWord() {}
-
- // $ANTLR start "reservedWord"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:312:1: reservedWord : ( keyword | futureReservedWord | NULL | booleanLiteral );
- [GrammarRule("reservedWord")]
- private ES3Parser.reservedWord_return reservedWord()
- {
-
- ES3Parser.reservedWord_return retval = new ES3Parser.reservedWord_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken NULL8=null;
- ES3Parser.keyword_return keyword6 = default(ES3Parser.keyword_return);
- ES3Parser.futureReservedWord_return futureReservedWord7 = default(ES3Parser.futureReservedWord_return);
- ES3Parser.booleanLiteral_return booleanLiteral9 = default(ES3Parser.booleanLiteral_return);
-
- object NULL8_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "reservedWord");
- DebugLocation(312, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:313:2: ( keyword | futureReservedWord | NULL | booleanLiteral )
- int alt2=4;
- try { DebugEnterDecision(2, decisionCanBacktrack[2]);
- switch (input.LA(1))
- {
- case BREAK:
- case CASE:
- case CATCH:
- case CONTINUE:
- case DEFAULT:
- case DELETE:
- case DO:
- case ELSE:
- case FINALLY:
- case FOR:
- case FUNCTION:
- case IF:
- case IN:
- case INSTANCEOF:
- case NEW:
- case RETURN:
- case SWITCH:
- case THIS:
- case THROW:
- case TRY:
- case TYPEOF:
- case VAR:
- case VOID:
- case WHILE:
- case WITH:
- {
- alt2=1;
- }
- break;
- case ABSTRACT:
- case BOOLEAN:
- case BYTE:
- case CHAR:
- case CLASS:
- case CONST:
- case DEBUGGER:
- case DOUBLE:
- case ENUM:
- case EXPORT:
- case EXTENDS:
- case FINAL:
- case FLOAT:
- case GOTO:
- case IMPLEMENTS:
- case IMPORT:
- case INT:
- case INTERFACE:
- case LONG:
- case NATIVE:
- case PACKAGE:
- case PRIVATE:
- case PROTECTED:
- case PUBLIC:
- case SHORT:
- case STATIC:
- case SUPER:
- case SYNCHRONIZED:
- case THROWS:
- case TRANSIENT:
- case VOLATILE:
- {
- alt2=2;
- }
- break;
- case NULL:
- {
- alt2=3;
- }
- break;
- case TRUE:
- case FALSE:
- {
- alt2=4;
- }
- break;
- default:
- {
- NoViableAltException nvae = new NoViableAltException("", 2, 0, input);
-
- DebugRecognitionException(nvae);
- throw nvae;
- }
- }
-
- } finally { DebugExitDecision(2); }
- switch (alt2)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:313:4: keyword
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(313, 4);
- PushFollow(Follow._keyword_in_reservedWord1786);
- keyword6=keyword();
- PopFollow();
-
- adaptor.AddChild(root_0, keyword6.Tree);
-
- }
- break;
- case 2:
- DebugEnterAlt(2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:314:4: futureReservedWord
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(314, 4);
- PushFollow(Follow._futureReservedWord_in_reservedWord1791);
- futureReservedWord7=futureReservedWord();
- PopFollow();
-
- adaptor.AddChild(root_0, futureReservedWord7.Tree);
-
- }
- break;
- case 3:
- DebugEnterAlt(3);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:315:4: NULL
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(315, 4);
- NULL8=(IToken)Match(input,NULL,Follow._NULL_in_reservedWord1796);
- NULL8_tree = (object)adaptor.Create(NULL8);
- adaptor.AddChild(root_0, NULL8_tree);
-
-
- }
- break;
- case 4:
- DebugEnterAlt(4);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:316:4: booleanLiteral
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(316, 4);
- PushFollow(Follow._booleanLiteral_in_reservedWord1801);
- booleanLiteral9=booleanLiteral();
- PopFollow();
-
- adaptor.AddChild(root_0, booleanLiteral9.Tree);
-
- }
- break;
-
- }
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(317, 1);
- } finally { DebugExitRule(GrammarFileName, "reservedWord"); }
- return retval;
-
- }
- // $ANTLR end "reservedWord"
-
- public class keyword_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_keyword() {}
- protected virtual void Leave_keyword() {}
-
- // $ANTLR start "keyword"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:323:1: keyword : ( BREAK | CASE | CATCH | CONTINUE | DEFAULT | DELETE | DO | ELSE | FINALLY | FOR | FUNCTION | IF | IN | INSTANCEOF | NEW | RETURN | SWITCH | THIS | THROW | TRY | TYPEOF | VAR | VOID | WHILE | WITH );
- [GrammarRule("keyword")]
- private ES3Parser.keyword_return keyword()
- {
-
- ES3Parser.keyword_return retval = new ES3Parser.keyword_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken set10=null;
-
- object set10_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "keyword");
- DebugLocation(323, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:324:2: ( BREAK | CASE | CATCH | CONTINUE | DEFAULT | DELETE | DO | ELSE | FINALLY | FOR | FUNCTION | IF | IN | INSTANCEOF | NEW | RETURN | SWITCH | THIS | THROW | TRY | TYPEOF | VAR | VOID | WHILE | WITH )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(324, 2);
- set10=(IToken)input.LT(1);
- if ((input.LA(1)>=BREAK && input.LA(1)<=WITH))
- {
- input.Consume();
- adaptor.AddChild(root_0, (object)adaptor.Create(set10));
- state.errorRecovery=false;
- }
- else
- {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- DebugRecognitionException(mse);
- throw mse;
- }
-
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(349, 1);
- } finally { DebugExitRule(GrammarFileName, "keyword"); }
- return retval;
-
- }
- // $ANTLR end "keyword"
-
- public class futureReservedWord_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_futureReservedWord() {}
- protected virtual void Leave_futureReservedWord() {}
-
- // $ANTLR start "futureReservedWord"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:355:1: futureReservedWord : ( ABSTRACT | BOOLEAN | BYTE | CHAR | CLASS | CONST | DEBUGGER | DOUBLE | ENUM | EXPORT | EXTENDS | FINAL | FLOAT | GOTO | IMPLEMENTS | IMPORT | INT | INTERFACE | LONG | NATIVE | PACKAGE | PRIVATE | PROTECTED | PUBLIC | SHORT | STATIC | SUPER | SYNCHRONIZED | THROWS | TRANSIENT | VOLATILE );
- [GrammarRule("futureReservedWord")]
- private ES3Parser.futureReservedWord_return futureReservedWord()
- {
-
- ES3Parser.futureReservedWord_return retval = new ES3Parser.futureReservedWord_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken set11=null;
-
- object set11_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "futureReservedWord");
- DebugLocation(355, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:356:2: ( ABSTRACT | BOOLEAN | BYTE | CHAR | CLASS | CONST | DEBUGGER | DOUBLE | ENUM | EXPORT | EXTENDS | FINAL | FLOAT | GOTO | IMPLEMENTS | IMPORT | INT | INTERFACE | LONG | NATIVE | PACKAGE | PRIVATE | PROTECTED | PUBLIC | SHORT | STATIC | SUPER | SYNCHRONIZED | THROWS | TRANSIENT | VOLATILE )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(356, 2);
- set11=(IToken)input.LT(1);
- if ((input.LA(1)>=ABSTRACT && input.LA(1)<=VOLATILE))
- {
- input.Consume();
- adaptor.AddChild(root_0, (object)adaptor.Create(set11));
- state.errorRecovery=false;
- }
- else
- {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- DebugRecognitionException(mse);
- throw mse;
- }
-
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(387, 1);
- } finally { DebugExitRule(GrammarFileName, "futureReservedWord"); }
- return retval;
-
- }
- // $ANTLR end "futureReservedWord"
-
- public class punctuator_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_punctuator() {}
- protected virtual void Leave_punctuator() {}
-
- // $ANTLR start "punctuator"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:433:1: punctuator : ( LBRACE | RBRACE | LPAREN | RPAREN | LBRACK | RBRACK | DOT | SEMIC | COMMA | LT | GT | LTE | GTE | EQ | NEQ | SAME | NSAME | ADD | SUB | MUL | MOD | INC | DEC | SHL | SHR | SHU | AND | OR | XOR | NOT | INV | LAND | LOR | QUE | COLON | ASSIGN | ADDASS | SUBASS | MULASS | MODASS | SHLASS | SHRASS | SHUASS | ANDASS | ORASS | XORASS | DIV | DIVASS );
- [GrammarRule("punctuator")]
- private ES3Parser.punctuator_return punctuator()
- {
-
- ES3Parser.punctuator_return retval = new ES3Parser.punctuator_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken set12=null;
-
- object set12_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "punctuator");
- DebugLocation(433, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:434:2: ( LBRACE | RBRACE | LPAREN | RPAREN | LBRACK | RBRACK | DOT | SEMIC | COMMA | LT | GT | LTE | GTE | EQ | NEQ | SAME | NSAME | ADD | SUB | MUL | MOD | INC | DEC | SHL | SHR | SHU | AND | OR | XOR | NOT | INV | LAND | LOR | QUE | COLON | ASSIGN | ADDASS | SUBASS | MULASS | MODASS | SHLASS | SHRASS | SHUASS | ANDASS | ORASS | XORASS | DIV | DIVASS )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(434, 2);
- set12=(IToken)input.LT(1);
- if ((input.LA(1)>=LBRACE && input.LA(1)<=DIVASS))
- {
- input.Consume();
- adaptor.AddChild(root_0, (object)adaptor.Create(set12));
- state.errorRecovery=false;
- }
- else
- {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- DebugRecognitionException(mse);
- throw mse;
- }
-
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(482, 1);
- } finally { DebugExitRule(GrammarFileName, "punctuator"); }
- return retval;
-
- }
- // $ANTLR end "punctuator"
-
- public class literal_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_literal() {}
- protected virtual void Leave_literal() {}
-
- // $ANTLR start "literal"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:488:1: literal : ( NULL | booleanLiteral | numericLiteral | StringLiteral | RegularExpressionLiteral );
- [GrammarRule("literal")]
- private ES3Parser.literal_return literal()
- {
-
- ES3Parser.literal_return retval = new ES3Parser.literal_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken NULL13=null;
- IToken StringLiteral16=null;
- IToken RegularExpressionLiteral17=null;
- ES3Parser.booleanLiteral_return booleanLiteral14 = default(ES3Parser.booleanLiteral_return);
- ES3Parser.numericLiteral_return numericLiteral15 = default(ES3Parser.numericLiteral_return);
-
- object NULL13_tree=null;
- object StringLiteral16_tree=null;
- object RegularExpressionLiteral17_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "literal");
- DebugLocation(488, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:489:2: ( NULL | booleanLiteral | numericLiteral | StringLiteral | RegularExpressionLiteral )
- int alt3=5;
- try { DebugEnterDecision(3, decisionCanBacktrack[3]);
- switch (input.LA(1))
- {
- case NULL:
- {
- alt3=1;
- }
- break;
- case TRUE:
- case FALSE:
- {
- alt3=2;
- }
- break;
- case DecimalLiteral:
- case OctalIntegerLiteral:
- case HexIntegerLiteral:
- {
- alt3=3;
- }
- break;
- case StringLiteral:
- {
- alt3=4;
- }
- break;
- case RegularExpressionLiteral:
- {
- alt3=5;
- }
- break;
- default:
- {
- NoViableAltException nvae = new NoViableAltException("", 3, 0, input);
-
- DebugRecognitionException(nvae);
- throw nvae;
- }
- }
-
- } finally { DebugExitDecision(3); }
- switch (alt3)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:489:4: NULL
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(489, 4);
- NULL13=(IToken)Match(input,NULL,Follow._NULL_in_literal2482);
- NULL13_tree = (object)adaptor.Create(NULL13);
- adaptor.AddChild(root_0, NULL13_tree);
-
-
- }
- break;
- case 2:
- DebugEnterAlt(2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:490:4: booleanLiteral
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(490, 4);
- PushFollow(Follow._booleanLiteral_in_literal2487);
- booleanLiteral14=booleanLiteral();
- PopFollow();
-
- adaptor.AddChild(root_0, booleanLiteral14.Tree);
-
- }
- break;
- case 3:
- DebugEnterAlt(3);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:491:4: numericLiteral
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(491, 4);
- PushFollow(Follow._numericLiteral_in_literal2492);
- numericLiteral15=numericLiteral();
- PopFollow();
-
- adaptor.AddChild(root_0, numericLiteral15.Tree);
-
- }
- break;
- case 4:
- DebugEnterAlt(4);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:492:4: StringLiteral
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(492, 4);
- StringLiteral16=(IToken)Match(input,StringLiteral,Follow._StringLiteral_in_literal2497);
- StringLiteral16_tree = (object)adaptor.Create(StringLiteral16);
- adaptor.AddChild(root_0, StringLiteral16_tree);
-
-
- }
- break;
- case 5:
- DebugEnterAlt(5);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:493:4: RegularExpressionLiteral
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(493, 4);
- RegularExpressionLiteral17=(IToken)Match(input,RegularExpressionLiteral,Follow._RegularExpressionLiteral_in_literal2502);
- RegularExpressionLiteral17_tree = (object)adaptor.Create(RegularExpressionLiteral17);
- adaptor.AddChild(root_0, RegularExpressionLiteral17_tree);
-
-
- }
- break;
-
- }
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(494, 1);
- } finally { DebugExitRule(GrammarFileName, "literal"); }
- return retval;
-
- }
- // $ANTLR end "literal"
-
- public class booleanLiteral_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_booleanLiteral() {}
- protected virtual void Leave_booleanLiteral() {}
-
- // $ANTLR start "booleanLiteral"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:496:1: booleanLiteral : ( TRUE | FALSE );
- [GrammarRule("booleanLiteral")]
- private ES3Parser.booleanLiteral_return booleanLiteral()
- {
-
- ES3Parser.booleanLiteral_return retval = new ES3Parser.booleanLiteral_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken set18=null;
-
- object set18_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "booleanLiteral");
- DebugLocation(496, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:497:2: ( TRUE | FALSE )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(497, 2);
- set18=(IToken)input.LT(1);
- if ((input.LA(1)>=TRUE && input.LA(1)<=FALSE))
- {
- input.Consume();
- adaptor.AddChild(root_0, (object)adaptor.Create(set18));
- state.errorRecovery=false;
- }
- else
- {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- DebugRecognitionException(mse);
- throw mse;
- }
-
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(499, 1);
- } finally { DebugExitRule(GrammarFileName, "booleanLiteral"); }
- return retval;
-
- }
- // $ANTLR end "booleanLiteral"
-
- public class numericLiteral_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_numericLiteral() {}
- protected virtual void Leave_numericLiteral() {}
-
- // $ANTLR start "numericLiteral"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:543:1: numericLiteral : ( DecimalLiteral | OctalIntegerLiteral | HexIntegerLiteral );
- [GrammarRule("numericLiteral")]
- private ES3Parser.numericLiteral_return numericLiteral()
- {
-
- ES3Parser.numericLiteral_return retval = new ES3Parser.numericLiteral_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken set19=null;
-
- object set19_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "numericLiteral");
- DebugLocation(543, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:544:2: ( DecimalLiteral | OctalIntegerLiteral | HexIntegerLiteral )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(544, 2);
- set19=(IToken)input.LT(1);
- if ((input.LA(1)>=DecimalLiteral && input.LA(1)<=HexIntegerLiteral))
- {
- input.Consume();
- adaptor.AddChild(root_0, (object)adaptor.Create(set19));
- state.errorRecovery=false;
- }
- else
- {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- DebugRecognitionException(mse);
- throw mse;
- }
-
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(547, 1);
- } finally { DebugExitRule(GrammarFileName, "numericLiteral"); }
- return retval;
-
- }
- // $ANTLR end "numericLiteral"
-
- public class primaryExpression_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_primaryExpression() {}
- protected virtual void Leave_primaryExpression() {}
-
- // $ANTLR start "primaryExpression"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:631:1: primaryExpression : ( THIS | Identifier | literal | arrayLiteral | objectLiteral | lpar= LPAREN expression RPAREN -> ^( PAREXPR[$lpar, \"PAREXPR\"] expression ) );
- [GrammarRule("primaryExpression")]
- private ES3Parser.primaryExpression_return primaryExpression()
- {
-
- ES3Parser.primaryExpression_return retval = new ES3Parser.primaryExpression_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken lpar=null;
- IToken THIS20=null;
- IToken Identifier21=null;
- IToken RPAREN26=null;
- ES3Parser.literal_return literal22 = default(ES3Parser.literal_return);
- ES3Parser.arrayLiteral_return arrayLiteral23 = default(ES3Parser.arrayLiteral_return);
- ES3Parser.objectLiteral_return objectLiteral24 = default(ES3Parser.objectLiteral_return);
- ES3Parser.expression_return expression25 = default(ES3Parser.expression_return);
-
- object lpar_tree=null;
- object THIS20_tree=null;
- object Identifier21_tree=null;
- object RPAREN26_tree=null;
- RewriteRuleITokenStream stream_RPAREN=new RewriteRuleITokenStream(adaptor,"token RPAREN");
- RewriteRuleITokenStream stream_LPAREN=new RewriteRuleITokenStream(adaptor,"token LPAREN");
- RewriteRuleSubtreeStream stream_expression=new RewriteRuleSubtreeStream(adaptor,"rule expression");
- try { DebugEnterRule(GrammarFileName, "primaryExpression");
- DebugLocation(631, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:632:2: ( THIS | Identifier | literal | arrayLiteral | objectLiteral | lpar= LPAREN expression RPAREN -> ^( PAREXPR[$lpar, \"PAREXPR\"] expression ) )
- int alt4=6;
- try { DebugEnterDecision(4, decisionCanBacktrack[4]);
- switch (input.LA(1))
- {
- case THIS:
- {
- alt4=1;
- }
- break;
- case Identifier:
- {
- alt4=2;
- }
- break;
- case NULL:
- case TRUE:
- case FALSE:
- case StringLiteral:
- case RegularExpressionLiteral:
- case DecimalLiteral:
- case OctalIntegerLiteral:
- case HexIntegerLiteral:
- {
- alt4=3;
- }
- break;
- case LBRACK:
- {
- alt4=4;
- }
- break;
- case LBRACE:
- {
- alt4=5;
- }
- break;
- case LPAREN:
- {
- alt4=6;
- }
- break;
- default:
- {
- NoViableAltException nvae = new NoViableAltException("", 4, 0, input);
-
- DebugRecognitionException(nvae);
- throw nvae;
- }
- }
-
- } finally { DebugExitDecision(4); }
- switch (alt4)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:632:4: THIS
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(632, 4);
- THIS20=(IToken)Match(input,THIS,Follow._THIS_in_primaryExpression3115);
- THIS20_tree = (object)adaptor.Create(THIS20);
- adaptor.AddChild(root_0, THIS20_tree);
-
-
- }
- break;
- case 2:
- DebugEnterAlt(2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:633:4: Identifier
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(633, 4);
- Identifier21=(IToken)Match(input,Identifier,Follow._Identifier_in_primaryExpression3120);
- Identifier21_tree = (object)adaptor.Create(Identifier21);
- adaptor.AddChild(root_0, Identifier21_tree);
-
-
- }
- break;
- case 3:
- DebugEnterAlt(3);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:634:4: literal
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(634, 4);
- PushFollow(Follow._literal_in_primaryExpression3125);
- literal22=literal();
- PopFollow();
-
- adaptor.AddChild(root_0, literal22.Tree);
-
- }
- break;
- case 4:
- DebugEnterAlt(4);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:635:4: arrayLiteral
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(635, 4);
- PushFollow(Follow._arrayLiteral_in_primaryExpression3130);
- arrayLiteral23=arrayLiteral();
- PopFollow();
-
- adaptor.AddChild(root_0, arrayLiteral23.Tree);
-
- }
- break;
- case 5:
- DebugEnterAlt(5);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:636:4: objectLiteral
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(636, 4);
- PushFollow(Follow._objectLiteral_in_primaryExpression3135);
- objectLiteral24=objectLiteral();
- PopFollow();
-
- adaptor.AddChild(root_0, objectLiteral24.Tree);
-
- }
- break;
- case 6:
- DebugEnterAlt(6);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:637:4: lpar= LPAREN expression RPAREN
- {
- DebugLocation(637, 8);
- lpar=(IToken)Match(input,LPAREN,Follow._LPAREN_in_primaryExpression3142);
- stream_LPAREN.Add(lpar);
-
- DebugLocation(637, 16);
- PushFollow(Follow._expression_in_primaryExpression3144);
- expression25=expression();
- PopFollow();
-
- stream_expression.Add(expression25.Tree);
- DebugLocation(637, 27);
- RPAREN26=(IToken)Match(input,RPAREN,Follow._RPAREN_in_primaryExpression3146);
- stream_RPAREN.Add(RPAREN26);
-
-
-
- {
- // AST REWRITE
- // elements: expression
- // token labels:
- // rule labels: retval
- // token list labels:
- // rule list labels:
- // wildcard labels:
- retval.Tree = root_0;
- RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"rule retval",retval!=null?retval.Tree:null);
-
- root_0 = (object)adaptor.Nil();
- // 637:34: -> ^( PAREXPR[$lpar, \"PAREXPR\"] expression )
- {
- DebugLocation(637, 37);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:637:37: ^( PAREXPR[$lpar, \"PAREXPR\"] expression )
- {
- object root_1 = (object)adaptor.Nil();
- DebugLocation(637, 40);
- root_1 = (object)adaptor.BecomeRoot((object)adaptor.Create(PAREXPR, lpar, "PAREXPR"), root_1);
-
- DebugLocation(637, 66);
- adaptor.AddChild(root_1, stream_expression.NextTree());
-
- adaptor.AddChild(root_0, root_1);
- }
-
- }
-
- retval.Tree = root_0;
- }
-
- }
- break;
-
- }
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(638, 1);
- } finally { DebugExitRule(GrammarFileName, "primaryExpression"); }
- return retval;
-
- }
- // $ANTLR end "primaryExpression"
-
- public class arrayLiteral_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_arrayLiteral() {}
- protected virtual void Leave_arrayLiteral() {}
-
- // $ANTLR start "arrayLiteral"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:640:1: arrayLiteral : lb= LBRACK ( arrayItem ( COMMA arrayItem )* )? RBRACK -> ^( ARRAY[$lb, \"ARRAY\"] ( arrayItem )* ) ;
- [GrammarRule("arrayLiteral")]
- private ES3Parser.arrayLiteral_return arrayLiteral()
- {
-
- ES3Parser.arrayLiteral_return retval = new ES3Parser.arrayLiteral_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken lb=null;
- IToken COMMA28=null;
- IToken RBRACK30=null;
- ES3Parser.arrayItem_return arrayItem27 = default(ES3Parser.arrayItem_return);
- ES3Parser.arrayItem_return arrayItem29 = default(ES3Parser.arrayItem_return);
-
- object lb_tree=null;
- object COMMA28_tree=null;
- object RBRACK30_tree=null;
- RewriteRuleITokenStream stream_COMMA=new RewriteRuleITokenStream(adaptor,"token COMMA");
- RewriteRuleITokenStream stream_RBRACK=new RewriteRuleITokenStream(adaptor,"token RBRACK");
- RewriteRuleITokenStream stream_LBRACK=new RewriteRuleITokenStream(adaptor,"token LBRACK");
- RewriteRuleSubtreeStream stream_arrayItem=new RewriteRuleSubtreeStream(adaptor,"rule arrayItem");
- try { DebugEnterRule(GrammarFileName, "arrayLiteral");
- DebugLocation(640, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:641:2: (lb= LBRACK ( arrayItem ( COMMA arrayItem )* )? RBRACK -> ^( ARRAY[$lb, \"ARRAY\"] ( arrayItem )* ) )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:641:4: lb= LBRACK ( arrayItem ( COMMA arrayItem )* )? RBRACK
- {
- DebugLocation(641, 6);
- lb=(IToken)Match(input,LBRACK,Follow._LBRACK_in_arrayLiteral3170);
- stream_LBRACK.Add(lb);
-
- DebugLocation(641, 14);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:641:14: ( arrayItem ( COMMA arrayItem )* )?
- int alt6=2;
- try { DebugEnterSubRule(6);
- try { DebugEnterDecision(6, decisionCanBacktrack[6]);
- int LA6_0 = input.LA(1);
-
- if (((LA6_0>=NULL && LA6_0<=FALSE)||LA6_0==DELETE||LA6_0==FUNCTION||LA6_0==NEW||LA6_0==THIS||LA6_0==TYPEOF||LA6_0==VOID||LA6_0==LBRACE||LA6_0==LPAREN||LA6_0==LBRACK||LA6_0==COMMA||(LA6_0>=ADD && LA6_0<=SUB)||(LA6_0>=INC && LA6_0<=DEC)||(LA6_0>=NOT && LA6_0<=INV)||(LA6_0>=Identifier && LA6_0<=StringLiteral)||LA6_0==RegularExpressionLiteral||(LA6_0>=DecimalLiteral && LA6_0<=HexIntegerLiteral)))
- {
- alt6=1;
- }
- else if ((LA6_0==RBRACK))
- {
- int LA6_2 = input.LA(2);
-
- if ((( input.LA(1) == COMMA )))
- {
- alt6=1;
- }
- }
- } finally { DebugExitDecision(6); }
- switch (alt6)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:641:16: arrayItem ( COMMA arrayItem )*
- {
- DebugLocation(641, 16);
- PushFollow(Follow._arrayItem_in_arrayLiteral3174);
- arrayItem27=arrayItem();
- PopFollow();
-
- stream_arrayItem.Add(arrayItem27.Tree);
- DebugLocation(641, 26);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:641:26: ( COMMA arrayItem )*
- try { DebugEnterSubRule(5);
- while (true)
- {
- int alt5=2;
- try { DebugEnterDecision(5, decisionCanBacktrack[5]);
- int LA5_0 = input.LA(1);
-
- if ((LA5_0==COMMA))
- {
- alt5=1;
- }
-
-
- } finally { DebugExitDecision(5); }
- switch ( alt5 )
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:641:28: COMMA arrayItem
- {
- DebugLocation(641, 28);
- COMMA28=(IToken)Match(input,COMMA,Follow._COMMA_in_arrayLiteral3178);
- stream_COMMA.Add(COMMA28);
-
- DebugLocation(641, 34);
- PushFollow(Follow._arrayItem_in_arrayLiteral3180);
- arrayItem29=arrayItem();
- PopFollow();
-
- stream_arrayItem.Add(arrayItem29.Tree);
-
- }
- break;
-
- default:
- goto loop5;
- }
- }
-
- loop5:
- ;
-
- } finally { DebugExitSubRule(5); }
-
-
- }
- break;
-
- }
- } finally { DebugExitSubRule(6); }
-
- DebugLocation(641, 50);
- RBRACK30=(IToken)Match(input,RBRACK,Follow._RBRACK_in_arrayLiteral3188);
- stream_RBRACK.Add(RBRACK30);
-
-
-
- {
- // AST REWRITE
- // elements: arrayItem
- // token labels:
- // rule labels: retval
- // token list labels:
- // rule list labels:
- // wildcard labels:
- retval.Tree = root_0;
- RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"rule retval",retval!=null?retval.Tree:null);
-
- root_0 = (object)adaptor.Nil();
- // 642:2: -> ^( ARRAY[$lb, \"ARRAY\"] ( arrayItem )* )
- {
- DebugLocation(642, 5);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:642:5: ^( ARRAY[$lb, \"ARRAY\"] ( arrayItem )* )
- {
- object root_1 = (object)adaptor.Nil();
- DebugLocation(642, 8);
- root_1 = (object)adaptor.BecomeRoot((object)adaptor.Create(ARRAY, lb, "ARRAY"), root_1);
-
- DebugLocation(642, 28);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:642:28: ( arrayItem )*
- while ( stream_arrayItem.HasNext )
- {
- DebugLocation(642, 28);
- adaptor.AddChild(root_1, stream_arrayItem.NextTree());
-
- }
- stream_arrayItem.Reset();
-
- adaptor.AddChild(root_0, root_1);
- }
-
- }
-
- retval.Tree = root_0;
- }
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(643, 1);
- } finally { DebugExitRule(GrammarFileName, "arrayLiteral"); }
- return retval;
-
- }
- // $ANTLR end "arrayLiteral"
-
- public class arrayItem_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_arrayItem() {}
- protected virtual void Leave_arrayItem() {}
-
- // $ANTLR start "arrayItem"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:645:1: arrayItem : (expr= assignmentExpression | {...}?) -> ^( ITEM ( $expr)? ) ;
- [GrammarRule("arrayItem")]
- private ES3Parser.arrayItem_return arrayItem()
- {
-
- ES3Parser.arrayItem_return retval = new ES3Parser.arrayItem_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- ES3Parser.assignmentExpression_return expr = default(ES3Parser.assignmentExpression_return);
-
- RewriteRuleSubtreeStream stream_assignmentExpression=new RewriteRuleSubtreeStream(adaptor,"rule assignmentExpression");
- try { DebugEnterRule(GrammarFileName, "arrayItem");
- DebugLocation(645, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:646:2: ( (expr= assignmentExpression | {...}?) -> ^( ITEM ( $expr)? ) )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:646:4: (expr= assignmentExpression | {...}?)
- {
- DebugLocation(646, 4);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:646:4: (expr= assignmentExpression | {...}?)
- int alt7=2;
- try { DebugEnterSubRule(7);
- try { DebugEnterDecision(7, decisionCanBacktrack[7]);
- int LA7_0 = input.LA(1);
-
- if (((LA7_0>=NULL && LA7_0<=FALSE)||LA7_0==DELETE||LA7_0==FUNCTION||LA7_0==NEW||LA7_0==THIS||LA7_0==TYPEOF||LA7_0==VOID||LA7_0==LBRACE||LA7_0==LPAREN||LA7_0==LBRACK||(LA7_0>=ADD && LA7_0<=SUB)||(LA7_0>=INC && LA7_0<=DEC)||(LA7_0>=NOT && LA7_0<=INV)||(LA7_0>=Identifier && LA7_0<=StringLiteral)||LA7_0==RegularExpressionLiteral||(LA7_0>=DecimalLiteral && LA7_0<=HexIntegerLiteral)))
- {
- alt7=1;
- }
- else if ((LA7_0==RBRACK||LA7_0==COMMA))
- {
- alt7=2;
- }
- else
- {
- NoViableAltException nvae = new NoViableAltException("", 7, 0, input);
-
- DebugRecognitionException(nvae);
- throw nvae;
- }
- } finally { DebugExitDecision(7); }
- switch (alt7)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:646:6: expr= assignmentExpression
- {
- DebugLocation(646, 10);
- PushFollow(Follow._assignmentExpression_in_arrayItem3216);
- expr=assignmentExpression();
- PopFollow();
-
- stream_assignmentExpression.Add(expr.Tree);
-
- }
- break;
- case 2:
- DebugEnterAlt(2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:646:34: {...}?
- {
- DebugLocation(646, 34);
- if (!(( input.LA(1) == COMMA )))
- {
- throw new FailedPredicateException(input, "arrayItem", " input.LA(1) == COMMA ");
- }
-
- }
- break;
-
- }
- } finally { DebugExitSubRule(7); }
-
-
-
- {
- // AST REWRITE
- // elements: expr
- // token labels:
- // rule labels: expr, retval
- // token list labels:
- // rule list labels:
- // wildcard labels:
- retval.Tree = root_0;
- RewriteRuleSubtreeStream stream_expr=new RewriteRuleSubtreeStream(adaptor,"rule expr",expr!=null?expr.Tree:null);
- RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"rule retval",retval!=null?retval.Tree:null);
-
- root_0 = (object)adaptor.Nil();
- // 647:2: -> ^( ITEM ( $expr)? )
- {
- DebugLocation(647, 5);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:647:5: ^( ITEM ( $expr)? )
- {
- object root_1 = (object)adaptor.Nil();
- DebugLocation(647, 8);
- root_1 = (object)adaptor.BecomeRoot((object)adaptor.Create(ITEM, "ITEM"), root_1);
-
- DebugLocation(647, 13);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:647:13: ( $expr)?
- if ( stream_expr.HasNext )
- {
- DebugLocation(647, 13);
- adaptor.AddChild(root_1, stream_expr.NextTree());
-
- }
- stream_expr.Reset();
-
- adaptor.AddChild(root_0, root_1);
- }
-
- }
-
- retval.Tree = root_0;
- }
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(648, 1);
- } finally { DebugExitRule(GrammarFileName, "arrayItem"); }
- return retval;
-
- }
- // $ANTLR end "arrayItem"
-
- public class objectLiteral_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_objectLiteral() {}
- protected virtual void Leave_objectLiteral() {}
-
- // $ANTLR start "objectLiteral"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:650:1: objectLiteral : lb= LBRACE ( nameValuePair ( COMMA nameValuePair )* )? RBRACE -> ^( OBJECT[$lb, \"OBJECT\"] ( nameValuePair )* ) ;
- [GrammarRule("objectLiteral")]
- private ES3Parser.objectLiteral_return objectLiteral()
- {
-
- ES3Parser.objectLiteral_return retval = new ES3Parser.objectLiteral_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken lb=null;
- IToken COMMA32=null;
- IToken RBRACE34=null;
- ES3Parser.nameValuePair_return nameValuePair31 = default(ES3Parser.nameValuePair_return);
- ES3Parser.nameValuePair_return nameValuePair33 = default(ES3Parser.nameValuePair_return);
-
- object lb_tree=null;
- object COMMA32_tree=null;
- object RBRACE34_tree=null;
- RewriteRuleITokenStream stream_COMMA=new RewriteRuleITokenStream(adaptor,"token COMMA");
- RewriteRuleITokenStream stream_RBRACE=new RewriteRuleITokenStream(adaptor,"token RBRACE");
- RewriteRuleITokenStream stream_LBRACE=new RewriteRuleITokenStream(adaptor,"token LBRACE");
- RewriteRuleSubtreeStream stream_nameValuePair=new RewriteRuleSubtreeStream(adaptor,"rule nameValuePair");
- try { DebugEnterRule(GrammarFileName, "objectLiteral");
- DebugLocation(650, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:651:2: (lb= LBRACE ( nameValuePair ( COMMA nameValuePair )* )? RBRACE -> ^( OBJECT[$lb, \"OBJECT\"] ( nameValuePair )* ) )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:651:4: lb= LBRACE ( nameValuePair ( COMMA nameValuePair )* )? RBRACE
- {
- DebugLocation(651, 6);
- lb=(IToken)Match(input,LBRACE,Follow._LBRACE_in_objectLiteral3248);
- stream_LBRACE.Add(lb);
-
- DebugLocation(651, 14);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:651:14: ( nameValuePair ( COMMA nameValuePair )* )?
- int alt9=2;
- try { DebugEnterSubRule(9);
- try { DebugEnterDecision(9, decisionCanBacktrack[9]);
- int LA9_0 = input.LA(1);
-
- if (((LA9_0>=Identifier && LA9_0<=StringLiteral)||(LA9_0>=DecimalLiteral && LA9_0<=HexIntegerLiteral)))
- {
- alt9=1;
- }
- } finally { DebugExitDecision(9); }
- switch (alt9)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:651:16: nameValuePair ( COMMA nameValuePair )*
- {
- DebugLocation(651, 16);
- PushFollow(Follow._nameValuePair_in_objectLiteral3252);
- nameValuePair31=nameValuePair();
- PopFollow();
-
- stream_nameValuePair.Add(nameValuePair31.Tree);
- DebugLocation(651, 30);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:651:30: ( COMMA nameValuePair )*
- try { DebugEnterSubRule(8);
- while (true)
- {
- int alt8=2;
- try { DebugEnterDecision(8, decisionCanBacktrack[8]);
- int LA8_0 = input.LA(1);
-
- if ((LA8_0==COMMA))
- {
- alt8=1;
- }
-
-
- } finally { DebugExitDecision(8); }
- switch ( alt8 )
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:651:32: COMMA nameValuePair
- {
- DebugLocation(651, 32);
- COMMA32=(IToken)Match(input,COMMA,Follow._COMMA_in_objectLiteral3256);
- stream_COMMA.Add(COMMA32);
-
- DebugLocation(651, 38);
- PushFollow(Follow._nameValuePair_in_objectLiteral3258);
- nameValuePair33=nameValuePair();
- PopFollow();
-
- stream_nameValuePair.Add(nameValuePair33.Tree);
-
- }
- break;
-
- default:
- goto loop8;
- }
- }
-
- loop8:
- ;
-
- } finally { DebugExitSubRule(8); }
-
-
- }
- break;
-
- }
- } finally { DebugExitSubRule(9); }
-
- DebugLocation(651, 58);
- RBRACE34=(IToken)Match(input,RBRACE,Follow._RBRACE_in_objectLiteral3266);
- stream_RBRACE.Add(RBRACE34);
-
-
-
- {
- // AST REWRITE
- // elements: nameValuePair
- // token labels:
- // rule labels: retval
- // token list labels:
- // rule list labels:
- // wildcard labels:
- retval.Tree = root_0;
- RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"rule retval",retval!=null?retval.Tree:null);
-
- root_0 = (object)adaptor.Nil();
- // 652:2: -> ^( OBJECT[$lb, \"OBJECT\"] ( nameValuePair )* )
- {
- DebugLocation(652, 5);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:652:5: ^( OBJECT[$lb, \"OBJECT\"] ( nameValuePair )* )
- {
- object root_1 = (object)adaptor.Nil();
- DebugLocation(652, 8);
- root_1 = (object)adaptor.BecomeRoot((object)adaptor.Create(OBJECT, lb, "OBJECT"), root_1);
-
- DebugLocation(652, 30);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:652:30: ( nameValuePair )*
- while ( stream_nameValuePair.HasNext )
- {
- DebugLocation(652, 30);
- adaptor.AddChild(root_1, stream_nameValuePair.NextTree());
-
- }
- stream_nameValuePair.Reset();
-
- adaptor.AddChild(root_0, root_1);
- }
-
- }
-
- retval.Tree = root_0;
- }
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(653, 1);
- } finally { DebugExitRule(GrammarFileName, "objectLiteral"); }
- return retval;
-
- }
- // $ANTLR end "objectLiteral"
-
- public class nameValuePair_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_nameValuePair() {}
- protected virtual void Leave_nameValuePair() {}
-
- // $ANTLR start "nameValuePair"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:655:1: nameValuePair : propertyName COLON assignmentExpression -> ^( NAMEDVALUE propertyName assignmentExpression ) ;
- [GrammarRule("nameValuePair")]
- private ES3Parser.nameValuePair_return nameValuePair()
- {
-
- ES3Parser.nameValuePair_return retval = new ES3Parser.nameValuePair_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken COLON36=null;
- ES3Parser.propertyName_return propertyName35 = default(ES3Parser.propertyName_return);
- ES3Parser.assignmentExpression_return assignmentExpression37 = default(ES3Parser.assignmentExpression_return);
-
- object COLON36_tree=null;
- RewriteRuleITokenStream stream_COLON=new RewriteRuleITokenStream(adaptor,"token COLON");
- RewriteRuleSubtreeStream stream_propertyName=new RewriteRuleSubtreeStream(adaptor,"rule propertyName");
- RewriteRuleSubtreeStream stream_assignmentExpression=new RewriteRuleSubtreeStream(adaptor,"rule assignmentExpression");
- try { DebugEnterRule(GrammarFileName, "nameValuePair");
- DebugLocation(655, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:656:2: ( propertyName COLON assignmentExpression -> ^( NAMEDVALUE propertyName assignmentExpression ) )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:656:4: propertyName COLON assignmentExpression
- {
- DebugLocation(656, 4);
- PushFollow(Follow._propertyName_in_nameValuePair3291);
- propertyName35=propertyName();
- PopFollow();
-
- stream_propertyName.Add(propertyName35.Tree);
- DebugLocation(656, 17);
- COLON36=(IToken)Match(input,COLON,Follow._COLON_in_nameValuePair3293);
- stream_COLON.Add(COLON36);
-
- DebugLocation(656, 23);
- PushFollow(Follow._assignmentExpression_in_nameValuePair3295);
- assignmentExpression37=assignmentExpression();
- PopFollow();
-
- stream_assignmentExpression.Add(assignmentExpression37.Tree);
-
-
- {
- // AST REWRITE
- // elements: propertyName, assignmentExpression
- // token labels:
- // rule labels: retval
- // token list labels:
- // rule list labels:
- // wildcard labels:
- retval.Tree = root_0;
- RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"rule retval",retval!=null?retval.Tree:null);
-
- root_0 = (object)adaptor.Nil();
- // 657:2: -> ^( NAMEDVALUE propertyName assignmentExpression )
- {
- DebugLocation(657, 5);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:657:5: ^( NAMEDVALUE propertyName assignmentExpression )
- {
- object root_1 = (object)adaptor.Nil();
- DebugLocation(657, 8);
- root_1 = (object)adaptor.BecomeRoot((object)adaptor.Create(NAMEDVALUE, "NAMEDVALUE"), root_1);
-
- DebugLocation(657, 19);
- adaptor.AddChild(root_1, stream_propertyName.NextTree());
- DebugLocation(657, 32);
- adaptor.AddChild(root_1, stream_assignmentExpression.NextTree());
-
- adaptor.AddChild(root_0, root_1);
- }
-
- }
-
- retval.Tree = root_0;
- }
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(658, 1);
- } finally { DebugExitRule(GrammarFileName, "nameValuePair"); }
- return retval;
-
- }
- // $ANTLR end "nameValuePair"
-
- public class propertyName_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_propertyName() {}
- protected virtual void Leave_propertyName() {}
-
- // $ANTLR start "propertyName"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:660:1: propertyName : ( Identifier | StringLiteral | numericLiteral );
- [GrammarRule("propertyName")]
- private ES3Parser.propertyName_return propertyName()
- {
-
- ES3Parser.propertyName_return retval = new ES3Parser.propertyName_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken Identifier38=null;
- IToken StringLiteral39=null;
- ES3Parser.numericLiteral_return numericLiteral40 = default(ES3Parser.numericLiteral_return);
-
- object Identifier38_tree=null;
- object StringLiteral39_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "propertyName");
- DebugLocation(660, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:661:2: ( Identifier | StringLiteral | numericLiteral )
- int alt10=3;
- try { DebugEnterDecision(10, decisionCanBacktrack[10]);
- switch (input.LA(1))
- {
- case Identifier:
- {
- alt10=1;
- }
- break;
- case StringLiteral:
- {
- alt10=2;
- }
- break;
- case DecimalLiteral:
- case OctalIntegerLiteral:
- case HexIntegerLiteral:
- {
- alt10=3;
- }
- break;
- default:
- {
- NoViableAltException nvae = new NoViableAltException("", 10, 0, input);
-
- DebugRecognitionException(nvae);
- throw nvae;
- }
- }
-
- } finally { DebugExitDecision(10); }
- switch (alt10)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:661:4: Identifier
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(661, 4);
- Identifier38=(IToken)Match(input,Identifier,Follow._Identifier_in_propertyName3319);
- Identifier38_tree = (object)adaptor.Create(Identifier38);
- adaptor.AddChild(root_0, Identifier38_tree);
-
-
- }
- break;
- case 2:
- DebugEnterAlt(2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:662:4: StringLiteral
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(662, 4);
- StringLiteral39=(IToken)Match(input,StringLiteral,Follow._StringLiteral_in_propertyName3324);
- StringLiteral39_tree = (object)adaptor.Create(StringLiteral39);
- adaptor.AddChild(root_0, StringLiteral39_tree);
-
-
- }
- break;
- case 3:
- DebugEnterAlt(3);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:663:4: numericLiteral
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(663, 4);
- PushFollow(Follow._numericLiteral_in_propertyName3329);
- numericLiteral40=numericLiteral();
- PopFollow();
-
- adaptor.AddChild(root_0, numericLiteral40.Tree);
-
- }
- break;
-
- }
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(664, 1);
- } finally { DebugExitRule(GrammarFileName, "propertyName"); }
- return retval;
-
- }
- // $ANTLR end "propertyName"
-
- public class memberExpression_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_memberExpression() {}
- protected virtual void Leave_memberExpression() {}
-
- // $ANTLR start "memberExpression"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:675:1: memberExpression : ( primaryExpression | functionExpression | newExpression );
- [GrammarRule("memberExpression")]
- private ES3Parser.memberExpression_return memberExpression()
- {
-
- ES3Parser.memberExpression_return retval = new ES3Parser.memberExpression_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- ES3Parser.primaryExpression_return primaryExpression41 = default(ES3Parser.primaryExpression_return);
- ES3Parser.functionExpression_return functionExpression42 = default(ES3Parser.functionExpression_return);
- ES3Parser.newExpression_return newExpression43 = default(ES3Parser.newExpression_return);
-
-
- try { DebugEnterRule(GrammarFileName, "memberExpression");
- DebugLocation(675, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:676:2: ( primaryExpression | functionExpression | newExpression )
- int alt11=3;
- try { DebugEnterDecision(11, decisionCanBacktrack[11]);
- switch (input.LA(1))
- {
- case NULL:
- case TRUE:
- case FALSE:
- case THIS:
- case LBRACE:
- case LPAREN:
- case LBRACK:
- case Identifier:
- case StringLiteral:
- case RegularExpressionLiteral:
- case DecimalLiteral:
- case OctalIntegerLiteral:
- case HexIntegerLiteral:
- {
- alt11=1;
- }
- break;
- case FUNCTION:
- {
- alt11=2;
- }
- break;
- case NEW:
- {
- alt11=3;
- }
- break;
- default:
- {
- NoViableAltException nvae = new NoViableAltException("", 11, 0, input);
-
- DebugRecognitionException(nvae);
- throw nvae;
- }
- }
-
- } finally { DebugExitDecision(11); }
- switch (alt11)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:676:4: primaryExpression
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(676, 4);
- PushFollow(Follow._primaryExpression_in_memberExpression3347);
- primaryExpression41=primaryExpression();
- PopFollow();
-
- adaptor.AddChild(root_0, primaryExpression41.Tree);
-
- }
- break;
- case 2:
- DebugEnterAlt(2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:677:4: functionExpression
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(677, 4);
- PushFollow(Follow._functionExpression_in_memberExpression3352);
- functionExpression42=functionExpression();
- PopFollow();
-
- adaptor.AddChild(root_0, functionExpression42.Tree);
-
- }
- break;
- case 3:
- DebugEnterAlt(3);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:678:4: newExpression
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(678, 4);
- PushFollow(Follow._newExpression_in_memberExpression3357);
- newExpression43=newExpression();
- PopFollow();
-
- adaptor.AddChild(root_0, newExpression43.Tree);
-
- }
- break;
-
- }
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(679, 1);
- } finally { DebugExitRule(GrammarFileName, "memberExpression"); }
- return retval;
-
- }
- // $ANTLR end "memberExpression"
-
- public class newExpression_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_newExpression() {}
- protected virtual void Leave_newExpression() {}
-
- // $ANTLR start "newExpression"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:681:1: newExpression : NEW primaryExpression ;
- [GrammarRule("newExpression")]
- private ES3Parser.newExpression_return newExpression()
- {
-
- ES3Parser.newExpression_return retval = new ES3Parser.newExpression_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken NEW44=null;
- ES3Parser.primaryExpression_return primaryExpression45 = default(ES3Parser.primaryExpression_return);
-
- object NEW44_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "newExpression");
- DebugLocation(681, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:682:2: ( NEW primaryExpression )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:682:4: NEW primaryExpression
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(682, 7);
- NEW44=(IToken)Match(input,NEW,Follow._NEW_in_newExpression3368);
- NEW44_tree = (object)adaptor.Create(NEW44);
- root_0 = (object)adaptor.BecomeRoot(NEW44_tree, root_0);
-
- DebugLocation(682, 9);
- PushFollow(Follow._primaryExpression_in_newExpression3371);
- primaryExpression45=primaryExpression();
- PopFollow();
-
- adaptor.AddChild(root_0, primaryExpression45.Tree);
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(683, 1);
- } finally { DebugExitRule(GrammarFileName, "newExpression"); }
- return retval;
-
- }
- // $ANTLR end "newExpression"
-
- public class arguments_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_arguments() {}
- protected virtual void Leave_arguments() {}
-
- // $ANTLR start "arguments"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:686:1: arguments : LPAREN ( assignmentExpression ( COMMA assignmentExpression )* )? RPAREN -> ^( ARGS ( assignmentExpression )* ) ;
- [GrammarRule("arguments")]
- private ES3Parser.arguments_return arguments()
- {
-
- ES3Parser.arguments_return retval = new ES3Parser.arguments_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken LPAREN46=null;
- IToken COMMA48=null;
- IToken RPAREN50=null;
- ES3Parser.assignmentExpression_return assignmentExpression47 = default(ES3Parser.assignmentExpression_return);
- ES3Parser.assignmentExpression_return assignmentExpression49 = default(ES3Parser.assignmentExpression_return);
-
- object LPAREN46_tree=null;
- object COMMA48_tree=null;
- object RPAREN50_tree=null;
- RewriteRuleITokenStream stream_COMMA=new RewriteRuleITokenStream(adaptor,"token COMMA");
- RewriteRuleITokenStream stream_RPAREN=new RewriteRuleITokenStream(adaptor,"token RPAREN");
- RewriteRuleITokenStream stream_LPAREN=new RewriteRuleITokenStream(adaptor,"token LPAREN");
- RewriteRuleSubtreeStream stream_assignmentExpression=new RewriteRuleSubtreeStream(adaptor,"rule assignmentExpression");
- try { DebugEnterRule(GrammarFileName, "arguments");
- DebugLocation(686, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:687:2: ( LPAREN ( assignmentExpression ( COMMA assignmentExpression )* )? RPAREN -> ^( ARGS ( assignmentExpression )* ) )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:687:4: LPAREN ( assignmentExpression ( COMMA assignmentExpression )* )? RPAREN
- {
- DebugLocation(687, 4);
- LPAREN46=(IToken)Match(input,LPAREN,Follow._LPAREN_in_arguments3384);
- stream_LPAREN.Add(LPAREN46);
-
- DebugLocation(687, 11);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:687:11: ( assignmentExpression ( COMMA assignmentExpression )* )?
- int alt13=2;
- try { DebugEnterSubRule(13);
- try { DebugEnterDecision(13, decisionCanBacktrack[13]);
- int LA13_0 = input.LA(1);
-
- if (((LA13_0>=NULL && LA13_0<=FALSE)||LA13_0==DELETE||LA13_0==FUNCTION||LA13_0==NEW||LA13_0==THIS||LA13_0==TYPEOF||LA13_0==VOID||LA13_0==LBRACE||LA13_0==LPAREN||LA13_0==LBRACK||(LA13_0>=ADD && LA13_0<=SUB)||(LA13_0>=INC && LA13_0<=DEC)||(LA13_0>=NOT && LA13_0<=INV)||(LA13_0>=Identifier && LA13_0<=StringLiteral)||LA13_0==RegularExpressionLiteral||(LA13_0>=DecimalLiteral && LA13_0<=HexIntegerLiteral)))
- {
- alt13=1;
- }
- } finally { DebugExitDecision(13); }
- switch (alt13)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:687:13: assignmentExpression ( COMMA assignmentExpression )*
- {
- DebugLocation(687, 13);
- PushFollow(Follow._assignmentExpression_in_arguments3388);
- assignmentExpression47=assignmentExpression();
- PopFollow();
-
- stream_assignmentExpression.Add(assignmentExpression47.Tree);
- DebugLocation(687, 34);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:687:34: ( COMMA assignmentExpression )*
- try { DebugEnterSubRule(12);
- while (true)
- {
- int alt12=2;
- try { DebugEnterDecision(12, decisionCanBacktrack[12]);
- int LA12_0 = input.LA(1);
-
- if ((LA12_0==COMMA))
- {
- alt12=1;
- }
-
-
- } finally { DebugExitDecision(12); }
- switch ( alt12 )
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:687:36: COMMA assignmentExpression
- {
- DebugLocation(687, 36);
- COMMA48=(IToken)Match(input,COMMA,Follow._COMMA_in_arguments3392);
- stream_COMMA.Add(COMMA48);
-
- DebugLocation(687, 42);
- PushFollow(Follow._assignmentExpression_in_arguments3394);
- assignmentExpression49=assignmentExpression();
- PopFollow();
-
- stream_assignmentExpression.Add(assignmentExpression49.Tree);
-
- }
- break;
-
- default:
- goto loop12;
- }
- }
-
- loop12:
- ;
-
- } finally { DebugExitSubRule(12); }
-
-
- }
- break;
-
- }
- } finally { DebugExitSubRule(13); }
-
- DebugLocation(687, 69);
- RPAREN50=(IToken)Match(input,RPAREN,Follow._RPAREN_in_arguments3402);
- stream_RPAREN.Add(RPAREN50);
-
-
-
- {
- // AST REWRITE
- // elements: assignmentExpression
- // token labels:
- // rule labels: retval
- // token list labels:
- // rule list labels:
- // wildcard labels:
- retval.Tree = root_0;
- RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"rule retval",retval!=null?retval.Tree:null);
-
- root_0 = (object)adaptor.Nil();
- // 688:2: -> ^( ARGS ( assignmentExpression )* )
- {
- DebugLocation(688, 5);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:688:5: ^( ARGS ( assignmentExpression )* )
- {
- object root_1 = (object)adaptor.Nil();
- DebugLocation(688, 8);
- root_1 = (object)adaptor.BecomeRoot((object)adaptor.Create(ARGS, "ARGS"), root_1);
-
- DebugLocation(688, 13);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:688:13: ( assignmentExpression )*
- while ( stream_assignmentExpression.HasNext )
- {
- DebugLocation(688, 13);
- adaptor.AddChild(root_1, stream_assignmentExpression.NextTree());
-
- }
- stream_assignmentExpression.Reset();
-
- adaptor.AddChild(root_0, root_1);
- }
-
- }
-
- retval.Tree = root_0;
- }
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(689, 1);
- } finally { DebugExitRule(GrammarFileName, "arguments"); }
- return retval;
-
- }
- // $ANTLR end "arguments"
-
- public class leftHandSideExpression_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_leftHandSideExpression() {}
- protected virtual void Leave_leftHandSideExpression() {}
-
- // $ANTLR start "leftHandSideExpression"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:691:1: leftHandSideExpression : ( memberExpression -> memberExpression ) ( arguments -> ^( CALL $leftHandSideExpression arguments ) | LBRACK expression RBRACK -> ^( BYINDEX $leftHandSideExpression expression ) | DOT Identifier -> ^( BYFIELD $leftHandSideExpression Identifier ) )* ;
- [GrammarRule("leftHandSideExpression")]
- private ES3Parser.leftHandSideExpression_return leftHandSideExpression()
- {
-
- ES3Parser.leftHandSideExpression_return retval = new ES3Parser.leftHandSideExpression_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken LBRACK53=null;
- IToken RBRACK55=null;
- IToken DOT56=null;
- IToken Identifier57=null;
- ES3Parser.memberExpression_return memberExpression51 = default(ES3Parser.memberExpression_return);
- ES3Parser.arguments_return arguments52 = default(ES3Parser.arguments_return);
- ES3Parser.expression_return expression54 = default(ES3Parser.expression_return);
-
- object LBRACK53_tree=null;
- object RBRACK55_tree=null;
- object DOT56_tree=null;
- object Identifier57_tree=null;
- RewriteRuleITokenStream stream_RBRACK=new RewriteRuleITokenStream(adaptor,"token RBRACK");
- RewriteRuleITokenStream stream_Identifier=new RewriteRuleITokenStream(adaptor,"token Identifier");
- RewriteRuleITokenStream stream_LBRACK=new RewriteRuleITokenStream(adaptor,"token LBRACK");
- RewriteRuleITokenStream stream_DOT=new RewriteRuleITokenStream(adaptor,"token DOT");
- RewriteRuleSubtreeStream stream_arguments=new RewriteRuleSubtreeStream(adaptor,"rule arguments");
- RewriteRuleSubtreeStream stream_memberExpression=new RewriteRuleSubtreeStream(adaptor,"rule memberExpression");
- RewriteRuleSubtreeStream stream_expression=new RewriteRuleSubtreeStream(adaptor,"rule expression");
- try { DebugEnterRule(GrammarFileName, "leftHandSideExpression");
- DebugLocation(691, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:692:2: ( ( memberExpression -> memberExpression ) ( arguments -> ^( CALL $leftHandSideExpression arguments ) | LBRACK expression RBRACK -> ^( BYINDEX $leftHandSideExpression expression ) | DOT Identifier -> ^( BYFIELD $leftHandSideExpression Identifier ) )* )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:693:2: ( memberExpression -> memberExpression ) ( arguments -> ^( CALL $leftHandSideExpression arguments ) | LBRACK expression RBRACK -> ^( BYINDEX $leftHandSideExpression expression ) | DOT Identifier -> ^( BYFIELD $leftHandSideExpression Identifier ) )*
- {
- DebugLocation(693, 2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:693:2: ( memberExpression -> memberExpression )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:694:3: memberExpression
- {
- DebugLocation(694, 3);
- PushFollow(Follow._memberExpression_in_leftHandSideExpression3431);
- memberExpression51=memberExpression();
- PopFollow();
-
- stream_memberExpression.Add(memberExpression51.Tree);
-
-
- {
- // AST REWRITE
- // elements: memberExpression
- // token labels:
- // rule labels: retval
- // token list labels:
- // rule list labels:
- // wildcard labels:
- retval.Tree = root_0;
- RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"rule retval",retval!=null?retval.Tree:null);
-
- root_0 = (object)adaptor.Nil();
- // 694:22: -> memberExpression
- {
- DebugLocation(694, 25);
- adaptor.AddChild(root_0, stream_memberExpression.NextTree());
-
- }
-
- retval.Tree = root_0;
- }
-
- }
-
- DebugLocation(696, 2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:696:2: ( arguments -> ^( CALL $leftHandSideExpression arguments ) | LBRACK expression RBRACK -> ^( BYINDEX $leftHandSideExpression expression ) | DOT Identifier -> ^( BYFIELD $leftHandSideExpression Identifier ) )*
- try { DebugEnterSubRule(14);
- while (true)
- {
- int alt14=4;
- try { DebugEnterDecision(14, decisionCanBacktrack[14]);
- switch (input.LA(1))
- {
- case LPAREN:
- {
- alt14=1;
- }
- break;
- case LBRACK:
- {
- alt14=2;
- }
- break;
- case DOT:
- {
- alt14=3;
- }
- break;
-
- }
-
- } finally { DebugExitDecision(14); }
- switch ( alt14 )
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:697:3: arguments
- {
- DebugLocation(697, 3);
- PushFollow(Follow._arguments_in_leftHandSideExpression3447);
- arguments52=arguments();
- PopFollow();
-
- stream_arguments.Add(arguments52.Tree);
-
-
- {
- // AST REWRITE
- // elements: arguments, leftHandSideExpression
- // token labels:
- // rule labels: retval
- // token list labels:
- // rule list labels:
- // wildcard labels:
- retval.Tree = root_0;
- RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"rule retval",retval!=null?retval.Tree:null);
-
- root_0 = (object)adaptor.Nil();
- // 697:15: -> ^( CALL $leftHandSideExpression arguments )
- {
- DebugLocation(697, 18);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:697:18: ^( CALL $leftHandSideExpression arguments )
- {
- object root_1 = (object)adaptor.Nil();
- DebugLocation(697, 21);
- root_1 = (object)adaptor.BecomeRoot((object)adaptor.Create(CALL, "CALL"), root_1);
-
- DebugLocation(697, 26);
- adaptor.AddChild(root_1, stream_retval.NextTree());
- DebugLocation(697, 50);
- adaptor.AddChild(root_1, stream_arguments.NextTree());
-
- adaptor.AddChild(root_0, root_1);
- }
-
- }
-
- retval.Tree = root_0;
- }
-
- }
- break;
- case 2:
- DebugEnterAlt(2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:698:5: LBRACK expression RBRACK
- {
- DebugLocation(698, 5);
- LBRACK53=(IToken)Match(input,LBRACK,Follow._LBRACK_in_leftHandSideExpression3468);
- stream_LBRACK.Add(LBRACK53);
-
- DebugLocation(698, 12);
- PushFollow(Follow._expression_in_leftHandSideExpression3470);
- expression54=expression();
- PopFollow();
-
- stream_expression.Add(expression54.Tree);
- DebugLocation(698, 23);
- RBRACK55=(IToken)Match(input,RBRACK,Follow._RBRACK_in_leftHandSideExpression3472);
- stream_RBRACK.Add(RBRACK55);
-
-
-
- {
- // AST REWRITE
- // elements: leftHandSideExpression, expression
- // token labels:
- // rule labels: retval
- // token list labels:
- // rule list labels:
- // wildcard labels:
- retval.Tree = root_0;
- RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"rule retval",retval!=null?retval.Tree:null);
-
- root_0 = (object)adaptor.Nil();
- // 698:30: -> ^( BYINDEX $leftHandSideExpression expression )
- {
- DebugLocation(698, 33);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:698:33: ^( BYINDEX $leftHandSideExpression expression )
- {
- object root_1 = (object)adaptor.Nil();
- DebugLocation(698, 36);
- root_1 = (object)adaptor.BecomeRoot((object)adaptor.Create(BYINDEX, "BYINDEX"), root_1);
-
- DebugLocation(698, 44);
- adaptor.AddChild(root_1, stream_retval.NextTree());
- DebugLocation(698, 68);
- adaptor.AddChild(root_1, stream_expression.NextTree());
-
- adaptor.AddChild(root_0, root_1);
- }
-
- }
-
- retval.Tree = root_0;
- }
-
- }
- break;
- case 3:
- DebugEnterAlt(3);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:699:5: DOT Identifier
- {
- DebugLocation(699, 5);
- DOT56=(IToken)Match(input,DOT,Follow._DOT_in_leftHandSideExpression3491);
- stream_DOT.Add(DOT56);
-
- DebugLocation(699, 9);
- Identifier57=(IToken)Match(input,Identifier,Follow._Identifier_in_leftHandSideExpression3493);
- stream_Identifier.Add(Identifier57);
-
-
-
- {
- // AST REWRITE
- // elements: leftHandSideExpression, Identifier
- // token labels:
- // rule labels: retval
- // token list labels:
- // rule list labels:
- // wildcard labels:
- retval.Tree = root_0;
- RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"rule retval",retval!=null?retval.Tree:null);
-
- root_0 = (object)adaptor.Nil();
- // 699:21: -> ^( BYFIELD $leftHandSideExpression Identifier )
- {
- DebugLocation(699, 24);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:699:24: ^( BYFIELD $leftHandSideExpression Identifier )
- {
- object root_1 = (object)adaptor.Nil();
- DebugLocation(699, 27);
- root_1 = (object)adaptor.BecomeRoot((object)adaptor.Create(BYFIELD, "BYFIELD"), root_1);
-
- DebugLocation(699, 35);
- adaptor.AddChild(root_1, stream_retval.NextTree());
- DebugLocation(699, 59);
- adaptor.AddChild(root_1, stream_Identifier.NextNode());
-
- adaptor.AddChild(root_0, root_1);
- }
-
- }
-
- retval.Tree = root_0;
- }
-
- }
- break;
-
- default:
- goto loop14;
- }
- }
-
- loop14:
- ;
-
- } finally { DebugExitSubRule(14); }
-
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(701, 1);
- } finally { DebugExitRule(GrammarFileName, "leftHandSideExpression"); }
- return retval;
-
- }
- // $ANTLR end "leftHandSideExpression"
-
- public class postfixExpression_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_postfixExpression() {}
- protected virtual void Leave_postfixExpression() {}
-
- // $ANTLR start "postfixExpression"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:713:1: postfixExpression : leftHandSideExpression ( postfixOperator )? ;
- [GrammarRule("postfixExpression")]
- private ES3Parser.postfixExpression_return postfixExpression()
- {
-
- ES3Parser.postfixExpression_return retval = new ES3Parser.postfixExpression_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- ES3Parser.leftHandSideExpression_return leftHandSideExpression58 = default(ES3Parser.leftHandSideExpression_return);
- ES3Parser.postfixOperator_return postfixOperator59 = default(ES3Parser.postfixOperator_return);
-
-
- try { DebugEnterRule(GrammarFileName, "postfixExpression");
- DebugLocation(713, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:714:2: ( leftHandSideExpression ( postfixOperator )? )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:714:4: leftHandSideExpression ( postfixOperator )?
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(714, 4);
- PushFollow(Follow._leftHandSideExpression_in_postfixExpression3528);
- leftHandSideExpression58=leftHandSideExpression();
- PopFollow();
-
- adaptor.AddChild(root_0, leftHandSideExpression58.Tree);
- DebugLocation(714, 27);
- if (input.LA(1) == INC || input.LA(1) == DEC) PromoteEOL(null);
- DebugLocation(714, 95);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:714:95: ( postfixOperator )?
- int alt15=2;
- try { DebugEnterSubRule(15);
- try { DebugEnterDecision(15, decisionCanBacktrack[15]);
- int LA15_0 = input.LA(1);
-
- if (((LA15_0>=INC && LA15_0<=DEC)))
- {
- alt15=1;
- }
- } finally { DebugExitDecision(15); }
- switch (alt15)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:714:97: postfixOperator
- {
- DebugLocation(714, 112);
- PushFollow(Follow._postfixOperator_in_postfixExpression3534);
- postfixOperator59=postfixOperator();
- PopFollow();
-
- root_0 = (object)adaptor.BecomeRoot(postfixOperator59.Tree, root_0);
-
- }
- break;
-
- }
- } finally { DebugExitSubRule(15); }
-
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(715, 1);
- } finally { DebugExitRule(GrammarFileName, "postfixExpression"); }
- return retval;
-
- }
- // $ANTLR end "postfixExpression"
-
- public class postfixOperator_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_postfixOperator() {}
- protected virtual void Leave_postfixOperator() {}
-
- // $ANTLR start "postfixOperator"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:717:1: postfixOperator : (op= INC | op= DEC );
- [GrammarRule("postfixOperator")]
- private ES3Parser.postfixOperator_return postfixOperator()
- {
-
- ES3Parser.postfixOperator_return retval = new ES3Parser.postfixOperator_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken op=null;
-
- object op_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "postfixOperator");
- DebugLocation(717, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:718:2: (op= INC | op= DEC )
- int alt16=2;
- try { DebugEnterDecision(16, decisionCanBacktrack[16]);
- int LA16_0 = input.LA(1);
-
- if ((LA16_0==INC))
- {
- alt16=1;
- }
- else if ((LA16_0==DEC))
- {
- alt16=2;
- }
- else
- {
- NoViableAltException nvae = new NoViableAltException("", 16, 0, input);
-
- DebugRecognitionException(nvae);
- throw nvae;
- }
- } finally { DebugExitDecision(16); }
- switch (alt16)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:718:4: op= INC
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(718, 6);
- op=(IToken)Match(input,INC,Follow._INC_in_postfixOperator3552);
- op_tree = (object)adaptor.Create(op);
- adaptor.AddChild(root_0, op_tree);
-
- DebugLocation(718, 11);
- op.Type = PINC;
-
- }
- break;
- case 2:
- DebugEnterAlt(2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:719:4: op= DEC
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(719, 6);
- op=(IToken)Match(input,DEC,Follow._DEC_in_postfixOperator3561);
- op_tree = (object)adaptor.Create(op);
- adaptor.AddChild(root_0, op_tree);
-
- DebugLocation(719, 11);
- op.Type = PDEC;
-
- }
- break;
-
- }
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(720, 1);
- } finally { DebugExitRule(GrammarFileName, "postfixOperator"); }
- return retval;
-
- }
- // $ANTLR end "postfixOperator"
-
- public class unaryExpression_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_unaryExpression() {}
- protected virtual void Leave_unaryExpression() {}
-
- // $ANTLR start "unaryExpression"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:726:1: unaryExpression : ( postfixExpression | unaryOperator unaryExpression );
- [GrammarRule("unaryExpression")]
- private ES3Parser.unaryExpression_return unaryExpression()
- {
-
- ES3Parser.unaryExpression_return retval = new ES3Parser.unaryExpression_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- ES3Parser.postfixExpression_return postfixExpression60 = default(ES3Parser.postfixExpression_return);
- ES3Parser.unaryOperator_return unaryOperator61 = default(ES3Parser.unaryOperator_return);
- ES3Parser.unaryExpression_return unaryExpression62 = default(ES3Parser.unaryExpression_return);
-
-
- try { DebugEnterRule(GrammarFileName, "unaryExpression");
- DebugLocation(726, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:727:2: ( postfixExpression | unaryOperator unaryExpression )
- int alt17=2;
- try { DebugEnterDecision(17, decisionCanBacktrack[17]);
- int LA17_0 = input.LA(1);
-
- if (((LA17_0>=NULL && LA17_0<=FALSE)||LA17_0==FUNCTION||LA17_0==NEW||LA17_0==THIS||LA17_0==LBRACE||LA17_0==LPAREN||LA17_0==LBRACK||(LA17_0>=Identifier && LA17_0<=StringLiteral)||LA17_0==RegularExpressionLiteral||(LA17_0>=DecimalLiteral && LA17_0<=HexIntegerLiteral)))
- {
- alt17=1;
- }
- else if ((LA17_0==DELETE||LA17_0==TYPEOF||LA17_0==VOID||(LA17_0>=ADD && LA17_0<=SUB)||(LA17_0>=INC && LA17_0<=DEC)||(LA17_0>=NOT && LA17_0<=INV)))
- {
- alt17=2;
- }
- else
- {
- NoViableAltException nvae = new NoViableAltException("", 17, 0, input);
-
- DebugRecognitionException(nvae);
- throw nvae;
- }
- } finally { DebugExitDecision(17); }
- switch (alt17)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:727:4: postfixExpression
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(727, 4);
- PushFollow(Follow._postfixExpression_in_unaryExpression3578);
- postfixExpression60=postfixExpression();
- PopFollow();
-
- adaptor.AddChild(root_0, postfixExpression60.Tree);
-
- }
- break;
- case 2:
- DebugEnterAlt(2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:728:4: unaryOperator unaryExpression
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(728, 17);
- PushFollow(Follow._unaryOperator_in_unaryExpression3583);
- unaryOperator61=unaryOperator();
- PopFollow();
-
- root_0 = (object)adaptor.BecomeRoot(unaryOperator61.Tree, root_0);
- DebugLocation(728, 19);
- PushFollow(Follow._unaryExpression_in_unaryExpression3586);
- unaryExpression62=unaryExpression();
- PopFollow();
-
- adaptor.AddChild(root_0, unaryExpression62.Tree);
-
- }
- break;
-
- }
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(729, 1);
- } finally { DebugExitRule(GrammarFileName, "unaryExpression"); }
- return retval;
-
- }
- // $ANTLR end "unaryExpression"
-
- public class unaryOperator_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_unaryOperator() {}
- protected virtual void Leave_unaryOperator() {}
-
- // $ANTLR start "unaryOperator"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:731:1: unaryOperator : ( DELETE | VOID | TYPEOF | INC | DEC | op= ADD | op= SUB | INV | NOT );
- [GrammarRule("unaryOperator")]
- private ES3Parser.unaryOperator_return unaryOperator()
- {
-
- ES3Parser.unaryOperator_return retval = new ES3Parser.unaryOperator_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken op=null;
- IToken DELETE63=null;
- IToken VOID64=null;
- IToken TYPEOF65=null;
- IToken INC66=null;
- IToken DEC67=null;
- IToken INV68=null;
- IToken NOT69=null;
-
- object op_tree=null;
- object DELETE63_tree=null;
- object VOID64_tree=null;
- object TYPEOF65_tree=null;
- object INC66_tree=null;
- object DEC67_tree=null;
- object INV68_tree=null;
- object NOT69_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "unaryOperator");
- DebugLocation(731, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:732:2: ( DELETE | VOID | TYPEOF | INC | DEC | op= ADD | op= SUB | INV | NOT )
- int alt18=9;
- try { DebugEnterDecision(18, decisionCanBacktrack[18]);
- switch (input.LA(1))
- {
- case DELETE:
- {
- alt18=1;
- }
- break;
- case VOID:
- {
- alt18=2;
- }
- break;
- case TYPEOF:
- {
- alt18=3;
- }
- break;
- case INC:
- {
- alt18=4;
- }
- break;
- case DEC:
- {
- alt18=5;
- }
- break;
- case ADD:
- {
- alt18=6;
- }
- break;
- case SUB:
- {
- alt18=7;
- }
- break;
- case INV:
- {
- alt18=8;
- }
- break;
- case NOT:
- {
- alt18=9;
- }
- break;
- default:
- {
- NoViableAltException nvae = new NoViableAltException("", 18, 0, input);
-
- DebugRecognitionException(nvae);
- throw nvae;
- }
- }
-
- } finally { DebugExitDecision(18); }
- switch (alt18)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:732:4: DELETE
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(732, 4);
- DELETE63=(IToken)Match(input,DELETE,Follow._DELETE_in_unaryOperator3598);
- DELETE63_tree = (object)adaptor.Create(DELETE63);
- adaptor.AddChild(root_0, DELETE63_tree);
-
-
- }
- break;
- case 2:
- DebugEnterAlt(2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:733:4: VOID
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(733, 4);
- VOID64=(IToken)Match(input,VOID,Follow._VOID_in_unaryOperator3603);
- VOID64_tree = (object)adaptor.Create(VOID64);
- adaptor.AddChild(root_0, VOID64_tree);
-
-
- }
- break;
- case 3:
- DebugEnterAlt(3);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:734:4: TYPEOF
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(734, 4);
- TYPEOF65=(IToken)Match(input,TYPEOF,Follow._TYPEOF_in_unaryOperator3608);
- TYPEOF65_tree = (object)adaptor.Create(TYPEOF65);
- adaptor.AddChild(root_0, TYPEOF65_tree);
-
-
- }
- break;
- case 4:
- DebugEnterAlt(4);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:735:4: INC
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(735, 4);
- INC66=(IToken)Match(input,INC,Follow._INC_in_unaryOperator3613);
- INC66_tree = (object)adaptor.Create(INC66);
- adaptor.AddChild(root_0, INC66_tree);
-
-
- }
- break;
- case 5:
- DebugEnterAlt(5);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:736:4: DEC
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(736, 4);
- DEC67=(IToken)Match(input,DEC,Follow._DEC_in_unaryOperator3618);
- DEC67_tree = (object)adaptor.Create(DEC67);
- adaptor.AddChild(root_0, DEC67_tree);
-
-
- }
- break;
- case 6:
- DebugEnterAlt(6);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:737:4: op= ADD
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(737, 6);
- op=(IToken)Match(input,ADD,Follow._ADD_in_unaryOperator3625);
- op_tree = (object)adaptor.Create(op);
- adaptor.AddChild(root_0, op_tree);
-
- DebugLocation(737, 11);
- op.Type = POS;
-
- }
- break;
- case 7:
- DebugEnterAlt(7);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:738:4: op= SUB
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(738, 6);
- op=(IToken)Match(input,SUB,Follow._SUB_in_unaryOperator3634);
- op_tree = (object)adaptor.Create(op);
- adaptor.AddChild(root_0, op_tree);
-
- DebugLocation(738, 11);
- op.Type = NEG;
-
- }
- break;
- case 8:
- DebugEnterAlt(8);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:739:4: INV
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(739, 4);
- INV68=(IToken)Match(input,INV,Follow._INV_in_unaryOperator3641);
- INV68_tree = (object)adaptor.Create(INV68);
- adaptor.AddChild(root_0, INV68_tree);
-
-
- }
- break;
- case 9:
- DebugEnterAlt(9);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:740:4: NOT
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(740, 4);
- NOT69=(IToken)Match(input,NOT,Follow._NOT_in_unaryOperator3646);
- NOT69_tree = (object)adaptor.Create(NOT69);
- adaptor.AddChild(root_0, NOT69_tree);
-
-
- }
- break;
-
- }
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(741, 1);
- } finally { DebugExitRule(GrammarFileName, "unaryOperator"); }
- return retval;
-
- }
- // $ANTLR end "unaryOperator"
-
- public class multiplicativeExpression_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_multiplicativeExpression() {}
- protected virtual void Leave_multiplicativeExpression() {}
-
- // $ANTLR start "multiplicativeExpression"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:747:1: multiplicativeExpression : unaryExpression ( ( MUL | DIV | MOD ) unaryExpression )* ;
- [GrammarRule("multiplicativeExpression")]
- private ES3Parser.multiplicativeExpression_return multiplicativeExpression()
- {
-
- ES3Parser.multiplicativeExpression_return retval = new ES3Parser.multiplicativeExpression_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken set71=null;
- ES3Parser.unaryExpression_return unaryExpression70 = default(ES3Parser.unaryExpression_return);
- ES3Parser.unaryExpression_return unaryExpression72 = default(ES3Parser.unaryExpression_return);
-
- object set71_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "multiplicativeExpression");
- DebugLocation(747, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:748:2: ( unaryExpression ( ( MUL | DIV | MOD ) unaryExpression )* )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:748:4: unaryExpression ( ( MUL | DIV | MOD ) unaryExpression )*
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(748, 4);
- PushFollow(Follow._unaryExpression_in_multiplicativeExpression3661);
- unaryExpression70=unaryExpression();
- PopFollow();
-
- adaptor.AddChild(root_0, unaryExpression70.Tree);
- DebugLocation(748, 20);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:748:20: ( ( MUL | DIV | MOD ) unaryExpression )*
- try { DebugEnterSubRule(19);
- while (true)
- {
- int alt19=2;
- try { DebugEnterDecision(19, decisionCanBacktrack[19]);
- int LA19_0 = input.LA(1);
-
- if (((LA19_0>=MUL && LA19_0<=MOD)||LA19_0==DIV))
- {
- alt19=1;
- }
-
-
- } finally { DebugExitDecision(19); }
- switch ( alt19 )
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:748:22: ( MUL | DIV | MOD ) unaryExpression
- {
- DebugLocation(748, 22);
- set71=(IToken)input.LT(1);
- set71=(IToken)input.LT(1);
- if ((input.LA(1)>=MUL && input.LA(1)<=MOD)||input.LA(1)==DIV)
- {
- input.Consume();
- root_0 = (object)adaptor.BecomeRoot((object)adaptor.Create(set71), root_0);
- state.errorRecovery=false;
- }
- else
- {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- DebugRecognitionException(mse);
- throw mse;
- }
-
- DebugLocation(748, 43);
- PushFollow(Follow._unaryExpression_in_multiplicativeExpression3680);
- unaryExpression72=unaryExpression();
- PopFollow();
-
- adaptor.AddChild(root_0, unaryExpression72.Tree);
-
- }
- break;
-
- default:
- goto loop19;
- }
- }
-
- loop19:
- ;
-
- } finally { DebugExitSubRule(19); }
-
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(749, 1);
- } finally { DebugExitRule(GrammarFileName, "multiplicativeExpression"); }
- return retval;
-
- }
- // $ANTLR end "multiplicativeExpression"
-
- public class additiveExpression_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_additiveExpression() {}
- protected virtual void Leave_additiveExpression() {}
-
- // $ANTLR start "additiveExpression"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:755:1: additiveExpression : multiplicativeExpression ( ( ADD | SUB ) multiplicativeExpression )* ;
- [GrammarRule("additiveExpression")]
- private ES3Parser.additiveExpression_return additiveExpression()
- {
-
- ES3Parser.additiveExpression_return retval = new ES3Parser.additiveExpression_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken set74=null;
- ES3Parser.multiplicativeExpression_return multiplicativeExpression73 = default(ES3Parser.multiplicativeExpression_return);
- ES3Parser.multiplicativeExpression_return multiplicativeExpression75 = default(ES3Parser.multiplicativeExpression_return);
-
- object set74_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "additiveExpression");
- DebugLocation(755, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:756:2: ( multiplicativeExpression ( ( ADD | SUB ) multiplicativeExpression )* )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:756:4: multiplicativeExpression ( ( ADD | SUB ) multiplicativeExpression )*
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(756, 4);
- PushFollow(Follow._multiplicativeExpression_in_additiveExpression3698);
- multiplicativeExpression73=multiplicativeExpression();
- PopFollow();
-
- adaptor.AddChild(root_0, multiplicativeExpression73.Tree);
- DebugLocation(756, 29);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:756:29: ( ( ADD | SUB ) multiplicativeExpression )*
- try { DebugEnterSubRule(20);
- while (true)
- {
- int alt20=2;
- try { DebugEnterDecision(20, decisionCanBacktrack[20]);
- int LA20_0 = input.LA(1);
-
- if (((LA20_0>=ADD && LA20_0<=SUB)))
- {
- alt20=1;
- }
-
-
- } finally { DebugExitDecision(20); }
- switch ( alt20 )
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:756:31: ( ADD | SUB ) multiplicativeExpression
- {
- DebugLocation(756, 31);
- set74=(IToken)input.LT(1);
- set74=(IToken)input.LT(1);
- if ((input.LA(1)>=ADD && input.LA(1)<=SUB))
- {
- input.Consume();
- root_0 = (object)adaptor.BecomeRoot((object)adaptor.Create(set74), root_0);
- state.errorRecovery=false;
- }
- else
- {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- DebugRecognitionException(mse);
- throw mse;
- }
-
- DebugLocation(756, 46);
- PushFollow(Follow._multiplicativeExpression_in_additiveExpression3713);
- multiplicativeExpression75=multiplicativeExpression();
- PopFollow();
-
- adaptor.AddChild(root_0, multiplicativeExpression75.Tree);
-
- }
- break;
-
- default:
- goto loop20;
- }
- }
-
- loop20:
- ;
-
- } finally { DebugExitSubRule(20); }
-
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(757, 1);
- } finally { DebugExitRule(GrammarFileName, "additiveExpression"); }
- return retval;
-
- }
- // $ANTLR end "additiveExpression"
-
- public class shiftExpression_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_shiftExpression() {}
- protected virtual void Leave_shiftExpression() {}
-
- // $ANTLR start "shiftExpression"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:763:1: shiftExpression : additiveExpression ( ( SHL | SHR | SHU ) additiveExpression )* ;
- [GrammarRule("shiftExpression")]
- private ES3Parser.shiftExpression_return shiftExpression()
- {
-
- ES3Parser.shiftExpression_return retval = new ES3Parser.shiftExpression_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken set77=null;
- ES3Parser.additiveExpression_return additiveExpression76 = default(ES3Parser.additiveExpression_return);
- ES3Parser.additiveExpression_return additiveExpression78 = default(ES3Parser.additiveExpression_return);
-
- object set77_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "shiftExpression");
- DebugLocation(763, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:764:2: ( additiveExpression ( ( SHL | SHR | SHU ) additiveExpression )* )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:764:4: additiveExpression ( ( SHL | SHR | SHU ) additiveExpression )*
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(764, 4);
- PushFollow(Follow._additiveExpression_in_shiftExpression3732);
- additiveExpression76=additiveExpression();
- PopFollow();
-
- adaptor.AddChild(root_0, additiveExpression76.Tree);
- DebugLocation(764, 23);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:764:23: ( ( SHL | SHR | SHU ) additiveExpression )*
- try { DebugEnterSubRule(21);
- while (true)
- {
- int alt21=2;
- try { DebugEnterDecision(21, decisionCanBacktrack[21]);
- int LA21_0 = input.LA(1);
-
- if (((LA21_0>=SHL && LA21_0<=SHU)))
- {
- alt21=1;
- }
-
-
- } finally { DebugExitDecision(21); }
- switch ( alt21 )
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:764:25: ( SHL | SHR | SHU ) additiveExpression
- {
- DebugLocation(764, 25);
- set77=(IToken)input.LT(1);
- set77=(IToken)input.LT(1);
- if ((input.LA(1)>=SHL && input.LA(1)<=SHU))
- {
- input.Consume();
- root_0 = (object)adaptor.BecomeRoot((object)adaptor.Create(set77), root_0);
- state.errorRecovery=false;
- }
- else
- {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- DebugRecognitionException(mse);
- throw mse;
- }
-
- DebugLocation(764, 46);
- PushFollow(Follow._additiveExpression_in_shiftExpression3751);
- additiveExpression78=additiveExpression();
- PopFollow();
-
- adaptor.AddChild(root_0, additiveExpression78.Tree);
-
- }
- break;
-
- default:
- goto loop21;
- }
- }
-
- loop21:
- ;
-
- } finally { DebugExitSubRule(21); }
-
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(765, 1);
- } finally { DebugExitRule(GrammarFileName, "shiftExpression"); }
- return retval;
-
- }
- // $ANTLR end "shiftExpression"
-
- public class relationalExpression_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_relationalExpression() {}
- protected virtual void Leave_relationalExpression() {}
-
- // $ANTLR start "relationalExpression"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:771:1: relationalExpression : shiftExpression ( ( LT | GT | LTE | GTE | INSTANCEOF | IN ) shiftExpression )* ;
- [GrammarRule("relationalExpression")]
- private ES3Parser.relationalExpression_return relationalExpression()
- {
-
- ES3Parser.relationalExpression_return retval = new ES3Parser.relationalExpression_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken set80=null;
- ES3Parser.shiftExpression_return shiftExpression79 = default(ES3Parser.shiftExpression_return);
- ES3Parser.shiftExpression_return shiftExpression81 = default(ES3Parser.shiftExpression_return);
-
- object set80_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "relationalExpression");
- DebugLocation(771, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:772:2: ( shiftExpression ( ( LT | GT | LTE | GTE | INSTANCEOF | IN ) shiftExpression )* )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:772:4: shiftExpression ( ( LT | GT | LTE | GTE | INSTANCEOF | IN ) shiftExpression )*
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(772, 4);
- PushFollow(Follow._shiftExpression_in_relationalExpression3770);
- shiftExpression79=shiftExpression();
- PopFollow();
-
- adaptor.AddChild(root_0, shiftExpression79.Tree);
- DebugLocation(772, 20);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:772:20: ( ( LT | GT | LTE | GTE | INSTANCEOF | IN ) shiftExpression )*
- try { DebugEnterSubRule(22);
- while (true)
- {
- int alt22=2;
- try { DebugEnterDecision(22, decisionCanBacktrack[22]);
- int LA22_0 = input.LA(1);
-
- if (((LA22_0>=IN && LA22_0<=INSTANCEOF)||(LA22_0>=LT && LA22_0<=GTE)))
- {
- alt22=1;
- }
-
-
- } finally { DebugExitDecision(22); }
- switch ( alt22 )
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:772:22: ( LT | GT | LTE | GTE | INSTANCEOF | IN ) shiftExpression
- {
- DebugLocation(772, 22);
- set80=(IToken)input.LT(1);
- set80=(IToken)input.LT(1);
- if ((input.LA(1)>=IN && input.LA(1)<=INSTANCEOF)||(input.LA(1)>=LT && input.LA(1)<=GTE))
- {
- input.Consume();
- root_0 = (object)adaptor.BecomeRoot((object)adaptor.Create(set80), root_0);
- state.errorRecovery=false;
- }
- else
- {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- DebugRecognitionException(mse);
- throw mse;
- }
-
- DebugLocation(772, 65);
- PushFollow(Follow._shiftExpression_in_relationalExpression3801);
- shiftExpression81=shiftExpression();
- PopFollow();
-
- adaptor.AddChild(root_0, shiftExpression81.Tree);
-
- }
- break;
-
- default:
- goto loop22;
- }
- }
-
- loop22:
- ;
-
- } finally { DebugExitSubRule(22); }
-
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(773, 1);
- } finally { DebugExitRule(GrammarFileName, "relationalExpression"); }
- return retval;
-
- }
- // $ANTLR end "relationalExpression"
-
- public class relationalExpressionNoIn_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_relationalExpressionNoIn() {}
- protected virtual void Leave_relationalExpressionNoIn() {}
-
- // $ANTLR start "relationalExpressionNoIn"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:775:1: relationalExpressionNoIn : shiftExpression ( ( LT | GT | LTE | GTE | INSTANCEOF ) shiftExpression )* ;
- [GrammarRule("relationalExpressionNoIn")]
- private ES3Parser.relationalExpressionNoIn_return relationalExpressionNoIn()
- {
-
- ES3Parser.relationalExpressionNoIn_return retval = new ES3Parser.relationalExpressionNoIn_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken set83=null;
- ES3Parser.shiftExpression_return shiftExpression82 = default(ES3Parser.shiftExpression_return);
- ES3Parser.shiftExpression_return shiftExpression84 = default(ES3Parser.shiftExpression_return);
-
- object set83_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "relationalExpressionNoIn");
- DebugLocation(775, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:776:2: ( shiftExpression ( ( LT | GT | LTE | GTE | INSTANCEOF ) shiftExpression )* )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:776:4: shiftExpression ( ( LT | GT | LTE | GTE | INSTANCEOF ) shiftExpression )*
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(776, 4);
- PushFollow(Follow._shiftExpression_in_relationalExpressionNoIn3815);
- shiftExpression82=shiftExpression();
- PopFollow();
-
- adaptor.AddChild(root_0, shiftExpression82.Tree);
- DebugLocation(776, 20);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:776:20: ( ( LT | GT | LTE | GTE | INSTANCEOF ) shiftExpression )*
- try { DebugEnterSubRule(23);
- while (true)
- {
- int alt23=2;
- try { DebugEnterDecision(23, decisionCanBacktrack[23]);
- int LA23_0 = input.LA(1);
-
- if ((LA23_0==INSTANCEOF||(LA23_0>=LT && LA23_0<=GTE)))
- {
- alt23=1;
- }
-
-
- } finally { DebugExitDecision(23); }
- switch ( alt23 )
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:776:22: ( LT | GT | LTE | GTE | INSTANCEOF ) shiftExpression
- {
- DebugLocation(776, 22);
- set83=(IToken)input.LT(1);
- set83=(IToken)input.LT(1);
- if (input.LA(1)==INSTANCEOF||(input.LA(1)>=LT && input.LA(1)<=GTE))
- {
- input.Consume();
- root_0 = (object)adaptor.BecomeRoot((object)adaptor.Create(set83), root_0);
- state.errorRecovery=false;
- }
- else
- {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- DebugRecognitionException(mse);
- throw mse;
- }
-
- DebugLocation(776, 60);
- PushFollow(Follow._shiftExpression_in_relationalExpressionNoIn3842);
- shiftExpression84=shiftExpression();
- PopFollow();
-
- adaptor.AddChild(root_0, shiftExpression84.Tree);
-
- }
- break;
-
- default:
- goto loop23;
- }
- }
-
- loop23:
- ;
-
- } finally { DebugExitSubRule(23); }
-
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(777, 1);
- } finally { DebugExitRule(GrammarFileName, "relationalExpressionNoIn"); }
- return retval;
-
- }
- // $ANTLR end "relationalExpressionNoIn"
-
- public class equalityExpression_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_equalityExpression() {}
- protected virtual void Leave_equalityExpression() {}
-
- // $ANTLR start "equalityExpression"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:783:1: equalityExpression : relationalExpression ( ( EQ | NEQ | SAME | NSAME ) relationalExpression )* ;
- [GrammarRule("equalityExpression")]
- private ES3Parser.equalityExpression_return equalityExpression()
- {
-
- ES3Parser.equalityExpression_return retval = new ES3Parser.equalityExpression_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken set86=null;
- ES3Parser.relationalExpression_return relationalExpression85 = default(ES3Parser.relationalExpression_return);
- ES3Parser.relationalExpression_return relationalExpression87 = default(ES3Parser.relationalExpression_return);
-
- object set86_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "equalityExpression");
- DebugLocation(783, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:784:2: ( relationalExpression ( ( EQ | NEQ | SAME | NSAME ) relationalExpression )* )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:784:4: relationalExpression ( ( EQ | NEQ | SAME | NSAME ) relationalExpression )*
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(784, 4);
- PushFollow(Follow._relationalExpression_in_equalityExpression3861);
- relationalExpression85=relationalExpression();
- PopFollow();
-
- adaptor.AddChild(root_0, relationalExpression85.Tree);
- DebugLocation(784, 25);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:784:25: ( ( EQ | NEQ | SAME | NSAME ) relationalExpression )*
- try { DebugEnterSubRule(24);
- while (true)
- {
- int alt24=2;
- try { DebugEnterDecision(24, decisionCanBacktrack[24]);
- int LA24_0 = input.LA(1);
-
- if (((LA24_0>=EQ && LA24_0<=NSAME)))
- {
- alt24=1;
- }
-
-
- } finally { DebugExitDecision(24); }
- switch ( alt24 )
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:784:27: ( EQ | NEQ | SAME | NSAME ) relationalExpression
- {
- DebugLocation(784, 27);
- set86=(IToken)input.LT(1);
- set86=(IToken)input.LT(1);
- if ((input.LA(1)>=EQ && input.LA(1)<=NSAME))
- {
- input.Consume();
- root_0 = (object)adaptor.BecomeRoot((object)adaptor.Create(set86), root_0);
- state.errorRecovery=false;
- }
- else
- {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- DebugRecognitionException(mse);
- throw mse;
- }
-
- DebugLocation(784, 56);
- PushFollow(Follow._relationalExpression_in_equalityExpression3884);
- relationalExpression87=relationalExpression();
- PopFollow();
-
- adaptor.AddChild(root_0, relationalExpression87.Tree);
-
- }
- break;
-
- default:
- goto loop24;
- }
- }
-
- loop24:
- ;
-
- } finally { DebugExitSubRule(24); }
-
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(785, 1);
- } finally { DebugExitRule(GrammarFileName, "equalityExpression"); }
- return retval;
-
- }
- // $ANTLR end "equalityExpression"
-
- public class equalityExpressionNoIn_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_equalityExpressionNoIn() {}
- protected virtual void Leave_equalityExpressionNoIn() {}
-
- // $ANTLR start "equalityExpressionNoIn"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:787:1: equalityExpressionNoIn : relationalExpressionNoIn ( ( EQ | NEQ | SAME | NSAME ) relationalExpressionNoIn )* ;
- [GrammarRule("equalityExpressionNoIn")]
- private ES3Parser.equalityExpressionNoIn_return equalityExpressionNoIn()
- {
-
- ES3Parser.equalityExpressionNoIn_return retval = new ES3Parser.equalityExpressionNoIn_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken set89=null;
- ES3Parser.relationalExpressionNoIn_return relationalExpressionNoIn88 = default(ES3Parser.relationalExpressionNoIn_return);
- ES3Parser.relationalExpressionNoIn_return relationalExpressionNoIn90 = default(ES3Parser.relationalExpressionNoIn_return);
-
- object set89_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "equalityExpressionNoIn");
- DebugLocation(787, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:788:2: ( relationalExpressionNoIn ( ( EQ | NEQ | SAME | NSAME ) relationalExpressionNoIn )* )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:788:4: relationalExpressionNoIn ( ( EQ | NEQ | SAME | NSAME ) relationalExpressionNoIn )*
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(788, 4);
- PushFollow(Follow._relationalExpressionNoIn_in_equalityExpressionNoIn3898);
- relationalExpressionNoIn88=relationalExpressionNoIn();
- PopFollow();
-
- adaptor.AddChild(root_0, relationalExpressionNoIn88.Tree);
- DebugLocation(788, 29);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:788:29: ( ( EQ | NEQ | SAME | NSAME ) relationalExpressionNoIn )*
- try { DebugEnterSubRule(25);
- while (true)
- {
- int alt25=2;
- try { DebugEnterDecision(25, decisionCanBacktrack[25]);
- int LA25_0 = input.LA(1);
-
- if (((LA25_0>=EQ && LA25_0<=NSAME)))
- {
- alt25=1;
- }
-
-
- } finally { DebugExitDecision(25); }
- switch ( alt25 )
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:788:31: ( EQ | NEQ | SAME | NSAME ) relationalExpressionNoIn
- {
- DebugLocation(788, 31);
- set89=(IToken)input.LT(1);
- set89=(IToken)input.LT(1);
- if ((input.LA(1)>=EQ && input.LA(1)<=NSAME))
- {
- input.Consume();
- root_0 = (object)adaptor.BecomeRoot((object)adaptor.Create(set89), root_0);
- state.errorRecovery=false;
- }
- else
- {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- DebugRecognitionException(mse);
- throw mse;
- }
-
- DebugLocation(788, 60);
- PushFollow(Follow._relationalExpressionNoIn_in_equalityExpressionNoIn3921);
- relationalExpressionNoIn90=relationalExpressionNoIn();
- PopFollow();
-
- adaptor.AddChild(root_0, relationalExpressionNoIn90.Tree);
-
- }
- break;
-
- default:
- goto loop25;
- }
- }
-
- loop25:
- ;
-
- } finally { DebugExitSubRule(25); }
-
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(789, 1);
- } finally { DebugExitRule(GrammarFileName, "equalityExpressionNoIn"); }
- return retval;
-
- }
- // $ANTLR end "equalityExpressionNoIn"
-
- public class bitwiseANDExpression_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_bitwiseANDExpression() {}
- protected virtual void Leave_bitwiseANDExpression() {}
-
- // $ANTLR start "bitwiseANDExpression"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:795:1: bitwiseANDExpression : equalityExpression ( AND equalityExpression )* ;
- [GrammarRule("bitwiseANDExpression")]
- private ES3Parser.bitwiseANDExpression_return bitwiseANDExpression()
- {
-
- ES3Parser.bitwiseANDExpression_return retval = new ES3Parser.bitwiseANDExpression_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken AND92=null;
- ES3Parser.equalityExpression_return equalityExpression91 = default(ES3Parser.equalityExpression_return);
- ES3Parser.equalityExpression_return equalityExpression93 = default(ES3Parser.equalityExpression_return);
-
- object AND92_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "bitwiseANDExpression");
- DebugLocation(795, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:796:2: ( equalityExpression ( AND equalityExpression )* )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:796:4: equalityExpression ( AND equalityExpression )*
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(796, 4);
- PushFollow(Follow._equalityExpression_in_bitwiseANDExpression3941);
- equalityExpression91=equalityExpression();
- PopFollow();
-
- adaptor.AddChild(root_0, equalityExpression91.Tree);
- DebugLocation(796, 23);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:796:23: ( AND equalityExpression )*
- try { DebugEnterSubRule(26);
- while (true)
- {
- int alt26=2;
- try { DebugEnterDecision(26, decisionCanBacktrack[26]);
- int LA26_0 = input.LA(1);
-
- if ((LA26_0==AND))
- {
- alt26=1;
- }
-
-
- } finally { DebugExitDecision(26); }
- switch ( alt26 )
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:796:25: AND equalityExpression
- {
- DebugLocation(796, 28);
- AND92=(IToken)Match(input,AND,Follow._AND_in_bitwiseANDExpression3945);
- AND92_tree = (object)adaptor.Create(AND92);
- root_0 = (object)adaptor.BecomeRoot(AND92_tree, root_0);
-
- DebugLocation(796, 30);
- PushFollow(Follow._equalityExpression_in_bitwiseANDExpression3948);
- equalityExpression93=equalityExpression();
- PopFollow();
-
- adaptor.AddChild(root_0, equalityExpression93.Tree);
-
- }
- break;
-
- default:
- goto loop26;
- }
- }
-
- loop26:
- ;
-
- } finally { DebugExitSubRule(26); }
-
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(797, 1);
- } finally { DebugExitRule(GrammarFileName, "bitwiseANDExpression"); }
- return retval;
-
- }
- // $ANTLR end "bitwiseANDExpression"
-
- public class bitwiseANDExpressionNoIn_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_bitwiseANDExpressionNoIn() {}
- protected virtual void Leave_bitwiseANDExpressionNoIn() {}
-
- // $ANTLR start "bitwiseANDExpressionNoIn"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:799:1: bitwiseANDExpressionNoIn : equalityExpressionNoIn ( AND equalityExpressionNoIn )* ;
- [GrammarRule("bitwiseANDExpressionNoIn")]
- private ES3Parser.bitwiseANDExpressionNoIn_return bitwiseANDExpressionNoIn()
- {
-
- ES3Parser.bitwiseANDExpressionNoIn_return retval = new ES3Parser.bitwiseANDExpressionNoIn_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken AND95=null;
- ES3Parser.equalityExpressionNoIn_return equalityExpressionNoIn94 = default(ES3Parser.equalityExpressionNoIn_return);
- ES3Parser.equalityExpressionNoIn_return equalityExpressionNoIn96 = default(ES3Parser.equalityExpressionNoIn_return);
-
- object AND95_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "bitwiseANDExpressionNoIn");
- DebugLocation(799, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:800:2: ( equalityExpressionNoIn ( AND equalityExpressionNoIn )* )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:800:4: equalityExpressionNoIn ( AND equalityExpressionNoIn )*
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(800, 4);
- PushFollow(Follow._equalityExpressionNoIn_in_bitwiseANDExpressionNoIn3962);
- equalityExpressionNoIn94=equalityExpressionNoIn();
- PopFollow();
-
- adaptor.AddChild(root_0, equalityExpressionNoIn94.Tree);
- DebugLocation(800, 27);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:800:27: ( AND equalityExpressionNoIn )*
- try { DebugEnterSubRule(27);
- while (true)
- {
- int alt27=2;
- try { DebugEnterDecision(27, decisionCanBacktrack[27]);
- int LA27_0 = input.LA(1);
-
- if ((LA27_0==AND))
- {
- alt27=1;
- }
-
-
- } finally { DebugExitDecision(27); }
- switch ( alt27 )
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:800:29: AND equalityExpressionNoIn
- {
- DebugLocation(800, 32);
- AND95=(IToken)Match(input,AND,Follow._AND_in_bitwiseANDExpressionNoIn3966);
- AND95_tree = (object)adaptor.Create(AND95);
- root_0 = (object)adaptor.BecomeRoot(AND95_tree, root_0);
-
- DebugLocation(800, 34);
- PushFollow(Follow._equalityExpressionNoIn_in_bitwiseANDExpressionNoIn3969);
- equalityExpressionNoIn96=equalityExpressionNoIn();
- PopFollow();
-
- adaptor.AddChild(root_0, equalityExpressionNoIn96.Tree);
-
- }
- break;
-
- default:
- goto loop27;
- }
- }
-
- loop27:
- ;
-
- } finally { DebugExitSubRule(27); }
-
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(801, 1);
- } finally { DebugExitRule(GrammarFileName, "bitwiseANDExpressionNoIn"); }
- return retval;
-
- }
- // $ANTLR end "bitwiseANDExpressionNoIn"
-
- public class bitwiseXORExpression_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_bitwiseXORExpression() {}
- protected virtual void Leave_bitwiseXORExpression() {}
-
- // $ANTLR start "bitwiseXORExpression"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:803:1: bitwiseXORExpression : bitwiseANDExpression ( XOR bitwiseANDExpression )* ;
- [GrammarRule("bitwiseXORExpression")]
- private ES3Parser.bitwiseXORExpression_return bitwiseXORExpression()
- {
-
- ES3Parser.bitwiseXORExpression_return retval = new ES3Parser.bitwiseXORExpression_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken XOR98=null;
- ES3Parser.bitwiseANDExpression_return bitwiseANDExpression97 = default(ES3Parser.bitwiseANDExpression_return);
- ES3Parser.bitwiseANDExpression_return bitwiseANDExpression99 = default(ES3Parser.bitwiseANDExpression_return);
-
- object XOR98_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "bitwiseXORExpression");
- DebugLocation(803, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:804:2: ( bitwiseANDExpression ( XOR bitwiseANDExpression )* )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:804:4: bitwiseANDExpression ( XOR bitwiseANDExpression )*
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(804, 4);
- PushFollow(Follow._bitwiseANDExpression_in_bitwiseXORExpression3985);
- bitwiseANDExpression97=bitwiseANDExpression();
- PopFollow();
-
- adaptor.AddChild(root_0, bitwiseANDExpression97.Tree);
- DebugLocation(804, 25);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:804:25: ( XOR bitwiseANDExpression )*
- try { DebugEnterSubRule(28);
- while (true)
- {
- int alt28=2;
- try { DebugEnterDecision(28, decisionCanBacktrack[28]);
- int LA28_0 = input.LA(1);
-
- if ((LA28_0==XOR))
- {
- alt28=1;
- }
-
-
- } finally { DebugExitDecision(28); }
- switch ( alt28 )
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:804:27: XOR bitwiseANDExpression
- {
- DebugLocation(804, 30);
- XOR98=(IToken)Match(input,XOR,Follow._XOR_in_bitwiseXORExpression3989);
- XOR98_tree = (object)adaptor.Create(XOR98);
- root_0 = (object)adaptor.BecomeRoot(XOR98_tree, root_0);
-
- DebugLocation(804, 32);
- PushFollow(Follow._bitwiseANDExpression_in_bitwiseXORExpression3992);
- bitwiseANDExpression99=bitwiseANDExpression();
- PopFollow();
-
- adaptor.AddChild(root_0, bitwiseANDExpression99.Tree);
-
- }
- break;
-
- default:
- goto loop28;
- }
- }
-
- loop28:
- ;
-
- } finally { DebugExitSubRule(28); }
-
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(805, 1);
- } finally { DebugExitRule(GrammarFileName, "bitwiseXORExpression"); }
- return retval;
-
- }
- // $ANTLR end "bitwiseXORExpression"
-
- public class bitwiseXORExpressionNoIn_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_bitwiseXORExpressionNoIn() {}
- protected virtual void Leave_bitwiseXORExpressionNoIn() {}
-
- // $ANTLR start "bitwiseXORExpressionNoIn"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:807:1: bitwiseXORExpressionNoIn : bitwiseANDExpressionNoIn ( XOR bitwiseANDExpressionNoIn )* ;
- [GrammarRule("bitwiseXORExpressionNoIn")]
- private ES3Parser.bitwiseXORExpressionNoIn_return bitwiseXORExpressionNoIn()
- {
-
- ES3Parser.bitwiseXORExpressionNoIn_return retval = new ES3Parser.bitwiseXORExpressionNoIn_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken XOR101=null;
- ES3Parser.bitwiseANDExpressionNoIn_return bitwiseANDExpressionNoIn100 = default(ES3Parser.bitwiseANDExpressionNoIn_return);
- ES3Parser.bitwiseANDExpressionNoIn_return bitwiseANDExpressionNoIn102 = default(ES3Parser.bitwiseANDExpressionNoIn_return);
-
- object XOR101_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "bitwiseXORExpressionNoIn");
- DebugLocation(807, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:808:2: ( bitwiseANDExpressionNoIn ( XOR bitwiseANDExpressionNoIn )* )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:808:4: bitwiseANDExpressionNoIn ( XOR bitwiseANDExpressionNoIn )*
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(808, 4);
- PushFollow(Follow._bitwiseANDExpressionNoIn_in_bitwiseXORExpressionNoIn4008);
- bitwiseANDExpressionNoIn100=bitwiseANDExpressionNoIn();
- PopFollow();
-
- adaptor.AddChild(root_0, bitwiseANDExpressionNoIn100.Tree);
- DebugLocation(808, 29);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:808:29: ( XOR bitwiseANDExpressionNoIn )*
- try { DebugEnterSubRule(29);
- while (true)
- {
- int alt29=2;
- try { DebugEnterDecision(29, decisionCanBacktrack[29]);
- int LA29_0 = input.LA(1);
-
- if ((LA29_0==XOR))
- {
- alt29=1;
- }
-
-
- } finally { DebugExitDecision(29); }
- switch ( alt29 )
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:808:31: XOR bitwiseANDExpressionNoIn
- {
- DebugLocation(808, 34);
- XOR101=(IToken)Match(input,XOR,Follow._XOR_in_bitwiseXORExpressionNoIn4012);
- XOR101_tree = (object)adaptor.Create(XOR101);
- root_0 = (object)adaptor.BecomeRoot(XOR101_tree, root_0);
-
- DebugLocation(808, 36);
- PushFollow(Follow._bitwiseANDExpressionNoIn_in_bitwiseXORExpressionNoIn4015);
- bitwiseANDExpressionNoIn102=bitwiseANDExpressionNoIn();
- PopFollow();
-
- adaptor.AddChild(root_0, bitwiseANDExpressionNoIn102.Tree);
-
- }
- break;
-
- default:
- goto loop29;
- }
- }
-
- loop29:
- ;
-
- } finally { DebugExitSubRule(29); }
-
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(809, 1);
- } finally { DebugExitRule(GrammarFileName, "bitwiseXORExpressionNoIn"); }
- return retval;
-
- }
- // $ANTLR end "bitwiseXORExpressionNoIn"
-
- public class bitwiseORExpression_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_bitwiseORExpression() {}
- protected virtual void Leave_bitwiseORExpression() {}
-
- // $ANTLR start "bitwiseORExpression"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:811:1: bitwiseORExpression : bitwiseXORExpression ( OR bitwiseXORExpression )* ;
- [GrammarRule("bitwiseORExpression")]
- private ES3Parser.bitwiseORExpression_return bitwiseORExpression()
- {
-
- ES3Parser.bitwiseORExpression_return retval = new ES3Parser.bitwiseORExpression_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken OR104=null;
- ES3Parser.bitwiseXORExpression_return bitwiseXORExpression103 = default(ES3Parser.bitwiseXORExpression_return);
- ES3Parser.bitwiseXORExpression_return bitwiseXORExpression105 = default(ES3Parser.bitwiseXORExpression_return);
-
- object OR104_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "bitwiseORExpression");
- DebugLocation(811, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:812:2: ( bitwiseXORExpression ( OR bitwiseXORExpression )* )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:812:4: bitwiseXORExpression ( OR bitwiseXORExpression )*
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(812, 4);
- PushFollow(Follow._bitwiseXORExpression_in_bitwiseORExpression4030);
- bitwiseXORExpression103=bitwiseXORExpression();
- PopFollow();
-
- adaptor.AddChild(root_0, bitwiseXORExpression103.Tree);
- DebugLocation(812, 25);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:812:25: ( OR bitwiseXORExpression )*
- try { DebugEnterSubRule(30);
- while (true)
- {
- int alt30=2;
- try { DebugEnterDecision(30, decisionCanBacktrack[30]);
- int LA30_0 = input.LA(1);
-
- if ((LA30_0==OR))
- {
- alt30=1;
- }
-
-
- } finally { DebugExitDecision(30); }
- switch ( alt30 )
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:812:27: OR bitwiseXORExpression
- {
- DebugLocation(812, 29);
- OR104=(IToken)Match(input,OR,Follow._OR_in_bitwiseORExpression4034);
- OR104_tree = (object)adaptor.Create(OR104);
- root_0 = (object)adaptor.BecomeRoot(OR104_tree, root_0);
-
- DebugLocation(812, 31);
- PushFollow(Follow._bitwiseXORExpression_in_bitwiseORExpression4037);
- bitwiseXORExpression105=bitwiseXORExpression();
- PopFollow();
-
- adaptor.AddChild(root_0, bitwiseXORExpression105.Tree);
-
- }
- break;
-
- default:
- goto loop30;
- }
- }
-
- loop30:
- ;
-
- } finally { DebugExitSubRule(30); }
-
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(813, 1);
- } finally { DebugExitRule(GrammarFileName, "bitwiseORExpression"); }
- return retval;
-
- }
- // $ANTLR end "bitwiseORExpression"
-
- public class bitwiseORExpressionNoIn_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_bitwiseORExpressionNoIn() {}
- protected virtual void Leave_bitwiseORExpressionNoIn() {}
-
- // $ANTLR start "bitwiseORExpressionNoIn"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:815:1: bitwiseORExpressionNoIn : bitwiseXORExpressionNoIn ( OR bitwiseXORExpressionNoIn )* ;
- [GrammarRule("bitwiseORExpressionNoIn")]
- private ES3Parser.bitwiseORExpressionNoIn_return bitwiseORExpressionNoIn()
- {
-
- ES3Parser.bitwiseORExpressionNoIn_return retval = new ES3Parser.bitwiseORExpressionNoIn_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken OR107=null;
- ES3Parser.bitwiseXORExpressionNoIn_return bitwiseXORExpressionNoIn106 = default(ES3Parser.bitwiseXORExpressionNoIn_return);
- ES3Parser.bitwiseXORExpressionNoIn_return bitwiseXORExpressionNoIn108 = default(ES3Parser.bitwiseXORExpressionNoIn_return);
-
- object OR107_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "bitwiseORExpressionNoIn");
- DebugLocation(815, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:816:2: ( bitwiseXORExpressionNoIn ( OR bitwiseXORExpressionNoIn )* )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:816:4: bitwiseXORExpressionNoIn ( OR bitwiseXORExpressionNoIn )*
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(816, 4);
- PushFollow(Follow._bitwiseXORExpressionNoIn_in_bitwiseORExpressionNoIn4052);
- bitwiseXORExpressionNoIn106=bitwiseXORExpressionNoIn();
- PopFollow();
-
- adaptor.AddChild(root_0, bitwiseXORExpressionNoIn106.Tree);
- DebugLocation(816, 29);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:816:29: ( OR bitwiseXORExpressionNoIn )*
- try { DebugEnterSubRule(31);
- while (true)
- {
- int alt31=2;
- try { DebugEnterDecision(31, decisionCanBacktrack[31]);
- int LA31_0 = input.LA(1);
-
- if ((LA31_0==OR))
- {
- alt31=1;
- }
-
-
- } finally { DebugExitDecision(31); }
- switch ( alt31 )
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:816:31: OR bitwiseXORExpressionNoIn
- {
- DebugLocation(816, 33);
- OR107=(IToken)Match(input,OR,Follow._OR_in_bitwiseORExpressionNoIn4056);
- OR107_tree = (object)adaptor.Create(OR107);
- root_0 = (object)adaptor.BecomeRoot(OR107_tree, root_0);
-
- DebugLocation(816, 35);
- PushFollow(Follow._bitwiseXORExpressionNoIn_in_bitwiseORExpressionNoIn4059);
- bitwiseXORExpressionNoIn108=bitwiseXORExpressionNoIn();
- PopFollow();
-
- adaptor.AddChild(root_0, bitwiseXORExpressionNoIn108.Tree);
-
- }
- break;
-
- default:
- goto loop31;
- }
- }
-
- loop31:
- ;
-
- } finally { DebugExitSubRule(31); }
-
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(817, 1);
- } finally { DebugExitRule(GrammarFileName, "bitwiseORExpressionNoIn"); }
- return retval;
-
- }
- // $ANTLR end "bitwiseORExpressionNoIn"
-
- public class logicalANDExpression_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_logicalANDExpression() {}
- protected virtual void Leave_logicalANDExpression() {}
-
- // $ANTLR start "logicalANDExpression"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:823:1: logicalANDExpression : bitwiseORExpression ( LAND bitwiseORExpression )* ;
- [GrammarRule("logicalANDExpression")]
- private ES3Parser.logicalANDExpression_return logicalANDExpression()
- {
-
- ES3Parser.logicalANDExpression_return retval = new ES3Parser.logicalANDExpression_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken LAND110=null;
- ES3Parser.bitwiseORExpression_return bitwiseORExpression109 = default(ES3Parser.bitwiseORExpression_return);
- ES3Parser.bitwiseORExpression_return bitwiseORExpression111 = default(ES3Parser.bitwiseORExpression_return);
-
- object LAND110_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "logicalANDExpression");
- DebugLocation(823, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:824:2: ( bitwiseORExpression ( LAND bitwiseORExpression )* )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:824:4: bitwiseORExpression ( LAND bitwiseORExpression )*
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(824, 4);
- PushFollow(Follow._bitwiseORExpression_in_logicalANDExpression4078);
- bitwiseORExpression109=bitwiseORExpression();
- PopFollow();
-
- adaptor.AddChild(root_0, bitwiseORExpression109.Tree);
- DebugLocation(824, 24);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:824:24: ( LAND bitwiseORExpression )*
- try { DebugEnterSubRule(32);
- while (true)
- {
- int alt32=2;
- try { DebugEnterDecision(32, decisionCanBacktrack[32]);
- int LA32_0 = input.LA(1);
-
- if ((LA32_0==LAND))
- {
- alt32=1;
- }
-
-
- } finally { DebugExitDecision(32); }
- switch ( alt32 )
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:824:26: LAND bitwiseORExpression
- {
- DebugLocation(824, 30);
- LAND110=(IToken)Match(input,LAND,Follow._LAND_in_logicalANDExpression4082);
- LAND110_tree = (object)adaptor.Create(LAND110);
- root_0 = (object)adaptor.BecomeRoot(LAND110_tree, root_0);
-
- DebugLocation(824, 32);
- PushFollow(Follow._bitwiseORExpression_in_logicalANDExpression4085);
- bitwiseORExpression111=bitwiseORExpression();
- PopFollow();
-
- adaptor.AddChild(root_0, bitwiseORExpression111.Tree);
-
- }
- break;
-
- default:
- goto loop32;
- }
- }
-
- loop32:
- ;
-
- } finally { DebugExitSubRule(32); }
-
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(825, 1);
- } finally { DebugExitRule(GrammarFileName, "logicalANDExpression"); }
- return retval;
-
- }
- // $ANTLR end "logicalANDExpression"
-
- public class logicalANDExpressionNoIn_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_logicalANDExpressionNoIn() {}
- protected virtual void Leave_logicalANDExpressionNoIn() {}
-
- // $ANTLR start "logicalANDExpressionNoIn"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:827:1: logicalANDExpressionNoIn : bitwiseORExpressionNoIn ( LAND bitwiseORExpressionNoIn )* ;
- [GrammarRule("logicalANDExpressionNoIn")]
- private ES3Parser.logicalANDExpressionNoIn_return logicalANDExpressionNoIn()
- {
-
- ES3Parser.logicalANDExpressionNoIn_return retval = new ES3Parser.logicalANDExpressionNoIn_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken LAND113=null;
- ES3Parser.bitwiseORExpressionNoIn_return bitwiseORExpressionNoIn112 = default(ES3Parser.bitwiseORExpressionNoIn_return);
- ES3Parser.bitwiseORExpressionNoIn_return bitwiseORExpressionNoIn114 = default(ES3Parser.bitwiseORExpressionNoIn_return);
-
- object LAND113_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "logicalANDExpressionNoIn");
- DebugLocation(827, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:828:2: ( bitwiseORExpressionNoIn ( LAND bitwiseORExpressionNoIn )* )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:828:4: bitwiseORExpressionNoIn ( LAND bitwiseORExpressionNoIn )*
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(828, 4);
- PushFollow(Follow._bitwiseORExpressionNoIn_in_logicalANDExpressionNoIn4099);
- bitwiseORExpressionNoIn112=bitwiseORExpressionNoIn();
- PopFollow();
-
- adaptor.AddChild(root_0, bitwiseORExpressionNoIn112.Tree);
- DebugLocation(828, 28);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:828:28: ( LAND bitwiseORExpressionNoIn )*
- try { DebugEnterSubRule(33);
- while (true)
- {
- int alt33=2;
- try { DebugEnterDecision(33, decisionCanBacktrack[33]);
- int LA33_0 = input.LA(1);
-
- if ((LA33_0==LAND))
- {
- alt33=1;
- }
-
-
- } finally { DebugExitDecision(33); }
- switch ( alt33 )
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:828:30: LAND bitwiseORExpressionNoIn
- {
- DebugLocation(828, 34);
- LAND113=(IToken)Match(input,LAND,Follow._LAND_in_logicalANDExpressionNoIn4103);
- LAND113_tree = (object)adaptor.Create(LAND113);
- root_0 = (object)adaptor.BecomeRoot(LAND113_tree, root_0);
-
- DebugLocation(828, 36);
- PushFollow(Follow._bitwiseORExpressionNoIn_in_logicalANDExpressionNoIn4106);
- bitwiseORExpressionNoIn114=bitwiseORExpressionNoIn();
- PopFollow();
-
- adaptor.AddChild(root_0, bitwiseORExpressionNoIn114.Tree);
-
- }
- break;
-
- default:
- goto loop33;
- }
- }
-
- loop33:
- ;
-
- } finally { DebugExitSubRule(33); }
-
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(829, 1);
- } finally { DebugExitRule(GrammarFileName, "logicalANDExpressionNoIn"); }
- return retval;
-
- }
- // $ANTLR end "logicalANDExpressionNoIn"
-
- public class logicalORExpression_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_logicalORExpression() {}
- protected virtual void Leave_logicalORExpression() {}
-
- // $ANTLR start "logicalORExpression"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:831:1: logicalORExpression : logicalANDExpression ( LOR logicalANDExpression )* ;
- [GrammarRule("logicalORExpression")]
- private ES3Parser.logicalORExpression_return logicalORExpression()
- {
-
- ES3Parser.logicalORExpression_return retval = new ES3Parser.logicalORExpression_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken LOR116=null;
- ES3Parser.logicalANDExpression_return logicalANDExpression115 = default(ES3Parser.logicalANDExpression_return);
- ES3Parser.logicalANDExpression_return logicalANDExpression117 = default(ES3Parser.logicalANDExpression_return);
-
- object LOR116_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "logicalORExpression");
- DebugLocation(831, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:832:2: ( logicalANDExpression ( LOR logicalANDExpression )* )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:832:4: logicalANDExpression ( LOR logicalANDExpression )*
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(832, 4);
- PushFollow(Follow._logicalANDExpression_in_logicalORExpression4121);
- logicalANDExpression115=logicalANDExpression();
- PopFollow();
-
- adaptor.AddChild(root_0, logicalANDExpression115.Tree);
- DebugLocation(832, 25);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:832:25: ( LOR logicalANDExpression )*
- try { DebugEnterSubRule(34);
- while (true)
- {
- int alt34=2;
- try { DebugEnterDecision(34, decisionCanBacktrack[34]);
- int LA34_0 = input.LA(1);
-
- if ((LA34_0==LOR))
- {
- alt34=1;
- }
-
-
- } finally { DebugExitDecision(34); }
- switch ( alt34 )
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:832:27: LOR logicalANDExpression
- {
- DebugLocation(832, 30);
- LOR116=(IToken)Match(input,LOR,Follow._LOR_in_logicalORExpression4125);
- LOR116_tree = (object)adaptor.Create(LOR116);
- root_0 = (object)adaptor.BecomeRoot(LOR116_tree, root_0);
-
- DebugLocation(832, 32);
- PushFollow(Follow._logicalANDExpression_in_logicalORExpression4128);
- logicalANDExpression117=logicalANDExpression();
- PopFollow();
-
- adaptor.AddChild(root_0, logicalANDExpression117.Tree);
-
- }
- break;
-
- default:
- goto loop34;
- }
- }
-
- loop34:
- ;
-
- } finally { DebugExitSubRule(34); }
-
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(833, 1);
- } finally { DebugExitRule(GrammarFileName, "logicalORExpression"); }
- return retval;
-
- }
- // $ANTLR end "logicalORExpression"
-
- public class logicalORExpressionNoIn_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_logicalORExpressionNoIn() {}
- protected virtual void Leave_logicalORExpressionNoIn() {}
-
- // $ANTLR start "logicalORExpressionNoIn"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:835:1: logicalORExpressionNoIn : logicalANDExpressionNoIn ( LOR logicalANDExpressionNoIn )* ;
- [GrammarRule("logicalORExpressionNoIn")]
- private ES3Parser.logicalORExpressionNoIn_return logicalORExpressionNoIn()
- {
-
- ES3Parser.logicalORExpressionNoIn_return retval = new ES3Parser.logicalORExpressionNoIn_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken LOR119=null;
- ES3Parser.logicalANDExpressionNoIn_return logicalANDExpressionNoIn118 = default(ES3Parser.logicalANDExpressionNoIn_return);
- ES3Parser.logicalANDExpressionNoIn_return logicalANDExpressionNoIn120 = default(ES3Parser.logicalANDExpressionNoIn_return);
-
- object LOR119_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "logicalORExpressionNoIn");
- DebugLocation(835, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:836:2: ( logicalANDExpressionNoIn ( LOR logicalANDExpressionNoIn )* )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:836:4: logicalANDExpressionNoIn ( LOR logicalANDExpressionNoIn )*
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(836, 4);
- PushFollow(Follow._logicalANDExpressionNoIn_in_logicalORExpressionNoIn4143);
- logicalANDExpressionNoIn118=logicalANDExpressionNoIn();
- PopFollow();
-
- adaptor.AddChild(root_0, logicalANDExpressionNoIn118.Tree);
- DebugLocation(836, 29);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:836:29: ( LOR logicalANDExpressionNoIn )*
- try { DebugEnterSubRule(35);
- while (true)
- {
- int alt35=2;
- try { DebugEnterDecision(35, decisionCanBacktrack[35]);
- int LA35_0 = input.LA(1);
-
- if ((LA35_0==LOR))
- {
- alt35=1;
- }
-
-
- } finally { DebugExitDecision(35); }
- switch ( alt35 )
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:836:31: LOR logicalANDExpressionNoIn
- {
- DebugLocation(836, 34);
- LOR119=(IToken)Match(input,LOR,Follow._LOR_in_logicalORExpressionNoIn4147);
- LOR119_tree = (object)adaptor.Create(LOR119);
- root_0 = (object)adaptor.BecomeRoot(LOR119_tree, root_0);
-
- DebugLocation(836, 36);
- PushFollow(Follow._logicalANDExpressionNoIn_in_logicalORExpressionNoIn4150);
- logicalANDExpressionNoIn120=logicalANDExpressionNoIn();
- PopFollow();
-
- adaptor.AddChild(root_0, logicalANDExpressionNoIn120.Tree);
-
- }
- break;
-
- default:
- goto loop35;
- }
- }
-
- loop35:
- ;
-
- } finally { DebugExitSubRule(35); }
-
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(837, 1);
- } finally { DebugExitRule(GrammarFileName, "logicalORExpressionNoIn"); }
- return retval;
-
- }
- // $ANTLR end "logicalORExpressionNoIn"
-
- public class conditionalExpression_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_conditionalExpression() {}
- protected virtual void Leave_conditionalExpression() {}
-
- // $ANTLR start "conditionalExpression"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:843:1: conditionalExpression : logicalORExpression ( QUE assignmentExpression COLON assignmentExpression )? ;
- [GrammarRule("conditionalExpression")]
- private ES3Parser.conditionalExpression_return conditionalExpression()
- {
-
- ES3Parser.conditionalExpression_return retval = new ES3Parser.conditionalExpression_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken QUE122=null;
- IToken COLON124=null;
- ES3Parser.logicalORExpression_return logicalORExpression121 = default(ES3Parser.logicalORExpression_return);
- ES3Parser.assignmentExpression_return assignmentExpression123 = default(ES3Parser.assignmentExpression_return);
- ES3Parser.assignmentExpression_return assignmentExpression125 = default(ES3Parser.assignmentExpression_return);
-
- object QUE122_tree=null;
- object COLON124_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "conditionalExpression");
- DebugLocation(843, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:844:2: ( logicalORExpression ( QUE assignmentExpression COLON assignmentExpression )? )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:844:4: logicalORExpression ( QUE assignmentExpression COLON assignmentExpression )?
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(844, 4);
- PushFollow(Follow._logicalORExpression_in_conditionalExpression4169);
- logicalORExpression121=logicalORExpression();
- PopFollow();
-
- adaptor.AddChild(root_0, logicalORExpression121.Tree);
- DebugLocation(844, 24);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:844:24: ( QUE assignmentExpression COLON assignmentExpression )?
- int alt36=2;
- try { DebugEnterSubRule(36);
- try { DebugEnterDecision(36, decisionCanBacktrack[36]);
- int LA36_0 = input.LA(1);
-
- if ((LA36_0==QUE))
- {
- alt36=1;
- }
- } finally { DebugExitDecision(36); }
- switch (alt36)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:844:26: QUE assignmentExpression COLON assignmentExpression
- {
- DebugLocation(844, 29);
- QUE122=(IToken)Match(input,QUE,Follow._QUE_in_conditionalExpression4173);
- QUE122_tree = (object)adaptor.Create(QUE122);
- root_0 = (object)adaptor.BecomeRoot(QUE122_tree, root_0);
-
- DebugLocation(844, 31);
- PushFollow(Follow._assignmentExpression_in_conditionalExpression4176);
- assignmentExpression123=assignmentExpression();
- PopFollow();
-
- adaptor.AddChild(root_0, assignmentExpression123.Tree);
- DebugLocation(844, 57);
- COLON124=(IToken)Match(input,COLON,Follow._COLON_in_conditionalExpression4178);
- DebugLocation(844, 59);
- PushFollow(Follow._assignmentExpression_in_conditionalExpression4181);
- assignmentExpression125=assignmentExpression();
- PopFollow();
-
- adaptor.AddChild(root_0, assignmentExpression125.Tree);
-
- }
- break;
-
- }
- } finally { DebugExitSubRule(36); }
-
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(845, 1);
- } finally { DebugExitRule(GrammarFileName, "conditionalExpression"); }
- return retval;
-
- }
- // $ANTLR end "conditionalExpression"
-
- public class conditionalExpressionNoIn_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_conditionalExpressionNoIn() {}
- protected virtual void Leave_conditionalExpressionNoIn() {}
-
- // $ANTLR start "conditionalExpressionNoIn"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:847:1: conditionalExpressionNoIn : logicalORExpressionNoIn ( QUE assignmentExpressionNoIn COLON assignmentExpressionNoIn )? ;
- [GrammarRule("conditionalExpressionNoIn")]
- private ES3Parser.conditionalExpressionNoIn_return conditionalExpressionNoIn()
- {
-
- ES3Parser.conditionalExpressionNoIn_return retval = new ES3Parser.conditionalExpressionNoIn_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken QUE127=null;
- IToken COLON129=null;
- ES3Parser.logicalORExpressionNoIn_return logicalORExpressionNoIn126 = default(ES3Parser.logicalORExpressionNoIn_return);
- ES3Parser.assignmentExpressionNoIn_return assignmentExpressionNoIn128 = default(ES3Parser.assignmentExpressionNoIn_return);
- ES3Parser.assignmentExpressionNoIn_return assignmentExpressionNoIn130 = default(ES3Parser.assignmentExpressionNoIn_return);
-
- object QUE127_tree=null;
- object COLON129_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "conditionalExpressionNoIn");
- DebugLocation(847, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:848:2: ( logicalORExpressionNoIn ( QUE assignmentExpressionNoIn COLON assignmentExpressionNoIn )? )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:848:4: logicalORExpressionNoIn ( QUE assignmentExpressionNoIn COLON assignmentExpressionNoIn )?
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(848, 4);
- PushFollow(Follow._logicalORExpressionNoIn_in_conditionalExpressionNoIn4195);
- logicalORExpressionNoIn126=logicalORExpressionNoIn();
- PopFollow();
-
- adaptor.AddChild(root_0, logicalORExpressionNoIn126.Tree);
- DebugLocation(848, 28);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:848:28: ( QUE assignmentExpressionNoIn COLON assignmentExpressionNoIn )?
- int alt37=2;
- try { DebugEnterSubRule(37);
- try { DebugEnterDecision(37, decisionCanBacktrack[37]);
- int LA37_0 = input.LA(1);
-
- if ((LA37_0==QUE))
- {
- alt37=1;
- }
- } finally { DebugExitDecision(37); }
- switch (alt37)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:848:30: QUE assignmentExpressionNoIn COLON assignmentExpressionNoIn
- {
- DebugLocation(848, 33);
- QUE127=(IToken)Match(input,QUE,Follow._QUE_in_conditionalExpressionNoIn4199);
- QUE127_tree = (object)adaptor.Create(QUE127);
- root_0 = (object)adaptor.BecomeRoot(QUE127_tree, root_0);
-
- DebugLocation(848, 35);
- PushFollow(Follow._assignmentExpressionNoIn_in_conditionalExpressionNoIn4202);
- assignmentExpressionNoIn128=assignmentExpressionNoIn();
- PopFollow();
-
- adaptor.AddChild(root_0, assignmentExpressionNoIn128.Tree);
- DebugLocation(848, 65);
- COLON129=(IToken)Match(input,COLON,Follow._COLON_in_conditionalExpressionNoIn4204);
- DebugLocation(848, 67);
- PushFollow(Follow._assignmentExpressionNoIn_in_conditionalExpressionNoIn4207);
- assignmentExpressionNoIn130=assignmentExpressionNoIn();
- PopFollow();
-
- adaptor.AddChild(root_0, assignmentExpressionNoIn130.Tree);
-
- }
- break;
-
- }
- } finally { DebugExitSubRule(37); }
-
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(849, 1);
- } finally { DebugExitRule(GrammarFileName, "conditionalExpressionNoIn"); }
- return retval;
-
- }
- // $ANTLR end "conditionalExpressionNoIn"
-
- public class assignmentExpression_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_assignmentExpression() {}
- protected virtual void Leave_assignmentExpression() {}
-
- // $ANTLR start "assignmentExpression"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:877:1: assignmentExpression : lhs= conditionalExpression ({...}? assignmentOperator assignmentExpression )? ;
- [GrammarRule("assignmentExpression")]
- private ES3Parser.assignmentExpression_return assignmentExpression()
- {
-
- ES3Parser.assignmentExpression_return retval = new ES3Parser.assignmentExpression_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- ES3Parser.conditionalExpression_return lhs = default(ES3Parser.conditionalExpression_return);
- ES3Parser.assignmentOperator_return assignmentOperator131 = default(ES3Parser.assignmentOperator_return);
- ES3Parser.assignmentExpression_return assignmentExpression132 = default(ES3Parser.assignmentExpression_return);
-
-
-
- bool? isLhs = null;
-
- try { DebugEnterRule(GrammarFileName, "assignmentExpression");
- DebugLocation(877, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:882:2: (lhs= conditionalExpression ({...}? assignmentOperator assignmentExpression )? )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:882:4: lhs= conditionalExpression ({...}? assignmentOperator assignmentExpression )?
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(882, 7);
- PushFollow(Follow._conditionalExpression_in_assignmentExpression4235);
- lhs=conditionalExpression();
- PopFollow();
-
- adaptor.AddChild(root_0, lhs.Tree);
- DebugLocation(883, 2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:883:2: ({...}? assignmentOperator assignmentExpression )?
- int alt38=2;
- try { DebugEnterSubRule(38);
- try { DebugEnterDecision(38, decisionCanBacktrack[38]);
- int LA38_0 = input.LA(1);
-
- if (((LA38_0>=ASSIGN && LA38_0<=XORASS)||LA38_0==DIVASS))
- {
- int LA38_1 = input.LA(2);
-
- if ((( IsLeftHandSideAssign(lhs, ref isLhs) )))
- {
- alt38=1;
- }
- }
- } finally { DebugExitDecision(38); }
- switch (alt38)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:883:4: {...}? assignmentOperator assignmentExpression
- {
- DebugLocation(883, 4);
- if (!(( IsLeftHandSideAssign(lhs, ref isLhs) )))
- {
- throw new FailedPredicateException(input, "assignmentExpression", " IsLeftHandSideAssign(lhs, ref isLhs) ");
- }
- DebugLocation(883, 64);
- PushFollow(Follow._assignmentOperator_in_assignmentExpression4242);
- assignmentOperator131=assignmentOperator();
- PopFollow();
-
- root_0 = (object)adaptor.BecomeRoot(assignmentOperator131.Tree, root_0);
- DebugLocation(883, 66);
- PushFollow(Follow._assignmentExpression_in_assignmentExpression4245);
- assignmentExpression132=assignmentExpression();
- PopFollow();
-
- adaptor.AddChild(root_0, assignmentExpression132.Tree);
-
- }
- break;
-
- }
- } finally { DebugExitSubRule(38); }
-
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(884, 1);
- } finally { DebugExitRule(GrammarFileName, "assignmentExpression"); }
- return retval;
-
- }
- // $ANTLR end "assignmentExpression"
-
- public class assignmentOperator_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_assignmentOperator() {}
- protected virtual void Leave_assignmentOperator() {}
-
- // $ANTLR start "assignmentOperator"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:886:1: assignmentOperator : ( ASSIGN | MULASS | DIVASS | MODASS | ADDASS | SUBASS | SHLASS | SHRASS | SHUASS | ANDASS | XORASS | ORASS );
- [GrammarRule("assignmentOperator")]
- private ES3Parser.assignmentOperator_return assignmentOperator()
- {
-
- ES3Parser.assignmentOperator_return retval = new ES3Parser.assignmentOperator_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken set133=null;
-
- object set133_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "assignmentOperator");
- DebugLocation(886, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:887:2: ( ASSIGN | MULASS | DIVASS | MODASS | ADDASS | SUBASS | SHLASS | SHRASS | SHUASS | ANDASS | XORASS | ORASS )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(887, 2);
- set133=(IToken)input.LT(1);
- if ((input.LA(1)>=ASSIGN && input.LA(1)<=XORASS)||input.LA(1)==DIVASS)
- {
- input.Consume();
- adaptor.AddChild(root_0, (object)adaptor.Create(set133));
- state.errorRecovery=false;
- }
- else
- {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- DebugRecognitionException(mse);
- throw mse;
- }
-
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(888, 1);
- } finally { DebugExitRule(GrammarFileName, "assignmentOperator"); }
- return retval;
-
- }
- // $ANTLR end "assignmentOperator"
-
- public class assignmentExpressionNoIn_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_assignmentExpressionNoIn() {}
- protected virtual void Leave_assignmentExpressionNoIn() {}
-
- // $ANTLR start "assignmentExpressionNoIn"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:890:1: assignmentExpressionNoIn : lhs= conditionalExpressionNoIn ({...}? assignmentOperator assignmentExpressionNoIn )? ;
- [GrammarRule("assignmentExpressionNoIn")]
- private ES3Parser.assignmentExpressionNoIn_return assignmentExpressionNoIn()
- {
-
- ES3Parser.assignmentExpressionNoIn_return retval = new ES3Parser.assignmentExpressionNoIn_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- ES3Parser.conditionalExpressionNoIn_return lhs = default(ES3Parser.conditionalExpressionNoIn_return);
- ES3Parser.assignmentOperator_return assignmentOperator134 = default(ES3Parser.assignmentOperator_return);
- ES3Parser.assignmentExpressionNoIn_return assignmentExpressionNoIn135 = default(ES3Parser.assignmentExpressionNoIn_return);
-
-
-
- bool? isLhs = null;
-
- try { DebugEnterRule(GrammarFileName, "assignmentExpressionNoIn");
- DebugLocation(890, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:895:2: (lhs= conditionalExpressionNoIn ({...}? assignmentOperator assignmentExpressionNoIn )? )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:895:4: lhs= conditionalExpressionNoIn ({...}? assignmentOperator assignmentExpressionNoIn )?
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(895, 7);
- PushFollow(Follow._conditionalExpressionNoIn_in_assignmentExpressionNoIn4322);
- lhs=conditionalExpressionNoIn();
- PopFollow();
-
- adaptor.AddChild(root_0, lhs.Tree);
- DebugLocation(896, 2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:896:2: ({...}? assignmentOperator assignmentExpressionNoIn )?
- int alt39=2;
- try { DebugEnterSubRule(39);
- try { DebugEnterDecision(39, decisionCanBacktrack[39]);
- int LA39_0 = input.LA(1);
-
- if (((LA39_0>=ASSIGN && LA39_0<=XORASS)||LA39_0==DIVASS))
- {
- int LA39_1 = input.LA(2);
-
- if ((( IsLeftHandSideAssign(lhs, ref isLhs) )))
- {
- alt39=1;
- }
- }
- } finally { DebugExitDecision(39); }
- switch (alt39)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:896:4: {...}? assignmentOperator assignmentExpressionNoIn
- {
- DebugLocation(896, 4);
- if (!(( IsLeftHandSideAssign(lhs, ref isLhs) )))
- {
- throw new FailedPredicateException(input, "assignmentExpressionNoIn", " IsLeftHandSideAssign(lhs, ref isLhs) ");
- }
- DebugLocation(896, 64);
- PushFollow(Follow._assignmentOperator_in_assignmentExpressionNoIn4329);
- assignmentOperator134=assignmentOperator();
- PopFollow();
-
- root_0 = (object)adaptor.BecomeRoot(assignmentOperator134.Tree, root_0);
- DebugLocation(896, 66);
- PushFollow(Follow._assignmentExpressionNoIn_in_assignmentExpressionNoIn4332);
- assignmentExpressionNoIn135=assignmentExpressionNoIn();
- PopFollow();
-
- adaptor.AddChild(root_0, assignmentExpressionNoIn135.Tree);
-
- }
- break;
-
- }
- } finally { DebugExitSubRule(39); }
-
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(897, 1);
- } finally { DebugExitRule(GrammarFileName, "assignmentExpressionNoIn"); }
- return retval;
-
- }
- // $ANTLR end "assignmentExpressionNoIn"
-
- public class expression_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_expression() {}
- protected virtual void Leave_expression() {}
-
- // $ANTLR start "expression"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:903:1: expression : exprs+= assignmentExpression ( COMMA exprs+= assignmentExpression )* -> { $exprs.Count > 1 }? ^( CEXPR ( $exprs)+ ) -> $exprs;
- [GrammarRule("expression")]
- private ES3Parser.expression_return expression()
- {
-
- ES3Parser.expression_return retval = new ES3Parser.expression_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken COMMA136=null;
- List list_exprs=null;
- ES3Parser.assignmentExpression_return exprs = default(ES3Parser.assignmentExpression_return);
- object COMMA136_tree=null;
- RewriteRuleITokenStream stream_COMMA=new RewriteRuleITokenStream(adaptor,"token COMMA");
- RewriteRuleSubtreeStream stream_assignmentExpression=new RewriteRuleSubtreeStream(adaptor,"rule assignmentExpression");
- try { DebugEnterRule(GrammarFileName, "expression");
- DebugLocation(903, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:904:2: (exprs+= assignmentExpression ( COMMA exprs+= assignmentExpression )* -> { $exprs.Count > 1 }? ^( CEXPR ( $exprs)+ ) -> $exprs)
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:904:4: exprs+= assignmentExpression ( COMMA exprs+= assignmentExpression )*
- {
- DebugLocation(904, 9);
- PushFollow(Follow._assignmentExpression_in_expression4354);
- exprs=assignmentExpression();
- PopFollow();
-
- stream_assignmentExpression.Add(exprs.Tree);
- if (list_exprs==null) list_exprs=new ArrayList();
- list_exprs.Add(exprs.Tree);
-
- DebugLocation(904, 32);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:904:32: ( COMMA exprs+= assignmentExpression )*
- try { DebugEnterSubRule(40);
- while (true)
- {
- int alt40=2;
- try { DebugEnterDecision(40, decisionCanBacktrack[40]);
- int LA40_0 = input.LA(1);
-
- if ((LA40_0==COMMA))
- {
- alt40=1;
- }
-
-
- } finally { DebugExitDecision(40); }
- switch ( alt40 )
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:904:34: COMMA exprs+= assignmentExpression
- {
- DebugLocation(904, 34);
- COMMA136=(IToken)Match(input,COMMA,Follow._COMMA_in_expression4358);
- stream_COMMA.Add(COMMA136);
-
- DebugLocation(904, 45);
- PushFollow(Follow._assignmentExpression_in_expression4362);
- exprs=assignmentExpression();
- PopFollow();
-
- stream_assignmentExpression.Add(exprs.Tree);
- if (list_exprs==null) list_exprs=new ArrayList();
- list_exprs.Add(exprs.Tree);
-
-
- }
- break;
-
- default:
- goto loop40;
- }
- }
-
- loop40:
- ;
-
- } finally { DebugExitSubRule(40); }
-
-
-
- {
- // AST REWRITE
- // elements: exprs, exprs
- // token labels:
- // rule labels: retval
- // token list labels:
- // rule list labels: exprs
- // wildcard labels:
- retval.Tree = root_0;
- RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"rule retval",retval!=null?retval.Tree:null);
- RewriteRuleSubtreeStream stream_exprs=new RewriteRuleSubtreeStream(adaptor,"token exprs",list_exprs);
- root_0 = (object)adaptor.Nil();
- // 905:2: -> { $exprs.Count > 1 }? ^( CEXPR ( $exprs)+ )
- if ( list_exprs.Count > 1 )
- {
- DebugLocation(905, 27);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:905:27: ^( CEXPR ( $exprs)+ )
- {
- object root_1 = (object)adaptor.Nil();
- DebugLocation(905, 30);
- root_1 = (object)adaptor.BecomeRoot((object)adaptor.Create(CEXPR, "CEXPR"), root_1);
-
- DebugLocation(905, 36);
- if ( !(stream_exprs.HasNext) )
- {
- throw new RewriteEarlyExitException();
- }
- while ( stream_exprs.HasNext )
- {
- DebugLocation(905, 36);
- adaptor.AddChild(root_1, stream_exprs.NextTree());
-
- }
- stream_exprs.Reset();
-
- adaptor.AddChild(root_0, root_1);
- }
-
- }
- else // 906:2: -> $exprs
- {
- DebugLocation(906, 5);
- adaptor.AddChild(root_0, stream_exprs.NextTree());
-
- }
-
- retval.Tree = root_0;
- }
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(907, 1);
- } finally { DebugExitRule(GrammarFileName, "expression"); }
- return retval;
-
- }
- // $ANTLR end "expression"
-
- public class expressionNoIn_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_expressionNoIn() {}
- protected virtual void Leave_expressionNoIn() {}
-
- // $ANTLR start "expressionNoIn"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:909:1: expressionNoIn : exprs+= assignmentExpressionNoIn ( COMMA exprs+= assignmentExpressionNoIn )* -> { $exprs.Count > 1 }? ^( CEXPR ( $exprs)+ ) -> $exprs;
- [GrammarRule("expressionNoIn")]
- private ES3Parser.expressionNoIn_return expressionNoIn()
- {
-
- ES3Parser.expressionNoIn_return retval = new ES3Parser.expressionNoIn_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken COMMA137=null;
- List list_exprs=null;
- ES3Parser.assignmentExpressionNoIn_return exprs = default(ES3Parser.assignmentExpressionNoIn_return);
- object COMMA137_tree=null;
- RewriteRuleITokenStream stream_COMMA=new RewriteRuleITokenStream(adaptor,"token COMMA");
- RewriteRuleSubtreeStream stream_assignmentExpressionNoIn=new RewriteRuleSubtreeStream(adaptor,"rule assignmentExpressionNoIn");
- try { DebugEnterRule(GrammarFileName, "expressionNoIn");
- DebugLocation(909, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:910:2: (exprs+= assignmentExpressionNoIn ( COMMA exprs+= assignmentExpressionNoIn )* -> { $exprs.Count > 1 }? ^( CEXPR ( $exprs)+ ) -> $exprs)
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:910:4: exprs+= assignmentExpressionNoIn ( COMMA exprs+= assignmentExpressionNoIn )*
- {
- DebugLocation(910, 9);
- PushFollow(Follow._assignmentExpressionNoIn_in_expressionNoIn4399);
- exprs=assignmentExpressionNoIn();
- PopFollow();
-
- stream_assignmentExpressionNoIn.Add(exprs.Tree);
- if (list_exprs==null) list_exprs=new ArrayList();
- list_exprs.Add(exprs.Tree);
-
- DebugLocation(910, 36);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:910:36: ( COMMA exprs+= assignmentExpressionNoIn )*
- try { DebugEnterSubRule(41);
- while (true)
- {
- int alt41=2;
- try { DebugEnterDecision(41, decisionCanBacktrack[41]);
- int LA41_0 = input.LA(1);
-
- if ((LA41_0==COMMA))
- {
- alt41=1;
- }
-
-
- } finally { DebugExitDecision(41); }
- switch ( alt41 )
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:910:38: COMMA exprs+= assignmentExpressionNoIn
- {
- DebugLocation(910, 38);
- COMMA137=(IToken)Match(input,COMMA,Follow._COMMA_in_expressionNoIn4403);
- stream_COMMA.Add(COMMA137);
-
- DebugLocation(910, 49);
- PushFollow(Follow._assignmentExpressionNoIn_in_expressionNoIn4407);
- exprs=assignmentExpressionNoIn();
- PopFollow();
-
- stream_assignmentExpressionNoIn.Add(exprs.Tree);
- if (list_exprs==null) list_exprs=new ArrayList();
- list_exprs.Add(exprs.Tree);
-
-
- }
- break;
-
- default:
- goto loop41;
- }
- }
-
- loop41:
- ;
-
- } finally { DebugExitSubRule(41); }
-
-
-
- {
- // AST REWRITE
- // elements: exprs, exprs
- // token labels:
- // rule labels: retval
- // token list labels:
- // rule list labels: exprs
- // wildcard labels:
- retval.Tree = root_0;
- RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"rule retval",retval!=null?retval.Tree:null);
- RewriteRuleSubtreeStream stream_exprs=new RewriteRuleSubtreeStream(adaptor,"token exprs",list_exprs);
- root_0 = (object)adaptor.Nil();
- // 911:2: -> { $exprs.Count > 1 }? ^( CEXPR ( $exprs)+ )
- if ( list_exprs.Count > 1 )
- {
- DebugLocation(911, 27);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:911:27: ^( CEXPR ( $exprs)+ )
- {
- object root_1 = (object)adaptor.Nil();
- DebugLocation(911, 30);
- root_1 = (object)adaptor.BecomeRoot((object)adaptor.Create(CEXPR, "CEXPR"), root_1);
-
- DebugLocation(911, 36);
- if ( !(stream_exprs.HasNext) )
- {
- throw new RewriteEarlyExitException();
- }
- while ( stream_exprs.HasNext )
- {
- DebugLocation(911, 36);
- adaptor.AddChild(root_1, stream_exprs.NextTree());
-
- }
- stream_exprs.Reset();
-
- adaptor.AddChild(root_0, root_1);
- }
-
- }
- else // 912:2: -> $exprs
- {
- DebugLocation(912, 5);
- adaptor.AddChild(root_0, stream_exprs.NextTree());
-
- }
-
- retval.Tree = root_0;
- }
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(913, 1);
- } finally { DebugExitRule(GrammarFileName, "expressionNoIn"); }
- return retval;
-
- }
- // $ANTLR end "expressionNoIn"
-
- public class semic_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_semic() {}
- protected virtual void Leave_semic() {}
-
- // $ANTLR start "semic"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:937:1: semic : ( SEMIC | EOF | RBRACE | EOL | MultiLineComment );
- [GrammarRule("semic")]
- private ES3Parser.semic_return semic()
- {
-
- ES3Parser.semic_return retval = new ES3Parser.semic_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken SEMIC138=null;
- IToken EOF139=null;
- IToken RBRACE140=null;
- IToken EOL141=null;
- IToken MultiLineComment142=null;
-
- object SEMIC138_tree=null;
- object EOF139_tree=null;
- object RBRACE140_tree=null;
- object EOL141_tree=null;
- object MultiLineComment142_tree=null;
-
-
- // Mark current position so we can unconsume a RBRACE.
- int marker = input.Mark();
- // Promote EOL if appropriate
- PromoteEOL(retval);
-
- try { DebugEnterRule(GrammarFileName, "semic");
- DebugLocation(937, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:945:2: ( SEMIC | EOF | RBRACE | EOL | MultiLineComment )
- int alt42=5;
- try { DebugEnterDecision(42, decisionCanBacktrack[42]);
- switch (input.LA(1))
- {
- case SEMIC:
- {
- alt42=1;
- }
- break;
- case EOF:
- {
- alt42=2;
- }
- break;
- case RBRACE:
- {
- alt42=3;
- }
- break;
- case EOL:
- {
- alt42=4;
- }
- break;
- case MultiLineComment:
- {
- alt42=5;
- }
- break;
- default:
- {
- NoViableAltException nvae = new NoViableAltException("", 42, 0, input);
-
- DebugRecognitionException(nvae);
- throw nvae;
- }
- }
-
- } finally { DebugExitDecision(42); }
- switch (alt42)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:945:4: SEMIC
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(945, 4);
- SEMIC138=(IToken)Match(input,SEMIC,Follow._SEMIC_in_semic4458);
- SEMIC138_tree = (object)adaptor.Create(SEMIC138);
- adaptor.AddChild(root_0, SEMIC138_tree);
-
-
- }
- break;
- case 2:
- DebugEnterAlt(2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:946:4: EOF
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(946, 4);
- EOF139=(IToken)Match(input,EOF,Follow._EOF_in_semic4463);
- EOF139_tree = (object)adaptor.Create(EOF139);
- adaptor.AddChild(root_0, EOF139_tree);
-
-
- }
- break;
- case 3:
- DebugEnterAlt(3);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:947:4: RBRACE
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(947, 4);
- RBRACE140=(IToken)Match(input,RBRACE,Follow._RBRACE_in_semic4468);
- RBRACE140_tree = (object)adaptor.Create(RBRACE140);
- adaptor.AddChild(root_0, RBRACE140_tree);
-
- DebugLocation(947, 11);
- input.Rewind(marker);
-
- }
- break;
- case 4:
- DebugEnterAlt(4);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:948:4: EOL
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(948, 4);
- EOL141=(IToken)Match(input,EOL,Follow._EOL_in_semic4475);
- EOL141_tree = (object)adaptor.Create(EOL141);
- adaptor.AddChild(root_0, EOL141_tree);
-
-
- }
- break;
- case 5:
- DebugEnterAlt(5);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:948:10: MultiLineComment
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(948, 10);
- MultiLineComment142=(IToken)Match(input,MultiLineComment,Follow._MultiLineComment_in_semic4479);
- MultiLineComment142_tree = (object)adaptor.Create(MultiLineComment142);
- adaptor.AddChild(root_0, MultiLineComment142_tree);
-
-
- }
- break;
-
- }
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(949, 1);
- } finally { DebugExitRule(GrammarFileName, "semic"); }
- return retval;
-
- }
- // $ANTLR end "semic"
-
- public class statement_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_statement() {}
- protected virtual void Leave_statement() {}
-
- // $ANTLR start "statement"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:956:1: statement options {k=1; } : ({...}? block | statementTail );
- [GrammarRule("statement")]
- private ES3Parser.statement_return statement()
- {
-
- ES3Parser.statement_return retval = new ES3Parser.statement_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- ES3Parser.block_return block143 = default(ES3Parser.block_return);
- ES3Parser.statementTail_return statementTail144 = default(ES3Parser.statementTail_return);
-
-
- try { DebugEnterRule(GrammarFileName, "statement");
- DebugLocation(956, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:961:2: ({...}? block | statementTail )
- int alt43=2;
- try { DebugEnterDecision(43, decisionCanBacktrack[43]);
- try
- {
- alt43 = dfa43.Predict(input);
- }
- catch (NoViableAltException nvae)
- {
- DebugRecognitionException(nvae);
- throw;
- }
- } finally { DebugExitDecision(43); }
- switch (alt43)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:961:4: {...}? block
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(961, 4);
- if (!(( input.LA(1) == LBRACE )))
- {
- throw new FailedPredicateException(input, "statement", " input.LA(1) == LBRACE ");
- }
- DebugLocation(961, 31);
- PushFollow(Follow._block_in_statement4508);
- block143=block();
- PopFollow();
-
- adaptor.AddChild(root_0, block143.Tree);
-
- }
- break;
- case 2:
- DebugEnterAlt(2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:962:4: statementTail
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(962, 4);
- PushFollow(Follow._statementTail_in_statement4513);
- statementTail144=statementTail();
- PopFollow();
-
- adaptor.AddChild(root_0, statementTail144.Tree);
-
- }
- break;
-
- }
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(963, 1);
- } finally { DebugExitRule(GrammarFileName, "statement"); }
- return retval;
-
- }
- // $ANTLR end "statement"
-
- public class statementTail_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_statementTail() {}
- protected virtual void Leave_statementTail() {}
-
- // $ANTLR start "statementTail"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:965:1: statementTail : ( variableStatement | emptyStatement | expressionStatement | ifStatement | iterationStatement | continueStatement | breakStatement | returnStatement | withStatement | labelledStatement | switchStatement | throwStatement | tryStatement );
- [GrammarRule("statementTail")]
- private ES3Parser.statementTail_return statementTail()
- {
-
- ES3Parser.statementTail_return retval = new ES3Parser.statementTail_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- ES3Parser.variableStatement_return variableStatement145 = default(ES3Parser.variableStatement_return);
- ES3Parser.emptyStatement_return emptyStatement146 = default(ES3Parser.emptyStatement_return);
- ES3Parser.expressionStatement_return expressionStatement147 = default(ES3Parser.expressionStatement_return);
- ES3Parser.ifStatement_return ifStatement148 = default(ES3Parser.ifStatement_return);
- ES3Parser.iterationStatement_return iterationStatement149 = default(ES3Parser.iterationStatement_return);
- ES3Parser.continueStatement_return continueStatement150 = default(ES3Parser.continueStatement_return);
- ES3Parser.breakStatement_return breakStatement151 = default(ES3Parser.breakStatement_return);
- ES3Parser.returnStatement_return returnStatement152 = default(ES3Parser.returnStatement_return);
- ES3Parser.withStatement_return withStatement153 = default(ES3Parser.withStatement_return);
- ES3Parser.labelledStatement_return labelledStatement154 = default(ES3Parser.labelledStatement_return);
- ES3Parser.switchStatement_return switchStatement155 = default(ES3Parser.switchStatement_return);
- ES3Parser.throwStatement_return throwStatement156 = default(ES3Parser.throwStatement_return);
- ES3Parser.tryStatement_return tryStatement157 = default(ES3Parser.tryStatement_return);
-
-
- try { DebugEnterRule(GrammarFileName, "statementTail");
- DebugLocation(965, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:966:2: ( variableStatement | emptyStatement | expressionStatement | ifStatement | iterationStatement | continueStatement | breakStatement | returnStatement | withStatement | labelledStatement | switchStatement | throwStatement | tryStatement )
- int alt44=13;
- try { DebugEnterDecision(44, decisionCanBacktrack[44]);
- try
- {
- alt44 = dfa44.Predict(input);
- }
- catch (NoViableAltException nvae)
- {
- DebugRecognitionException(nvae);
- throw;
- }
- } finally { DebugExitDecision(44); }
- switch (alt44)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:966:4: variableStatement
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(966, 4);
- PushFollow(Follow._variableStatement_in_statementTail4525);
- variableStatement145=variableStatement();
- PopFollow();
-
- adaptor.AddChild(root_0, variableStatement145.Tree);
-
- }
- break;
- case 2:
- DebugEnterAlt(2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:967:4: emptyStatement
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(967, 4);
- PushFollow(Follow._emptyStatement_in_statementTail4530);
- emptyStatement146=emptyStatement();
- PopFollow();
-
- adaptor.AddChild(root_0, emptyStatement146.Tree);
-
- }
- break;
- case 3:
- DebugEnterAlt(3);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:968:4: expressionStatement
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(968, 4);
- PushFollow(Follow._expressionStatement_in_statementTail4535);
- expressionStatement147=expressionStatement();
- PopFollow();
-
- adaptor.AddChild(root_0, expressionStatement147.Tree);
-
- }
- break;
- case 4:
- DebugEnterAlt(4);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:969:4: ifStatement
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(969, 4);
- PushFollow(Follow._ifStatement_in_statementTail4540);
- ifStatement148=ifStatement();
- PopFollow();
-
- adaptor.AddChild(root_0, ifStatement148.Tree);
-
- }
- break;
- case 5:
- DebugEnterAlt(5);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:970:4: iterationStatement
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(970, 4);
- PushFollow(Follow._iterationStatement_in_statementTail4545);
- iterationStatement149=iterationStatement();
- PopFollow();
-
- adaptor.AddChild(root_0, iterationStatement149.Tree);
-
- }
- break;
- case 6:
- DebugEnterAlt(6);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:971:4: continueStatement
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(971, 4);
- PushFollow(Follow._continueStatement_in_statementTail4550);
- continueStatement150=continueStatement();
- PopFollow();
-
- adaptor.AddChild(root_0, continueStatement150.Tree);
-
- }
- break;
- case 7:
- DebugEnterAlt(7);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:972:4: breakStatement
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(972, 4);
- PushFollow(Follow._breakStatement_in_statementTail4555);
- breakStatement151=breakStatement();
- PopFollow();
-
- adaptor.AddChild(root_0, breakStatement151.Tree);
-
- }
- break;
- case 8:
- DebugEnterAlt(8);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:973:4: returnStatement
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(973, 4);
- PushFollow(Follow._returnStatement_in_statementTail4560);
- returnStatement152=returnStatement();
- PopFollow();
-
- adaptor.AddChild(root_0, returnStatement152.Tree);
-
- }
- break;
- case 9:
- DebugEnterAlt(9);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:974:4: withStatement
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(974, 4);
- PushFollow(Follow._withStatement_in_statementTail4565);
- withStatement153=withStatement();
- PopFollow();
-
- adaptor.AddChild(root_0, withStatement153.Tree);
-
- }
- break;
- case 10:
- DebugEnterAlt(10);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:975:4: labelledStatement
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(975, 4);
- PushFollow(Follow._labelledStatement_in_statementTail4570);
- labelledStatement154=labelledStatement();
- PopFollow();
-
- adaptor.AddChild(root_0, labelledStatement154.Tree);
-
- }
- break;
- case 11:
- DebugEnterAlt(11);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:976:4: switchStatement
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(976, 4);
- PushFollow(Follow._switchStatement_in_statementTail4575);
- switchStatement155=switchStatement();
- PopFollow();
-
- adaptor.AddChild(root_0, switchStatement155.Tree);
-
- }
- break;
- case 12:
- DebugEnterAlt(12);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:977:4: throwStatement
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(977, 4);
- PushFollow(Follow._throwStatement_in_statementTail4580);
- throwStatement156=throwStatement();
- PopFollow();
-
- adaptor.AddChild(root_0, throwStatement156.Tree);
-
- }
- break;
- case 13:
- DebugEnterAlt(13);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:978:4: tryStatement
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(978, 4);
- PushFollow(Follow._tryStatement_in_statementTail4585);
- tryStatement157=tryStatement();
- PopFollow();
-
- adaptor.AddChild(root_0, tryStatement157.Tree);
-
- }
- break;
-
- }
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(979, 1);
- } finally { DebugExitRule(GrammarFileName, "statementTail"); }
- return retval;
-
- }
- // $ANTLR end "statementTail"
-
- public class block_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_block() {}
- protected virtual void Leave_block() {}
-
- // $ANTLR start "block"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:983:1: block : lb= LBRACE ( statement )* RBRACE -> ^( BLOCK[$lb, \"BLOCK\"] ( statement )* ) ;
- [GrammarRule("block")]
- private ES3Parser.block_return block()
- {
-
- ES3Parser.block_return retval = new ES3Parser.block_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken lb=null;
- IToken RBRACE159=null;
- ES3Parser.statement_return statement158 = default(ES3Parser.statement_return);
-
- object lb_tree=null;
- object RBRACE159_tree=null;
- RewriteRuleITokenStream stream_RBRACE=new RewriteRuleITokenStream(adaptor,"token RBRACE");
- RewriteRuleITokenStream stream_LBRACE=new RewriteRuleITokenStream(adaptor,"token LBRACE");
- RewriteRuleSubtreeStream stream_statement=new RewriteRuleSubtreeStream(adaptor,"rule statement");
- try { DebugEnterRule(GrammarFileName, "block");
- DebugLocation(983, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:984:2: (lb= LBRACE ( statement )* RBRACE -> ^( BLOCK[$lb, \"BLOCK\"] ( statement )* ) )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:984:4: lb= LBRACE ( statement )* RBRACE
- {
- DebugLocation(984, 6);
- lb=(IToken)Match(input,LBRACE,Follow._LBRACE_in_block4600);
- stream_LBRACE.Add(lb);
-
- DebugLocation(984, 14);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:984:14: ( statement )*
- try { DebugEnterSubRule(45);
- while (true)
- {
- int alt45=2;
- try { DebugEnterDecision(45, decisionCanBacktrack[45]);
- int LA45_0 = input.LA(1);
-
- if (((LA45_0>=NULL && LA45_0<=BREAK)||LA45_0==CONTINUE||(LA45_0>=DELETE && LA45_0<=DO)||(LA45_0>=FOR && LA45_0<=IF)||(LA45_0>=NEW && LA45_0<=WITH)||LA45_0==LBRACE||LA45_0==LPAREN||LA45_0==LBRACK||LA45_0==SEMIC||(LA45_0>=ADD && LA45_0<=SUB)||(LA45_0>=INC && LA45_0<=DEC)||(LA45_0>=NOT && LA45_0<=INV)||(LA45_0>=Identifier && LA45_0<=StringLiteral)||LA45_0==RegularExpressionLiteral||(LA45_0>=DecimalLiteral && LA45_0<=HexIntegerLiteral)))
- {
- alt45=1;
- }
-
-
- } finally { DebugExitDecision(45); }
- switch ( alt45 )
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:984:14: statement
- {
- DebugLocation(984, 14);
- PushFollow(Follow._statement_in_block4602);
- statement158=statement();
- PopFollow();
-
- stream_statement.Add(statement158.Tree);
-
- }
- break;
-
- default:
- goto loop45;
- }
- }
-
- loop45:
- ;
-
- } finally { DebugExitSubRule(45); }
-
- DebugLocation(984, 25);
- RBRACE159=(IToken)Match(input,RBRACE,Follow._RBRACE_in_block4605);
- stream_RBRACE.Add(RBRACE159);
-
-
-
- {
- // AST REWRITE
- // elements: statement
- // token labels:
- // rule labels: retval
- // token list labels:
- // rule list labels:
- // wildcard labels:
- retval.Tree = root_0;
- RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"rule retval",retval!=null?retval.Tree:null);
-
- root_0 = (object)adaptor.Nil();
- // 985:2: -> ^( BLOCK[$lb, \"BLOCK\"] ( statement )* )
- {
- DebugLocation(985, 5);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:985:5: ^( BLOCK[$lb, \"BLOCK\"] ( statement )* )
- {
- object root_1 = (object)adaptor.Nil();
- DebugLocation(985, 8);
- root_1 = (object)adaptor.BecomeRoot((object)adaptor.Create(BLOCK, lb, "BLOCK"), root_1);
-
- DebugLocation(985, 28);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:985:28: ( statement )*
- while ( stream_statement.HasNext )
- {
- DebugLocation(985, 28);
- adaptor.AddChild(root_1, stream_statement.NextTree());
-
- }
- stream_statement.Reset();
-
- adaptor.AddChild(root_0, root_1);
- }
-
- }
-
- retval.Tree = root_0;
- }
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(986, 1);
- } finally { DebugExitRule(GrammarFileName, "block"); }
- return retval;
-
- }
- // $ANTLR end "block"
-
- public class variableStatement_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_variableStatement() {}
- protected virtual void Leave_variableStatement() {}
-
- // $ANTLR start "variableStatement"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:992:1: variableStatement : VAR variableDeclaration ( COMMA variableDeclaration )* semic -> ^( VAR ( variableDeclaration )+ ) ;
- [GrammarRule("variableStatement")]
- private ES3Parser.variableStatement_return variableStatement()
- {
-
- ES3Parser.variableStatement_return retval = new ES3Parser.variableStatement_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken VAR160=null;
- IToken COMMA162=null;
- ES3Parser.variableDeclaration_return variableDeclaration161 = default(ES3Parser.variableDeclaration_return);
- ES3Parser.variableDeclaration_return variableDeclaration163 = default(ES3Parser.variableDeclaration_return);
- ES3Parser.semic_return semic164 = default(ES3Parser.semic_return);
-
- object VAR160_tree=null;
- object COMMA162_tree=null;
- RewriteRuleITokenStream stream_COMMA=new RewriteRuleITokenStream(adaptor,"token COMMA");
- RewriteRuleITokenStream stream_VAR=new RewriteRuleITokenStream(adaptor,"token VAR");
- RewriteRuleSubtreeStream stream_variableDeclaration=new RewriteRuleSubtreeStream(adaptor,"rule variableDeclaration");
- RewriteRuleSubtreeStream stream_semic=new RewriteRuleSubtreeStream(adaptor,"rule semic");
- try { DebugEnterRule(GrammarFileName, "variableStatement");
- DebugLocation(992, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:993:2: ( VAR variableDeclaration ( COMMA variableDeclaration )* semic -> ^( VAR ( variableDeclaration )+ ) )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:993:4: VAR variableDeclaration ( COMMA variableDeclaration )* semic
- {
- DebugLocation(993, 4);
- VAR160=(IToken)Match(input,VAR,Follow._VAR_in_variableStatement4634);
- stream_VAR.Add(VAR160);
-
- DebugLocation(993, 8);
- PushFollow(Follow._variableDeclaration_in_variableStatement4636);
- variableDeclaration161=variableDeclaration();
- PopFollow();
-
- stream_variableDeclaration.Add(variableDeclaration161.Tree);
- DebugLocation(993, 28);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:993:28: ( COMMA variableDeclaration )*
- try { DebugEnterSubRule(46);
- while (true)
- {
- int alt46=2;
- try { DebugEnterDecision(46, decisionCanBacktrack[46]);
- int LA46_0 = input.LA(1);
-
- if ((LA46_0==COMMA))
- {
- alt46=1;
- }
-
-
- } finally { DebugExitDecision(46); }
- switch ( alt46 )
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:993:30: COMMA variableDeclaration
- {
- DebugLocation(993, 30);
- COMMA162=(IToken)Match(input,COMMA,Follow._COMMA_in_variableStatement4640);
- stream_COMMA.Add(COMMA162);
-
- DebugLocation(993, 36);
- PushFollow(Follow._variableDeclaration_in_variableStatement4642);
- variableDeclaration163=variableDeclaration();
- PopFollow();
-
- stream_variableDeclaration.Add(variableDeclaration163.Tree);
-
- }
- break;
-
- default:
- goto loop46;
- }
- }
-
- loop46:
- ;
-
- } finally { DebugExitSubRule(46); }
-
- DebugLocation(993, 59);
- PushFollow(Follow._semic_in_variableStatement4647);
- semic164=semic();
- PopFollow();
-
- stream_semic.Add(semic164.Tree);
-
-
- {
- // AST REWRITE
- // elements: variableDeclaration, VAR
- // token labels:
- // rule labels: retval
- // token list labels:
- // rule list labels:
- // wildcard labels:
- retval.Tree = root_0;
- RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"rule retval",retval!=null?retval.Tree:null);
-
- root_0 = (object)adaptor.Nil();
- // 994:2: -> ^( VAR ( variableDeclaration )+ )
- {
- DebugLocation(994, 5);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:994:5: ^( VAR ( variableDeclaration )+ )
- {
- object root_1 = (object)adaptor.Nil();
- DebugLocation(994, 8);
- root_1 = (object)adaptor.BecomeRoot(stream_VAR.NextNode(), root_1);
-
- DebugLocation(994, 12);
- if ( !(stream_variableDeclaration.HasNext) )
- {
- throw new RewriteEarlyExitException();
- }
- while ( stream_variableDeclaration.HasNext )
- {
- DebugLocation(994, 12);
- adaptor.AddChild(root_1, stream_variableDeclaration.NextTree());
-
- }
- stream_variableDeclaration.Reset();
-
- adaptor.AddChild(root_0, root_1);
- }
-
- }
-
- retval.Tree = root_0;
- }
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(995, 1);
- } finally { DebugExitRule(GrammarFileName, "variableStatement"); }
- return retval;
-
- }
- // $ANTLR end "variableStatement"
-
- public class variableDeclaration_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_variableDeclaration() {}
- protected virtual void Leave_variableDeclaration() {}
-
- // $ANTLR start "variableDeclaration"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:997:1: variableDeclaration : Identifier ( ASSIGN assignmentExpression )? ;
- [GrammarRule("variableDeclaration")]
- private ES3Parser.variableDeclaration_return variableDeclaration()
- {
-
- ES3Parser.variableDeclaration_return retval = new ES3Parser.variableDeclaration_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken Identifier165=null;
- IToken ASSIGN166=null;
- ES3Parser.assignmentExpression_return assignmentExpression167 = default(ES3Parser.assignmentExpression_return);
-
- object Identifier165_tree=null;
- object ASSIGN166_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "variableDeclaration");
- DebugLocation(997, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:998:2: ( Identifier ( ASSIGN assignmentExpression )? )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:998:4: Identifier ( ASSIGN assignmentExpression )?
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(998, 4);
- Identifier165=(IToken)Match(input,Identifier,Follow._Identifier_in_variableDeclaration4670);
- Identifier165_tree = (object)adaptor.Create(Identifier165);
- adaptor.AddChild(root_0, Identifier165_tree);
-
- DebugLocation(998, 15);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:998:15: ( ASSIGN assignmentExpression )?
- int alt47=2;
- try { DebugEnterSubRule(47);
- try { DebugEnterDecision(47, decisionCanBacktrack[47]);
- int LA47_0 = input.LA(1);
-
- if ((LA47_0==ASSIGN))
- {
- alt47=1;
- }
- } finally { DebugExitDecision(47); }
- switch (alt47)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:998:17: ASSIGN assignmentExpression
- {
- DebugLocation(998, 23);
- ASSIGN166=(IToken)Match(input,ASSIGN,Follow._ASSIGN_in_variableDeclaration4674);
- ASSIGN166_tree = (object)adaptor.Create(ASSIGN166);
- root_0 = (object)adaptor.BecomeRoot(ASSIGN166_tree, root_0);
-
- DebugLocation(998, 25);
- PushFollow(Follow._assignmentExpression_in_variableDeclaration4677);
- assignmentExpression167=assignmentExpression();
- PopFollow();
-
- adaptor.AddChild(root_0, assignmentExpression167.Tree);
-
- }
- break;
-
- }
- } finally { DebugExitSubRule(47); }
-
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(999, 1);
- } finally { DebugExitRule(GrammarFileName, "variableDeclaration"); }
- return retval;
-
- }
- // $ANTLR end "variableDeclaration"
-
- public class variableDeclarationNoIn_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_variableDeclarationNoIn() {}
- protected virtual void Leave_variableDeclarationNoIn() {}
-
- // $ANTLR start "variableDeclarationNoIn"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1001:1: variableDeclarationNoIn : Identifier ( ASSIGN assignmentExpressionNoIn )? ;
- [GrammarRule("variableDeclarationNoIn")]
- private ES3Parser.variableDeclarationNoIn_return variableDeclarationNoIn()
- {
-
- ES3Parser.variableDeclarationNoIn_return retval = new ES3Parser.variableDeclarationNoIn_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken Identifier168=null;
- IToken ASSIGN169=null;
- ES3Parser.assignmentExpressionNoIn_return assignmentExpressionNoIn170 = default(ES3Parser.assignmentExpressionNoIn_return);
-
- object Identifier168_tree=null;
- object ASSIGN169_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "variableDeclarationNoIn");
- DebugLocation(1001, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1002:2: ( Identifier ( ASSIGN assignmentExpressionNoIn )? )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1002:4: Identifier ( ASSIGN assignmentExpressionNoIn )?
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(1002, 4);
- Identifier168=(IToken)Match(input,Identifier,Follow._Identifier_in_variableDeclarationNoIn4692);
- Identifier168_tree = (object)adaptor.Create(Identifier168);
- adaptor.AddChild(root_0, Identifier168_tree);
-
- DebugLocation(1002, 15);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1002:15: ( ASSIGN assignmentExpressionNoIn )?
- int alt48=2;
- try { DebugEnterSubRule(48);
- try { DebugEnterDecision(48, decisionCanBacktrack[48]);
- int LA48_0 = input.LA(1);
-
- if ((LA48_0==ASSIGN))
- {
- alt48=1;
- }
- } finally { DebugExitDecision(48); }
- switch (alt48)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1002:17: ASSIGN assignmentExpressionNoIn
- {
- DebugLocation(1002, 23);
- ASSIGN169=(IToken)Match(input,ASSIGN,Follow._ASSIGN_in_variableDeclarationNoIn4696);
- ASSIGN169_tree = (object)adaptor.Create(ASSIGN169);
- root_0 = (object)adaptor.BecomeRoot(ASSIGN169_tree, root_0);
-
- DebugLocation(1002, 25);
- PushFollow(Follow._assignmentExpressionNoIn_in_variableDeclarationNoIn4699);
- assignmentExpressionNoIn170=assignmentExpressionNoIn();
- PopFollow();
-
- adaptor.AddChild(root_0, assignmentExpressionNoIn170.Tree);
-
- }
- break;
-
- }
- } finally { DebugExitSubRule(48); }
-
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(1003, 1);
- } finally { DebugExitRule(GrammarFileName, "variableDeclarationNoIn"); }
- return retval;
-
- }
- // $ANTLR end "variableDeclarationNoIn"
-
- public class emptyStatement_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_emptyStatement() {}
- protected virtual void Leave_emptyStatement() {}
-
- // $ANTLR start "emptyStatement"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1009:1: emptyStatement : SEMIC ;
- [GrammarRule("emptyStatement")]
- private ES3Parser.emptyStatement_return emptyStatement()
- {
-
- ES3Parser.emptyStatement_return retval = new ES3Parser.emptyStatement_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken SEMIC171=null;
-
- object SEMIC171_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "emptyStatement");
- DebugLocation(1009, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1010:2: ( SEMIC )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1010:4: SEMIC
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(1010, 9);
- SEMIC171=(IToken)Match(input,SEMIC,Follow._SEMIC_in_emptyStatement4718);
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(1011, 1);
- } finally { DebugExitRule(GrammarFileName, "emptyStatement"); }
- return retval;
-
- }
- // $ANTLR end "emptyStatement"
-
- public class expressionStatement_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_expressionStatement() {}
- protected virtual void Leave_expressionStatement() {}
-
- // $ANTLR start "expressionStatement"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1023:1: expressionStatement : expression semic ;
- [GrammarRule("expressionStatement")]
- private ES3Parser.expressionStatement_return expressionStatement()
- {
-
- ES3Parser.expressionStatement_return retval = new ES3Parser.expressionStatement_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- ES3Parser.expression_return expression172 = default(ES3Parser.expression_return);
- ES3Parser.semic_return semic173 = default(ES3Parser.semic_return);
-
-
- try { DebugEnterRule(GrammarFileName, "expressionStatement");
- DebugLocation(1023, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1024:2: ( expression semic )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1024:4: expression semic
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(1024, 4);
- PushFollow(Follow._expression_in_expressionStatement4737);
- expression172=expression();
- PopFollow();
-
- adaptor.AddChild(root_0, expression172.Tree);
- DebugLocation(1024, 20);
- PushFollow(Follow._semic_in_expressionStatement4739);
- semic173=semic();
- PopFollow();
-
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(1025, 1);
- } finally { DebugExitRule(GrammarFileName, "expressionStatement"); }
- return retval;
-
- }
- // $ANTLR end "expressionStatement"
-
- public class ifStatement_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_ifStatement() {}
- protected virtual void Leave_ifStatement() {}
-
- // $ANTLR start "ifStatement"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1031:1: ifStatement : IF LPAREN expression RPAREN statement ({...}? ELSE statement )? -> ^( IF expression ( statement )+ ) ;
- [GrammarRule("ifStatement")]
- private ES3Parser.ifStatement_return ifStatement()
- {
-
- ES3Parser.ifStatement_return retval = new ES3Parser.ifStatement_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken IF174=null;
- IToken LPAREN175=null;
- IToken RPAREN177=null;
- IToken ELSE179=null;
- ES3Parser.expression_return expression176 = default(ES3Parser.expression_return);
- ES3Parser.statement_return statement178 = default(ES3Parser.statement_return);
- ES3Parser.statement_return statement180 = default(ES3Parser.statement_return);
-
- object IF174_tree=null;
- object LPAREN175_tree=null;
- object RPAREN177_tree=null;
- object ELSE179_tree=null;
- RewriteRuleITokenStream stream_RPAREN=new RewriteRuleITokenStream(adaptor,"token RPAREN");
- RewriteRuleITokenStream stream_LPAREN=new RewriteRuleITokenStream(adaptor,"token LPAREN");
- RewriteRuleITokenStream stream_ELSE=new RewriteRuleITokenStream(adaptor,"token ELSE");
- RewriteRuleITokenStream stream_IF=new RewriteRuleITokenStream(adaptor,"token IF");
- RewriteRuleSubtreeStream stream_statement=new RewriteRuleSubtreeStream(adaptor,"rule statement");
- RewriteRuleSubtreeStream stream_expression=new RewriteRuleSubtreeStream(adaptor,"rule expression");
- try { DebugEnterRule(GrammarFileName, "ifStatement");
- DebugLocation(1031, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1033:2: ( IF LPAREN expression RPAREN statement ({...}? ELSE statement )? -> ^( IF expression ( statement )+ ) )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1033:4: IF LPAREN expression RPAREN statement ({...}? ELSE statement )?
- {
- DebugLocation(1033, 4);
- IF174=(IToken)Match(input,IF,Follow._IF_in_ifStatement4757);
- stream_IF.Add(IF174);
-
- DebugLocation(1033, 7);
- LPAREN175=(IToken)Match(input,LPAREN,Follow._LPAREN_in_ifStatement4759);
- stream_LPAREN.Add(LPAREN175);
-
- DebugLocation(1033, 14);
- PushFollow(Follow._expression_in_ifStatement4761);
- expression176=expression();
- PopFollow();
-
- stream_expression.Add(expression176.Tree);
- DebugLocation(1033, 25);
- RPAREN177=(IToken)Match(input,RPAREN,Follow._RPAREN_in_ifStatement4763);
- stream_RPAREN.Add(RPAREN177);
-
- DebugLocation(1033, 32);
- PushFollow(Follow._statement_in_ifStatement4765);
- statement178=statement();
- PopFollow();
-
- stream_statement.Add(statement178.Tree);
- DebugLocation(1033, 42);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1033:42: ({...}? ELSE statement )?
- int alt49=2;
- try { DebugEnterSubRule(49);
- try { DebugEnterDecision(49, decisionCanBacktrack[49]);
- int LA49_0 = input.LA(1);
-
- if ((LA49_0==ELSE))
- {
- int LA49_1 = input.LA(2);
-
- if ((( input.LA(1) == ELSE )))
- {
- alt49=1;
- }
- }
- } finally { DebugExitDecision(49); }
- switch (alt49)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1033:44: {...}? ELSE statement
- {
- DebugLocation(1033, 44);
- if (!(( input.LA(1) == ELSE )))
- {
- throw new FailedPredicateException(input, "ifStatement", " input.LA(1) == ELSE ");
- }
- DebugLocation(1033, 69);
- ELSE179=(IToken)Match(input,ELSE,Follow._ELSE_in_ifStatement4771);
- stream_ELSE.Add(ELSE179);
-
- DebugLocation(1033, 74);
- PushFollow(Follow._statement_in_ifStatement4773);
- statement180=statement();
- PopFollow();
-
- stream_statement.Add(statement180.Tree);
-
- }
- break;
-
- }
- } finally { DebugExitSubRule(49); }
-
-
-
- {
- // AST REWRITE
- // elements: statement, IF, expression
- // token labels:
- // rule labels: retval
- // token list labels:
- // rule list labels:
- // wildcard labels:
- retval.Tree = root_0;
- RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"rule retval",retval!=null?retval.Tree:null);
-
- root_0 = (object)adaptor.Nil();
- // 1034:2: -> ^( IF expression ( statement )+ )
- {
- DebugLocation(1034, 5);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1034:5: ^( IF expression ( statement )+ )
- {
- object root_1 = (object)adaptor.Nil();
- DebugLocation(1034, 8);
- root_1 = (object)adaptor.BecomeRoot(stream_IF.NextNode(), root_1);
-
- DebugLocation(1034, 11);
- adaptor.AddChild(root_1, stream_expression.NextTree());
- DebugLocation(1034, 22);
- if ( !(stream_statement.HasNext) )
- {
- throw new RewriteEarlyExitException();
- }
- while ( stream_statement.HasNext )
- {
- DebugLocation(1034, 22);
- adaptor.AddChild(root_1, stream_statement.NextTree());
-
- }
- stream_statement.Reset();
-
- adaptor.AddChild(root_0, root_1);
- }
-
- }
-
- retval.Tree = root_0;
- }
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(1035, 1);
- } finally { DebugExitRule(GrammarFileName, "ifStatement"); }
- return retval;
-
- }
- // $ANTLR end "ifStatement"
-
- public class iterationStatement_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_iterationStatement() {}
- protected virtual void Leave_iterationStatement() {}
-
- // $ANTLR start "iterationStatement"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1041:1: iterationStatement : ( doStatement | whileStatement | forStatement );
- [GrammarRule("iterationStatement")]
- private ES3Parser.iterationStatement_return iterationStatement()
- {
-
- ES3Parser.iterationStatement_return retval = new ES3Parser.iterationStatement_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- ES3Parser.doStatement_return doStatement181 = default(ES3Parser.doStatement_return);
- ES3Parser.whileStatement_return whileStatement182 = default(ES3Parser.whileStatement_return);
- ES3Parser.forStatement_return forStatement183 = default(ES3Parser.forStatement_return);
-
-
- try { DebugEnterRule(GrammarFileName, "iterationStatement");
- DebugLocation(1041, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1042:2: ( doStatement | whileStatement | forStatement )
- int alt50=3;
- try { DebugEnterDecision(50, decisionCanBacktrack[50]);
- switch (input.LA(1))
- {
- case DO:
- {
- alt50=1;
- }
- break;
- case WHILE:
- {
- alt50=2;
- }
- break;
- case FOR:
- {
- alt50=3;
- }
- break;
- default:
- {
- NoViableAltException nvae = new NoViableAltException("", 50, 0, input);
-
- DebugRecognitionException(nvae);
- throw nvae;
- }
- }
-
- } finally { DebugExitDecision(50); }
- switch (alt50)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1042:4: doStatement
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(1042, 4);
- PushFollow(Follow._doStatement_in_iterationStatement4806);
- doStatement181=doStatement();
- PopFollow();
-
- adaptor.AddChild(root_0, doStatement181.Tree);
-
- }
- break;
- case 2:
- DebugEnterAlt(2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1043:4: whileStatement
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(1043, 4);
- PushFollow(Follow._whileStatement_in_iterationStatement4811);
- whileStatement182=whileStatement();
- PopFollow();
-
- adaptor.AddChild(root_0, whileStatement182.Tree);
-
- }
- break;
- case 3:
- DebugEnterAlt(3);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1044:4: forStatement
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(1044, 4);
- PushFollow(Follow._forStatement_in_iterationStatement4816);
- forStatement183=forStatement();
- PopFollow();
-
- adaptor.AddChild(root_0, forStatement183.Tree);
-
- }
- break;
-
- }
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(1045, 1);
- } finally { DebugExitRule(GrammarFileName, "iterationStatement"); }
- return retval;
-
- }
- // $ANTLR end "iterationStatement"
-
- public class doStatement_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_doStatement() {}
- protected virtual void Leave_doStatement() {}
-
- // $ANTLR start "doStatement"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1047:1: doStatement : DO statement WHILE LPAREN expression RPAREN semic -> ^( DO statement expression ) ;
- [GrammarRule("doStatement")]
- private ES3Parser.doStatement_return doStatement()
- {
-
- ES3Parser.doStatement_return retval = new ES3Parser.doStatement_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken DO184=null;
- IToken WHILE186=null;
- IToken LPAREN187=null;
- IToken RPAREN189=null;
- ES3Parser.statement_return statement185 = default(ES3Parser.statement_return);
- ES3Parser.expression_return expression188 = default(ES3Parser.expression_return);
- ES3Parser.semic_return semic190 = default(ES3Parser.semic_return);
-
- object DO184_tree=null;
- object WHILE186_tree=null;
- object LPAREN187_tree=null;
- object RPAREN189_tree=null;
- RewriteRuleITokenStream stream_RPAREN=new RewriteRuleITokenStream(adaptor,"token RPAREN");
- RewriteRuleITokenStream stream_LPAREN=new RewriteRuleITokenStream(adaptor,"token LPAREN");
- RewriteRuleITokenStream stream_DO=new RewriteRuleITokenStream(adaptor,"token DO");
- RewriteRuleITokenStream stream_WHILE=new RewriteRuleITokenStream(adaptor,"token WHILE");
- RewriteRuleSubtreeStream stream_statement=new RewriteRuleSubtreeStream(adaptor,"rule statement");
- RewriteRuleSubtreeStream stream_semic=new RewriteRuleSubtreeStream(adaptor,"rule semic");
- RewriteRuleSubtreeStream stream_expression=new RewriteRuleSubtreeStream(adaptor,"rule expression");
- try { DebugEnterRule(GrammarFileName, "doStatement");
- DebugLocation(1047, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1048:2: ( DO statement WHILE LPAREN expression RPAREN semic -> ^( DO statement expression ) )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1048:4: DO statement WHILE LPAREN expression RPAREN semic
- {
- DebugLocation(1048, 4);
- DO184=(IToken)Match(input,DO,Follow._DO_in_doStatement4828);
- stream_DO.Add(DO184);
-
- DebugLocation(1048, 7);
- PushFollow(Follow._statement_in_doStatement4830);
- statement185=statement();
- PopFollow();
-
- stream_statement.Add(statement185.Tree);
- DebugLocation(1048, 17);
- WHILE186=(IToken)Match(input,WHILE,Follow._WHILE_in_doStatement4832);
- stream_WHILE.Add(WHILE186);
-
- DebugLocation(1048, 23);
- LPAREN187=(IToken)Match(input,LPAREN,Follow._LPAREN_in_doStatement4834);
- stream_LPAREN.Add(LPAREN187);
-
- DebugLocation(1048, 30);
- PushFollow(Follow._expression_in_doStatement4836);
- expression188=expression();
- PopFollow();
-
- stream_expression.Add(expression188.Tree);
- DebugLocation(1048, 41);
- RPAREN189=(IToken)Match(input,RPAREN,Follow._RPAREN_in_doStatement4838);
- stream_RPAREN.Add(RPAREN189);
-
- DebugLocation(1048, 48);
- PushFollow(Follow._semic_in_doStatement4840);
- semic190=semic();
- PopFollow();
-
- stream_semic.Add(semic190.Tree);
-
-
- {
- // AST REWRITE
- // elements: expression, statement, DO
- // token labels:
- // rule labels: retval
- // token list labels:
- // rule list labels:
- // wildcard labels:
- retval.Tree = root_0;
- RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"rule retval",retval!=null?retval.Tree:null);
-
- root_0 = (object)adaptor.Nil();
- // 1049:2: -> ^( DO statement expression )
- {
- DebugLocation(1049, 5);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1049:5: ^( DO statement expression )
- {
- object root_1 = (object)adaptor.Nil();
- DebugLocation(1049, 8);
- root_1 = (object)adaptor.BecomeRoot(stream_DO.NextNode(), root_1);
-
- DebugLocation(1049, 11);
- adaptor.AddChild(root_1, stream_statement.NextTree());
- DebugLocation(1049, 21);
- adaptor.AddChild(root_1, stream_expression.NextTree());
-
- adaptor.AddChild(root_0, root_1);
- }
-
- }
-
- retval.Tree = root_0;
- }
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(1050, 1);
- } finally { DebugExitRule(GrammarFileName, "doStatement"); }
- return retval;
-
- }
- // $ANTLR end "doStatement"
-
- public class whileStatement_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_whileStatement() {}
- protected virtual void Leave_whileStatement() {}
-
- // $ANTLR start "whileStatement"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1052:1: whileStatement : WHILE LPAREN expression RPAREN statement ;
- [GrammarRule("whileStatement")]
- private ES3Parser.whileStatement_return whileStatement()
- {
-
- ES3Parser.whileStatement_return retval = new ES3Parser.whileStatement_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken WHILE191=null;
- IToken LPAREN192=null;
- IToken RPAREN194=null;
- ES3Parser.expression_return expression193 = default(ES3Parser.expression_return);
- ES3Parser.statement_return statement195 = default(ES3Parser.statement_return);
-
- object WHILE191_tree=null;
- object LPAREN192_tree=null;
- object RPAREN194_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "whileStatement");
- DebugLocation(1052, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1053:2: ( WHILE LPAREN expression RPAREN statement )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1053:4: WHILE LPAREN expression RPAREN statement
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(1053, 9);
- WHILE191=(IToken)Match(input,WHILE,Follow._WHILE_in_whileStatement4865);
- WHILE191_tree = (object)adaptor.Create(WHILE191);
- root_0 = (object)adaptor.BecomeRoot(WHILE191_tree, root_0);
-
- DebugLocation(1053, 17);
- LPAREN192=(IToken)Match(input,LPAREN,Follow._LPAREN_in_whileStatement4868);
- DebugLocation(1053, 19);
- PushFollow(Follow._expression_in_whileStatement4871);
- expression193=expression();
- PopFollow();
-
- adaptor.AddChild(root_0, expression193.Tree);
- DebugLocation(1053, 36);
- RPAREN194=(IToken)Match(input,RPAREN,Follow._RPAREN_in_whileStatement4873);
- DebugLocation(1053, 38);
- PushFollow(Follow._statement_in_whileStatement4876);
- statement195=statement();
- PopFollow();
-
- adaptor.AddChild(root_0, statement195.Tree);
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(1054, 1);
- } finally { DebugExitRule(GrammarFileName, "whileStatement"); }
- return retval;
-
- }
- // $ANTLR end "whileStatement"
-
- public class forStatement_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_forStatement() {}
- protected virtual void Leave_forStatement() {}
-
- // $ANTLR start "forStatement"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1097:1: forStatement : FOR LPAREN forControl RPAREN statement ;
- [GrammarRule("forStatement")]
- private ES3Parser.forStatement_return forStatement()
- {
-
- ES3Parser.forStatement_return retval = new ES3Parser.forStatement_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken FOR196=null;
- IToken LPAREN197=null;
- IToken RPAREN199=null;
- ES3Parser.forControl_return forControl198 = default(ES3Parser.forControl_return);
- ES3Parser.statement_return statement200 = default(ES3Parser.statement_return);
-
- object FOR196_tree=null;
- object LPAREN197_tree=null;
- object RPAREN199_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "forStatement");
- DebugLocation(1097, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1098:2: ( FOR LPAREN forControl RPAREN statement )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1098:4: FOR LPAREN forControl RPAREN statement
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(1098, 7);
- FOR196=(IToken)Match(input,FOR,Follow._FOR_in_forStatement4889);
- FOR196_tree = (object)adaptor.Create(FOR196);
- root_0 = (object)adaptor.BecomeRoot(FOR196_tree, root_0);
-
- DebugLocation(1098, 15);
- LPAREN197=(IToken)Match(input,LPAREN,Follow._LPAREN_in_forStatement4892);
- DebugLocation(1098, 17);
- PushFollow(Follow._forControl_in_forStatement4895);
- forControl198=forControl();
- PopFollow();
-
- adaptor.AddChild(root_0, forControl198.Tree);
- DebugLocation(1098, 34);
- RPAREN199=(IToken)Match(input,RPAREN,Follow._RPAREN_in_forStatement4897);
- DebugLocation(1098, 36);
- PushFollow(Follow._statement_in_forStatement4900);
- statement200=statement();
- PopFollow();
-
- adaptor.AddChild(root_0, statement200.Tree);
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(1099, 1);
- } finally { DebugExitRule(GrammarFileName, "forStatement"); }
- return retval;
-
- }
- // $ANTLR end "forStatement"
-
- public class forControl_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_forControl() {}
- protected virtual void Leave_forControl() {}
-
- // $ANTLR start "forControl"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1101:1: forControl : ( forControlVar | forControlExpression | forControlSemic );
- [GrammarRule("forControl")]
- private ES3Parser.forControl_return forControl()
- {
-
- ES3Parser.forControl_return retval = new ES3Parser.forControl_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- ES3Parser.forControlVar_return forControlVar201 = default(ES3Parser.forControlVar_return);
- ES3Parser.forControlExpression_return forControlExpression202 = default(ES3Parser.forControlExpression_return);
- ES3Parser.forControlSemic_return forControlSemic203 = default(ES3Parser.forControlSemic_return);
-
-
- try { DebugEnterRule(GrammarFileName, "forControl");
- DebugLocation(1101, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1102:2: ( forControlVar | forControlExpression | forControlSemic )
- int alt51=3;
- try { DebugEnterDecision(51, decisionCanBacktrack[51]);
- switch (input.LA(1))
- {
- case VAR:
- {
- alt51=1;
- }
- break;
- case NULL:
- case TRUE:
- case FALSE:
- case DELETE:
- case FUNCTION:
- case NEW:
- case THIS:
- case TYPEOF:
- case VOID:
- case LBRACE:
- case LPAREN:
- case LBRACK:
- case ADD:
- case SUB:
- case INC:
- case DEC:
- case NOT:
- case INV:
- case Identifier:
- case StringLiteral:
- case RegularExpressionLiteral:
- case DecimalLiteral:
- case OctalIntegerLiteral:
- case HexIntegerLiteral:
- {
- alt51=2;
- }
- break;
- case SEMIC:
- {
- alt51=3;
- }
- break;
- default:
- {
- NoViableAltException nvae = new NoViableAltException("", 51, 0, input);
-
- DebugRecognitionException(nvae);
- throw nvae;
- }
- }
-
- } finally { DebugExitDecision(51); }
- switch (alt51)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1102:4: forControlVar
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(1102, 4);
- PushFollow(Follow._forControlVar_in_forControl4911);
- forControlVar201=forControlVar();
- PopFollow();
-
- adaptor.AddChild(root_0, forControlVar201.Tree);
-
- }
- break;
- case 2:
- DebugEnterAlt(2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1103:4: forControlExpression
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(1103, 4);
- PushFollow(Follow._forControlExpression_in_forControl4916);
- forControlExpression202=forControlExpression();
- PopFollow();
-
- adaptor.AddChild(root_0, forControlExpression202.Tree);
-
- }
- break;
- case 3:
- DebugEnterAlt(3);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1104:4: forControlSemic
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(1104, 4);
- PushFollow(Follow._forControlSemic_in_forControl4921);
- forControlSemic203=forControlSemic();
- PopFollow();
-
- adaptor.AddChild(root_0, forControlSemic203.Tree);
-
- }
- break;
-
- }
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(1105, 1);
- } finally { DebugExitRule(GrammarFileName, "forControl"); }
- return retval;
-
- }
- // $ANTLR end "forControl"
-
- public class forControlVar_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_forControlVar() {}
- protected virtual void Leave_forControlVar() {}
-
- // $ANTLR start "forControlVar"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1107:1: forControlVar : VAR variableDeclarationNoIn ( ( IN expression -> ^( FORITER ^( VAR variableDeclarationNoIn ) ^( EXPR expression ) ) ) | ( ( COMMA variableDeclarationNoIn )* SEMIC (ex1= expression )? SEMIC (ex2= expression )? -> ^( FORSTEP ^( VAR ( variableDeclarationNoIn )+ ) ^( EXPR ( $ex1)? ) ^( EXPR ( $ex2)? ) ) ) ) ;
- [GrammarRule("forControlVar")]
- private ES3Parser.forControlVar_return forControlVar()
- {
-
- ES3Parser.forControlVar_return retval = new ES3Parser.forControlVar_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken VAR204=null;
- IToken IN206=null;
- IToken COMMA208=null;
- IToken SEMIC210=null;
- IToken SEMIC211=null;
- ES3Parser.expression_return ex1 = default(ES3Parser.expression_return);
- ES3Parser.expression_return ex2 = default(ES3Parser.expression_return);
- ES3Parser.variableDeclarationNoIn_return variableDeclarationNoIn205 = default(ES3Parser.variableDeclarationNoIn_return);
- ES3Parser.expression_return expression207 = default(ES3Parser.expression_return);
- ES3Parser.variableDeclarationNoIn_return variableDeclarationNoIn209 = default(ES3Parser.variableDeclarationNoIn_return);
-
- object VAR204_tree=null;
- object IN206_tree=null;
- object COMMA208_tree=null;
- object SEMIC210_tree=null;
- object SEMIC211_tree=null;
- RewriteRuleITokenStream stream_COMMA=new RewriteRuleITokenStream(adaptor,"token COMMA");
- RewriteRuleITokenStream stream_VAR=new RewriteRuleITokenStream(adaptor,"token VAR");
- RewriteRuleITokenStream stream_SEMIC=new RewriteRuleITokenStream(adaptor,"token SEMIC");
- RewriteRuleITokenStream stream_IN=new RewriteRuleITokenStream(adaptor,"token IN");
- RewriteRuleSubtreeStream stream_variableDeclarationNoIn=new RewriteRuleSubtreeStream(adaptor,"rule variableDeclarationNoIn");
- RewriteRuleSubtreeStream stream_expression=new RewriteRuleSubtreeStream(adaptor,"rule expression");
- try { DebugEnterRule(GrammarFileName, "forControlVar");
- DebugLocation(1107, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1108:2: ( VAR variableDeclarationNoIn ( ( IN expression -> ^( FORITER ^( VAR variableDeclarationNoIn ) ^( EXPR expression ) ) ) | ( ( COMMA variableDeclarationNoIn )* SEMIC (ex1= expression )? SEMIC (ex2= expression )? -> ^( FORSTEP ^( VAR ( variableDeclarationNoIn )+ ) ^( EXPR ( $ex1)? ) ^( EXPR ( $ex2)? ) ) ) ) )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1108:4: VAR variableDeclarationNoIn ( ( IN expression -> ^( FORITER ^( VAR variableDeclarationNoIn ) ^( EXPR expression ) ) ) | ( ( COMMA variableDeclarationNoIn )* SEMIC (ex1= expression )? SEMIC (ex2= expression )? -> ^( FORSTEP ^( VAR ( variableDeclarationNoIn )+ ) ^( EXPR ( $ex1)? ) ^( EXPR ( $ex2)? ) ) ) )
- {
- DebugLocation(1108, 4);
- VAR204=(IToken)Match(input,VAR,Follow._VAR_in_forControlVar4932);
- stream_VAR.Add(VAR204);
-
- DebugLocation(1108, 8);
- PushFollow(Follow._variableDeclarationNoIn_in_forControlVar4934);
- variableDeclarationNoIn205=variableDeclarationNoIn();
- PopFollow();
-
- stream_variableDeclarationNoIn.Add(variableDeclarationNoIn205.Tree);
- DebugLocation(1109, 2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1109:2: ( ( IN expression -> ^( FORITER ^( VAR variableDeclarationNoIn ) ^( EXPR expression ) ) ) | ( ( COMMA variableDeclarationNoIn )* SEMIC (ex1= expression )? SEMIC (ex2= expression )? -> ^( FORSTEP ^( VAR ( variableDeclarationNoIn )+ ) ^( EXPR ( $ex1)? ) ^( EXPR ( $ex2)? ) ) ) )
- int alt55=2;
- try { DebugEnterSubRule(55);
- try { DebugEnterDecision(55, decisionCanBacktrack[55]);
- int LA55_0 = input.LA(1);
-
- if ((LA55_0==IN))
- {
- alt55=1;
- }
- else if (((LA55_0>=SEMIC && LA55_0<=COMMA)))
- {
- alt55=2;
- }
- else
- {
- NoViableAltException nvae = new NoViableAltException("", 55, 0, input);
-
- DebugRecognitionException(nvae);
- throw nvae;
- }
- } finally { DebugExitDecision(55); }
- switch (alt55)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1110:3: ( IN expression -> ^( FORITER ^( VAR variableDeclarationNoIn ) ^( EXPR expression ) ) )
- {
- DebugLocation(1110, 3);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1110:3: ( IN expression -> ^( FORITER ^( VAR variableDeclarationNoIn ) ^( EXPR expression ) ) )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1111:4: IN expression
- {
- DebugLocation(1111, 4);
- IN206=(IToken)Match(input,IN,Follow._IN_in_forControlVar4946);
- stream_IN.Add(IN206);
-
- DebugLocation(1111, 7);
- PushFollow(Follow._expression_in_forControlVar4948);
- expression207=expression();
- PopFollow();
-
- stream_expression.Add(expression207.Tree);
-
-
- {
- // AST REWRITE
- // elements: variableDeclarationNoIn, VAR, expression
- // token labels:
- // rule labels: retval
- // token list labels:
- // rule list labels:
- // wildcard labels:
- retval.Tree = root_0;
- RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"rule retval",retval!=null?retval.Tree:null);
-
- root_0 = (object)adaptor.Nil();
- // 1112:4: -> ^( FORITER ^( VAR variableDeclarationNoIn ) ^( EXPR expression ) )
- {
- DebugLocation(1112, 7);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1112:7: ^( FORITER ^( VAR variableDeclarationNoIn ) ^( EXPR expression ) )
- {
- object root_1 = (object)adaptor.Nil();
- DebugLocation(1112, 10);
- root_1 = (object)adaptor.BecomeRoot((object)adaptor.Create(FORITER, "FORITER"), root_1);
-
- DebugLocation(1112, 18);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1112:18: ^( VAR variableDeclarationNoIn )
- {
- object root_2 = (object)adaptor.Nil();
- DebugLocation(1112, 21);
- root_2 = (object)adaptor.BecomeRoot(stream_VAR.NextNode(), root_2);
-
- DebugLocation(1112, 25);
- adaptor.AddChild(root_2, stream_variableDeclarationNoIn.NextTree());
-
- adaptor.AddChild(root_1, root_2);
- }
- DebugLocation(1112, 51);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1112:51: ^( EXPR expression )
- {
- object root_2 = (object)adaptor.Nil();
- DebugLocation(1112, 54);
- root_2 = (object)adaptor.BecomeRoot((object)adaptor.Create(EXPR, "EXPR"), root_2);
-
- DebugLocation(1112, 59);
- adaptor.AddChild(root_2, stream_expression.NextTree());
-
- adaptor.AddChild(root_1, root_2);
- }
-
- adaptor.AddChild(root_0, root_1);
- }
-
- }
-
- retval.Tree = root_0;
- }
-
- }
-
-
- }
- break;
- case 2:
- DebugEnterAlt(2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1115:3: ( ( COMMA variableDeclarationNoIn )* SEMIC (ex1= expression )? SEMIC (ex2= expression )? -> ^( FORSTEP ^( VAR ( variableDeclarationNoIn )+ ) ^( EXPR ( $ex1)? ) ^( EXPR ( $ex2)? ) ) )
- {
- DebugLocation(1115, 3);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1115:3: ( ( COMMA variableDeclarationNoIn )* SEMIC (ex1= expression )? SEMIC (ex2= expression )? -> ^( FORSTEP ^( VAR ( variableDeclarationNoIn )+ ) ^( EXPR ( $ex1)? ) ^( EXPR ( $ex2)? ) ) )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1116:4: ( COMMA variableDeclarationNoIn )* SEMIC (ex1= expression )? SEMIC (ex2= expression )?
- {
- DebugLocation(1116, 4);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1116:4: ( COMMA variableDeclarationNoIn )*
- try { DebugEnterSubRule(52);
- while (true)
- {
- int alt52=2;
- try { DebugEnterDecision(52, decisionCanBacktrack[52]);
- int LA52_0 = input.LA(1);
-
- if ((LA52_0==COMMA))
- {
- alt52=1;
- }
-
-
- } finally { DebugExitDecision(52); }
- switch ( alt52 )
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1116:6: COMMA variableDeclarationNoIn
- {
- DebugLocation(1116, 6);
- COMMA208=(IToken)Match(input,COMMA,Follow._COMMA_in_forControlVar4994);
- stream_COMMA.Add(COMMA208);
-
- DebugLocation(1116, 12);
- PushFollow(Follow._variableDeclarationNoIn_in_forControlVar4996);
- variableDeclarationNoIn209=variableDeclarationNoIn();
- PopFollow();
-
- stream_variableDeclarationNoIn.Add(variableDeclarationNoIn209.Tree);
-
- }
- break;
-
- default:
- goto loop52;
- }
- }
-
- loop52:
- ;
-
- } finally { DebugExitSubRule(52); }
-
- DebugLocation(1116, 39);
- SEMIC210=(IToken)Match(input,SEMIC,Follow._SEMIC_in_forControlVar5001);
- stream_SEMIC.Add(SEMIC210);
-
- DebugLocation(1116, 48);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1116:48: (ex1= expression )?
- int alt53=2;
- try { DebugEnterSubRule(53);
- try { DebugEnterDecision(53, decisionCanBacktrack[53]);
- int LA53_0 = input.LA(1);
-
- if (((LA53_0>=NULL && LA53_0<=FALSE)||LA53_0==DELETE||LA53_0==FUNCTION||LA53_0==NEW||LA53_0==THIS||LA53_0==TYPEOF||LA53_0==VOID||LA53_0==LBRACE||LA53_0==LPAREN||LA53_0==LBRACK||(LA53_0>=ADD && LA53_0<=SUB)||(LA53_0>=INC && LA53_0<=DEC)||(LA53_0>=NOT && LA53_0<=INV)||(LA53_0>=Identifier && LA53_0<=StringLiteral)||LA53_0==RegularExpressionLiteral||(LA53_0>=DecimalLiteral && LA53_0<=HexIntegerLiteral)))
- {
- alt53=1;
- }
- } finally { DebugExitDecision(53); }
- switch (alt53)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1116:48: ex1= expression
- {
- DebugLocation(1116, 48);
- PushFollow(Follow._expression_in_forControlVar5005);
- ex1=expression();
- PopFollow();
-
- stream_expression.Add(ex1.Tree);
-
- }
- break;
-
- }
- } finally { DebugExitSubRule(53); }
-
- DebugLocation(1116, 61);
- SEMIC211=(IToken)Match(input,SEMIC,Follow._SEMIC_in_forControlVar5008);
- stream_SEMIC.Add(SEMIC211);
-
- DebugLocation(1116, 70);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1116:70: (ex2= expression )?
- int alt54=2;
- try { DebugEnterSubRule(54);
- try { DebugEnterDecision(54, decisionCanBacktrack[54]);
- int LA54_0 = input.LA(1);
-
- if (((LA54_0>=NULL && LA54_0<=FALSE)||LA54_0==DELETE||LA54_0==FUNCTION||LA54_0==NEW||LA54_0==THIS||LA54_0==TYPEOF||LA54_0==VOID||LA54_0==LBRACE||LA54_0==LPAREN||LA54_0==LBRACK||(LA54_0>=ADD && LA54_0<=SUB)||(LA54_0>=INC && LA54_0<=DEC)||(LA54_0>=NOT && LA54_0<=INV)||(LA54_0>=Identifier && LA54_0<=StringLiteral)||LA54_0==RegularExpressionLiteral||(LA54_0>=DecimalLiteral && LA54_0<=HexIntegerLiteral)))
- {
- alt54=1;
- }
- } finally { DebugExitDecision(54); }
- switch (alt54)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1116:70: ex2= expression
- {
- DebugLocation(1116, 70);
- PushFollow(Follow._expression_in_forControlVar5012);
- ex2=expression();
- PopFollow();
-
- stream_expression.Add(ex2.Tree);
-
- }
- break;
-
- }
- } finally { DebugExitSubRule(54); }
-
-
-
- {
- // AST REWRITE
- // elements: ex2, ex1, VAR, variableDeclarationNoIn
- // token labels:
- // rule labels: ex2, retval, ex1
- // token list labels:
- // rule list labels:
- // wildcard labels:
- retval.Tree = root_0;
- RewriteRuleSubtreeStream stream_ex2=new RewriteRuleSubtreeStream(adaptor,"rule ex2",ex2!=null?ex2.Tree:null);
- RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"rule retval",retval!=null?retval.Tree:null);
- RewriteRuleSubtreeStream stream_ex1=new RewriteRuleSubtreeStream(adaptor,"rule ex1",ex1!=null?ex1.Tree:null);
-
- root_0 = (object)adaptor.Nil();
- // 1117:4: -> ^( FORSTEP ^( VAR ( variableDeclarationNoIn )+ ) ^( EXPR ( $ex1)? ) ^( EXPR ( $ex2)? ) )
- {
- DebugLocation(1117, 7);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1117:7: ^( FORSTEP ^( VAR ( variableDeclarationNoIn )+ ) ^( EXPR ( $ex1)? ) ^( EXPR ( $ex2)? ) )
- {
- object root_1 = (object)adaptor.Nil();
- DebugLocation(1117, 10);
- root_1 = (object)adaptor.BecomeRoot((object)adaptor.Create(FORSTEP, "FORSTEP"), root_1);
-
- DebugLocation(1117, 18);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1117:18: ^( VAR ( variableDeclarationNoIn )+ )
- {
- object root_2 = (object)adaptor.Nil();
- DebugLocation(1117, 21);
- root_2 = (object)adaptor.BecomeRoot(stream_VAR.NextNode(), root_2);
-
- DebugLocation(1117, 25);
- if ( !(stream_variableDeclarationNoIn.HasNext) )
- {
- throw new RewriteEarlyExitException();
- }
- while ( stream_variableDeclarationNoIn.HasNext )
- {
- DebugLocation(1117, 25);
- adaptor.AddChild(root_2, stream_variableDeclarationNoIn.NextTree());
-
- }
- stream_variableDeclarationNoIn.Reset();
-
- adaptor.AddChild(root_1, root_2);
- }
- DebugLocation(1117, 52);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1117:52: ^( EXPR ( $ex1)? )
- {
- object root_2 = (object)adaptor.Nil();
- DebugLocation(1117, 55);
- root_2 = (object)adaptor.BecomeRoot((object)adaptor.Create(EXPR, "EXPR"), root_2);
-
- DebugLocation(1117, 60);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1117:60: ( $ex1)?
- if ( stream_ex1.HasNext )
- {
- DebugLocation(1117, 60);
- adaptor.AddChild(root_2, stream_ex1.NextTree());
-
- }
- stream_ex1.Reset();
-
- adaptor.AddChild(root_1, root_2);
- }
- DebugLocation(1117, 68);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1117:68: ^( EXPR ( $ex2)? )
- {
- object root_2 = (object)adaptor.Nil();
- DebugLocation(1117, 71);
- root_2 = (object)adaptor.BecomeRoot((object)adaptor.Create(EXPR, "EXPR"), root_2);
-
- DebugLocation(1117, 76);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1117:76: ( $ex2)?
- if ( stream_ex2.HasNext )
- {
- DebugLocation(1117, 76);
- adaptor.AddChild(root_2, stream_ex2.NextTree());
-
- }
- stream_ex2.Reset();
-
- adaptor.AddChild(root_1, root_2);
- }
-
- adaptor.AddChild(root_0, root_1);
- }
-
- }
-
- retval.Tree = root_0;
- }
-
- }
-
-
- }
- break;
-
- }
- } finally { DebugExitSubRule(55); }
-
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(1120, 1);
- } finally { DebugExitRule(GrammarFileName, "forControlVar"); }
- return retval;
-
- }
- // $ANTLR end "forControlVar"
-
- public class forControlExpression_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_forControlExpression() {}
- protected virtual void Leave_forControlExpression() {}
-
- // $ANTLR start "forControlExpression"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1122:1: forControlExpression : ex1= expressionNoIn ({...}? ( IN ex2= expression -> ^( FORITER ^( EXPR $ex1) ^( EXPR $ex2) ) ) | ( SEMIC (ex2= expression )? SEMIC (ex3= expression )? -> ^( FORSTEP ^( EXPR $ex1) ^( EXPR ( $ex2)? ) ^( EXPR ( $ex3)? ) ) ) ) ;
- [GrammarRule("forControlExpression")]
- private ES3Parser.forControlExpression_return forControlExpression()
- {
-
- ES3Parser.forControlExpression_return retval = new ES3Parser.forControlExpression_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken IN212=null;
- IToken SEMIC213=null;
- IToken SEMIC214=null;
- ES3Parser.expressionNoIn_return ex1 = default(ES3Parser.expressionNoIn_return);
- ES3Parser.expression_return ex2 = default(ES3Parser.expression_return);
- ES3Parser.expression_return ex3 = default(ES3Parser.expression_return);
-
- object IN212_tree=null;
- object SEMIC213_tree=null;
- object SEMIC214_tree=null;
- RewriteRuleITokenStream stream_SEMIC=new RewriteRuleITokenStream(adaptor,"token SEMIC");
- RewriteRuleITokenStream stream_IN=new RewriteRuleITokenStream(adaptor,"token IN");
- RewriteRuleSubtreeStream stream_expressionNoIn=new RewriteRuleSubtreeStream(adaptor,"rule expressionNoIn");
- RewriteRuleSubtreeStream stream_expression=new RewriteRuleSubtreeStream(adaptor,"rule expression");
-
- bool? isLhs = null;
-
- try { DebugEnterRule(GrammarFileName, "forControlExpression");
- DebugLocation(1122, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1127:2: (ex1= expressionNoIn ({...}? ( IN ex2= expression -> ^( FORITER ^( EXPR $ex1) ^( EXPR $ex2) ) ) | ( SEMIC (ex2= expression )? SEMIC (ex3= expression )? -> ^( FORSTEP ^( EXPR $ex1) ^( EXPR ( $ex2)? ) ^( EXPR ( $ex3)? ) ) ) ) )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1127:4: ex1= expressionNoIn ({...}? ( IN ex2= expression -> ^( FORITER ^( EXPR $ex1) ^( EXPR $ex2) ) ) | ( SEMIC (ex2= expression )? SEMIC (ex3= expression )? -> ^( FORSTEP ^( EXPR $ex1) ^( EXPR ( $ex2)? ) ^( EXPR ( $ex3)? ) ) ) )
- {
- DebugLocation(1127, 7);
- PushFollow(Follow._expressionNoIn_in_forControlExpression5078);
- ex1=expressionNoIn();
- PopFollow();
-
- stream_expressionNoIn.Add(ex1.Tree);
- DebugLocation(1128, 2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1128:2: ({...}? ( IN ex2= expression -> ^( FORITER ^( EXPR $ex1) ^( EXPR $ex2) ) ) | ( SEMIC (ex2= expression )? SEMIC (ex3= expression )? -> ^( FORSTEP ^( EXPR $ex1) ^( EXPR ( $ex2)? ) ^( EXPR ( $ex3)? ) ) ) )
- int alt58=2;
- try { DebugEnterSubRule(58);
- try { DebugEnterDecision(58, decisionCanBacktrack[58]);
- int LA58_0 = input.LA(1);
-
- if ((LA58_0==IN))
- {
- alt58=1;
- }
- else if ((LA58_0==SEMIC))
- {
- alt58=2;
- }
- else
- {
- NoViableAltException nvae = new NoViableAltException("", 58, 0, input);
-
- DebugRecognitionException(nvae);
- throw nvae;
- }
- } finally { DebugExitDecision(58); }
- switch (alt58)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1129:3: {...}? ( IN ex2= expression -> ^( FORITER ^( EXPR $ex1) ^( EXPR $ex2) ) )
- {
- DebugLocation(1129, 3);
- if (!(( IsLeftHandSideIn(ex1, ref isLhs) )))
- {
- throw new FailedPredicateException(input, "forControlExpression", " IsLeftHandSideIn(ex1, ref isLhs) ");
- }
- DebugLocation(1129, 41);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1129:41: ( IN ex2= expression -> ^( FORITER ^( EXPR $ex1) ^( EXPR $ex2) ) )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1130:4: IN ex2= expression
- {
- DebugLocation(1130, 4);
- IN212=(IToken)Match(input,IN,Follow._IN_in_forControlExpression5093);
- stream_IN.Add(IN212);
-
- DebugLocation(1130, 10);
- PushFollow(Follow._expression_in_forControlExpression5097);
- ex2=expression();
- PopFollow();
-
- stream_expression.Add(ex2.Tree);
-
-
- {
- // AST REWRITE
- // elements: ex2, ex1
- // token labels:
- // rule labels: ex2, retval, ex1
- // token list labels:
- // rule list labels:
- // wildcard labels:
- retval.Tree = root_0;
- RewriteRuleSubtreeStream stream_ex2=new RewriteRuleSubtreeStream(adaptor,"rule ex2",ex2!=null?ex2.Tree:null);
- RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"rule retval",retval!=null?retval.Tree:null);
- RewriteRuleSubtreeStream stream_ex1=new RewriteRuleSubtreeStream(adaptor,"rule ex1",ex1!=null?ex1.Tree:null);
-
- root_0 = (object)adaptor.Nil();
- // 1131:4: -> ^( FORITER ^( EXPR $ex1) ^( EXPR $ex2) )
- {
- DebugLocation(1131, 7);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1131:7: ^( FORITER ^( EXPR $ex1) ^( EXPR $ex2) )
- {
- object root_1 = (object)adaptor.Nil();
- DebugLocation(1131, 10);
- root_1 = (object)adaptor.BecomeRoot((object)adaptor.Create(FORITER, "FORITER"), root_1);
-
- DebugLocation(1131, 18);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1131:18: ^( EXPR $ex1)
- {
- object root_2 = (object)adaptor.Nil();
- DebugLocation(1131, 21);
- root_2 = (object)adaptor.BecomeRoot((object)adaptor.Create(EXPR, "EXPR"), root_2);
-
- DebugLocation(1131, 26);
- adaptor.AddChild(root_2, stream_ex1.NextTree());
-
- adaptor.AddChild(root_1, root_2);
- }
- DebugLocation(1131, 33);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1131:33: ^( EXPR $ex2)
- {
- object root_2 = (object)adaptor.Nil();
- DebugLocation(1131, 36);
- root_2 = (object)adaptor.BecomeRoot((object)adaptor.Create(EXPR, "EXPR"), root_2);
-
- DebugLocation(1131, 41);
- adaptor.AddChild(root_2, stream_ex2.NextTree());
-
- adaptor.AddChild(root_1, root_2);
- }
-
- adaptor.AddChild(root_0, root_1);
- }
-
- }
-
- retval.Tree = root_0;
- }
-
- }
-
-
- }
- break;
- case 2:
- DebugEnterAlt(2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1134:3: ( SEMIC (ex2= expression )? SEMIC (ex3= expression )? -> ^( FORSTEP ^( EXPR $ex1) ^( EXPR ( $ex2)? ) ^( EXPR ( $ex3)? ) ) )
- {
- DebugLocation(1134, 3);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1134:3: ( SEMIC (ex2= expression )? SEMIC (ex3= expression )? -> ^( FORSTEP ^( EXPR $ex1) ^( EXPR ( $ex2)? ) ^( EXPR ( $ex3)? ) ) )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1135:4: SEMIC (ex2= expression )? SEMIC (ex3= expression )?
- {
- DebugLocation(1135, 4);
- SEMIC213=(IToken)Match(input,SEMIC,Follow._SEMIC_in_forControlExpression5143);
- stream_SEMIC.Add(SEMIC213);
-
- DebugLocation(1135, 13);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1135:13: (ex2= expression )?
- int alt56=2;
- try { DebugEnterSubRule(56);
- try { DebugEnterDecision(56, decisionCanBacktrack[56]);
- int LA56_0 = input.LA(1);
-
- if (((LA56_0>=NULL && LA56_0<=FALSE)||LA56_0==DELETE||LA56_0==FUNCTION||LA56_0==NEW||LA56_0==THIS||LA56_0==TYPEOF||LA56_0==VOID||LA56_0==LBRACE||LA56_0==LPAREN||LA56_0==LBRACK||(LA56_0>=ADD && LA56_0<=SUB)||(LA56_0>=INC && LA56_0<=DEC)||(LA56_0>=NOT && LA56_0<=INV)||(LA56_0>=Identifier && LA56_0<=StringLiteral)||LA56_0==RegularExpressionLiteral||(LA56_0>=DecimalLiteral && LA56_0<=HexIntegerLiteral)))
- {
- alt56=1;
- }
- } finally { DebugExitDecision(56); }
- switch (alt56)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1135:13: ex2= expression
- {
- DebugLocation(1135, 13);
- PushFollow(Follow._expression_in_forControlExpression5147);
- ex2=expression();
- PopFollow();
-
- stream_expression.Add(ex2.Tree);
-
- }
- break;
-
- }
- } finally { DebugExitSubRule(56); }
-
- DebugLocation(1135, 26);
- SEMIC214=(IToken)Match(input,SEMIC,Follow._SEMIC_in_forControlExpression5150);
- stream_SEMIC.Add(SEMIC214);
-
- DebugLocation(1135, 35);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1135:35: (ex3= expression )?
- int alt57=2;
- try { DebugEnterSubRule(57);
- try { DebugEnterDecision(57, decisionCanBacktrack[57]);
- int LA57_0 = input.LA(1);
-
- if (((LA57_0>=NULL && LA57_0<=FALSE)||LA57_0==DELETE||LA57_0==FUNCTION||LA57_0==NEW||LA57_0==THIS||LA57_0==TYPEOF||LA57_0==VOID||LA57_0==LBRACE||LA57_0==LPAREN||LA57_0==LBRACK||(LA57_0>=ADD && LA57_0<=SUB)||(LA57_0>=INC && LA57_0<=DEC)||(LA57_0>=NOT && LA57_0<=INV)||(LA57_0>=Identifier && LA57_0<=StringLiteral)||LA57_0==RegularExpressionLiteral||(LA57_0>=DecimalLiteral && LA57_0<=HexIntegerLiteral)))
- {
- alt57=1;
- }
- } finally { DebugExitDecision(57); }
- switch (alt57)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1135:35: ex3= expression
- {
- DebugLocation(1135, 35);
- PushFollow(Follow._expression_in_forControlExpression5154);
- ex3=expression();
- PopFollow();
-
- stream_expression.Add(ex3.Tree);
-
- }
- break;
-
- }
- } finally { DebugExitSubRule(57); }
-
-
-
- {
- // AST REWRITE
- // elements: ex2, ex1, ex3
- // token labels:
- // rule labels: ex2, retval, ex1, ex3
- // token list labels:
- // rule list labels:
- // wildcard labels:
- retval.Tree = root_0;
- RewriteRuleSubtreeStream stream_ex2=new RewriteRuleSubtreeStream(adaptor,"rule ex2",ex2!=null?ex2.Tree:null);
- RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"rule retval",retval!=null?retval.Tree:null);
- RewriteRuleSubtreeStream stream_ex1=new RewriteRuleSubtreeStream(adaptor,"rule ex1",ex1!=null?ex1.Tree:null);
- RewriteRuleSubtreeStream stream_ex3=new RewriteRuleSubtreeStream(adaptor,"rule ex3",ex3!=null?ex3.Tree:null);
-
- root_0 = (object)adaptor.Nil();
- // 1136:4: -> ^( FORSTEP ^( EXPR $ex1) ^( EXPR ( $ex2)? ) ^( EXPR ( $ex3)? ) )
- {
- DebugLocation(1136, 7);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1136:7: ^( FORSTEP ^( EXPR $ex1) ^( EXPR ( $ex2)? ) ^( EXPR ( $ex3)? ) )
- {
- object root_1 = (object)adaptor.Nil();
- DebugLocation(1136, 10);
- root_1 = (object)adaptor.BecomeRoot((object)adaptor.Create(FORSTEP, "FORSTEP"), root_1);
-
- DebugLocation(1136, 18);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1136:18: ^( EXPR $ex1)
- {
- object root_2 = (object)adaptor.Nil();
- DebugLocation(1136, 21);
- root_2 = (object)adaptor.BecomeRoot((object)adaptor.Create(EXPR, "EXPR"), root_2);
-
- DebugLocation(1136, 26);
- adaptor.AddChild(root_2, stream_ex1.NextTree());
-
- adaptor.AddChild(root_1, root_2);
- }
- DebugLocation(1136, 33);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1136:33: ^( EXPR ( $ex2)? )
- {
- object root_2 = (object)adaptor.Nil();
- DebugLocation(1136, 36);
- root_2 = (object)adaptor.BecomeRoot((object)adaptor.Create(EXPR, "EXPR"), root_2);
-
- DebugLocation(1136, 41);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1136:41: ( $ex2)?
- if ( stream_ex2.HasNext )
- {
- DebugLocation(1136, 41);
- adaptor.AddChild(root_2, stream_ex2.NextTree());
-
- }
- stream_ex2.Reset();
-
- adaptor.AddChild(root_1, root_2);
- }
- DebugLocation(1136, 49);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1136:49: ^( EXPR ( $ex3)? )
- {
- object root_2 = (object)adaptor.Nil();
- DebugLocation(1136, 52);
- root_2 = (object)adaptor.BecomeRoot((object)adaptor.Create(EXPR, "EXPR"), root_2);
-
- DebugLocation(1136, 57);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1136:57: ( $ex3)?
- if ( stream_ex3.HasNext )
- {
- DebugLocation(1136, 57);
- adaptor.AddChild(root_2, stream_ex3.NextTree());
-
- }
- stream_ex3.Reset();
-
- adaptor.AddChild(root_1, root_2);
- }
-
- adaptor.AddChild(root_0, root_1);
- }
-
- }
-
- retval.Tree = root_0;
- }
-
- }
-
-
- }
- break;
-
- }
- } finally { DebugExitSubRule(58); }
-
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(1139, 1);
- } finally { DebugExitRule(GrammarFileName, "forControlExpression"); }
- return retval;
-
- }
- // $ANTLR end "forControlExpression"
-
- public class forControlSemic_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_forControlSemic() {}
- protected virtual void Leave_forControlSemic() {}
-
- // $ANTLR start "forControlSemic"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1141:1: forControlSemic : SEMIC (ex1= expression )? SEMIC (ex2= expression )? -> ^( FORSTEP ^( EXPR ) ^( EXPR ( $ex1)? ) ^( EXPR ( $ex2)? ) ) ;
- [GrammarRule("forControlSemic")]
- private ES3Parser.forControlSemic_return forControlSemic()
- {
-
- ES3Parser.forControlSemic_return retval = new ES3Parser.forControlSemic_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken SEMIC215=null;
- IToken SEMIC216=null;
- ES3Parser.expression_return ex1 = default(ES3Parser.expression_return);
- ES3Parser.expression_return ex2 = default(ES3Parser.expression_return);
-
- object SEMIC215_tree=null;
- object SEMIC216_tree=null;
- RewriteRuleITokenStream stream_SEMIC=new RewriteRuleITokenStream(adaptor,"token SEMIC");
- RewriteRuleSubtreeStream stream_expression=new RewriteRuleSubtreeStream(adaptor,"rule expression");
- try { DebugEnterRule(GrammarFileName, "forControlSemic");
- DebugLocation(1141, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1142:2: ( SEMIC (ex1= expression )? SEMIC (ex2= expression )? -> ^( FORSTEP ^( EXPR ) ^( EXPR ( $ex1)? ) ^( EXPR ( $ex2)? ) ) )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1142:4: SEMIC (ex1= expression )? SEMIC (ex2= expression )?
- {
- DebugLocation(1142, 4);
- SEMIC215=(IToken)Match(input,SEMIC,Follow._SEMIC_in_forControlSemic5213);
- stream_SEMIC.Add(SEMIC215);
-
- DebugLocation(1142, 13);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1142:13: (ex1= expression )?
- int alt59=2;
- try { DebugEnterSubRule(59);
- try { DebugEnterDecision(59, decisionCanBacktrack[59]);
- int LA59_0 = input.LA(1);
-
- if (((LA59_0>=NULL && LA59_0<=FALSE)||LA59_0==DELETE||LA59_0==FUNCTION||LA59_0==NEW||LA59_0==THIS||LA59_0==TYPEOF||LA59_0==VOID||LA59_0==LBRACE||LA59_0==LPAREN||LA59_0==LBRACK||(LA59_0>=ADD && LA59_0<=SUB)||(LA59_0>=INC && LA59_0<=DEC)||(LA59_0>=NOT && LA59_0<=INV)||(LA59_0>=Identifier && LA59_0<=StringLiteral)||LA59_0==RegularExpressionLiteral||(LA59_0>=DecimalLiteral && LA59_0<=HexIntegerLiteral)))
- {
- alt59=1;
- }
- } finally { DebugExitDecision(59); }
- switch (alt59)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1142:13: ex1= expression
- {
- DebugLocation(1142, 13);
- PushFollow(Follow._expression_in_forControlSemic5217);
- ex1=expression();
- PopFollow();
-
- stream_expression.Add(ex1.Tree);
-
- }
- break;
-
- }
- } finally { DebugExitSubRule(59); }
-
- DebugLocation(1142, 26);
- SEMIC216=(IToken)Match(input,SEMIC,Follow._SEMIC_in_forControlSemic5220);
- stream_SEMIC.Add(SEMIC216);
-
- DebugLocation(1142, 35);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1142:35: (ex2= expression )?
- int alt60=2;
- try { DebugEnterSubRule(60);
- try { DebugEnterDecision(60, decisionCanBacktrack[60]);
- int LA60_0 = input.LA(1);
-
- if (((LA60_0>=NULL && LA60_0<=FALSE)||LA60_0==DELETE||LA60_0==FUNCTION||LA60_0==NEW||LA60_0==THIS||LA60_0==TYPEOF||LA60_0==VOID||LA60_0==LBRACE||LA60_0==LPAREN||LA60_0==LBRACK||(LA60_0>=ADD && LA60_0<=SUB)||(LA60_0>=INC && LA60_0<=DEC)||(LA60_0>=NOT && LA60_0<=INV)||(LA60_0>=Identifier && LA60_0<=StringLiteral)||LA60_0==RegularExpressionLiteral||(LA60_0>=DecimalLiteral && LA60_0<=HexIntegerLiteral)))
- {
- alt60=1;
- }
- } finally { DebugExitDecision(60); }
- switch (alt60)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1142:35: ex2= expression
- {
- DebugLocation(1142, 35);
- PushFollow(Follow._expression_in_forControlSemic5224);
- ex2=expression();
- PopFollow();
-
- stream_expression.Add(ex2.Tree);
-
- }
- break;
-
- }
- } finally { DebugExitSubRule(60); }
-
-
-
- {
- // AST REWRITE
- // elements: ex2, ex1
- // token labels:
- // rule labels: ex2, retval, ex1
- // token list labels:
- // rule list labels:
- // wildcard labels:
- retval.Tree = root_0;
- RewriteRuleSubtreeStream stream_ex2=new RewriteRuleSubtreeStream(adaptor,"rule ex2",ex2!=null?ex2.Tree:null);
- RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"rule retval",retval!=null?retval.Tree:null);
- RewriteRuleSubtreeStream stream_ex1=new RewriteRuleSubtreeStream(adaptor,"rule ex1",ex1!=null?ex1.Tree:null);
-
- root_0 = (object)adaptor.Nil();
- // 1143:2: -> ^( FORSTEP ^( EXPR ) ^( EXPR ( $ex1)? ) ^( EXPR ( $ex2)? ) )
- {
- DebugLocation(1143, 5);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1143:5: ^( FORSTEP ^( EXPR ) ^( EXPR ( $ex1)? ) ^( EXPR ( $ex2)? ) )
- {
- object root_1 = (object)adaptor.Nil();
- DebugLocation(1143, 8);
- root_1 = (object)adaptor.BecomeRoot((object)adaptor.Create(FORSTEP, "FORSTEP"), root_1);
-
- DebugLocation(1143, 16);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1143:16: ^( EXPR )
- {
- object root_2 = (object)adaptor.Nil();
- DebugLocation(1143, 19);
- root_2 = (object)adaptor.BecomeRoot((object)adaptor.Create(EXPR, "EXPR"), root_2);
-
- adaptor.AddChild(root_1, root_2);
- }
- DebugLocation(1143, 26);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1143:26: ^( EXPR ( $ex1)? )
- {
- object root_2 = (object)adaptor.Nil();
- DebugLocation(1143, 29);
- root_2 = (object)adaptor.BecomeRoot((object)adaptor.Create(EXPR, "EXPR"), root_2);
-
- DebugLocation(1143, 34);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1143:34: ( $ex1)?
- if ( stream_ex1.HasNext )
- {
- DebugLocation(1143, 34);
- adaptor.AddChild(root_2, stream_ex1.NextTree());
-
- }
- stream_ex1.Reset();
-
- adaptor.AddChild(root_1, root_2);
- }
- DebugLocation(1143, 42);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1143:42: ^( EXPR ( $ex2)? )
- {
- object root_2 = (object)adaptor.Nil();
- DebugLocation(1143, 45);
- root_2 = (object)adaptor.BecomeRoot((object)adaptor.Create(EXPR, "EXPR"), root_2);
-
- DebugLocation(1143, 50);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1143:50: ( $ex2)?
- if ( stream_ex2.HasNext )
- {
- DebugLocation(1143, 50);
- adaptor.AddChild(root_2, stream_ex2.NextTree());
-
- }
- stream_ex2.Reset();
-
- adaptor.AddChild(root_1, root_2);
- }
-
- adaptor.AddChild(root_0, root_1);
- }
-
- }
-
- retval.Tree = root_0;
- }
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(1144, 1);
- } finally { DebugExitRule(GrammarFileName, "forControlSemic"); }
- return retval;
-
- }
- // $ANTLR end "forControlSemic"
-
- public class continueStatement_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_continueStatement() {}
- protected virtual void Leave_continueStatement() {}
-
- // $ANTLR start "continueStatement"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1155:1: continueStatement : CONTINUE ( Identifier )? semic ;
- [GrammarRule("continueStatement")]
- private ES3Parser.continueStatement_return continueStatement()
- {
-
- ES3Parser.continueStatement_return retval = new ES3Parser.continueStatement_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken CONTINUE217=null;
- IToken Identifier218=null;
- ES3Parser.semic_return semic219 = default(ES3Parser.semic_return);
-
- object CONTINUE217_tree=null;
- object Identifier218_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "continueStatement");
- DebugLocation(1155, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1156:2: ( CONTINUE ( Identifier )? semic )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1156:4: CONTINUE ( Identifier )? semic
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(1156, 12);
- CONTINUE217=(IToken)Match(input,CONTINUE,Follow._CONTINUE_in_continueStatement5278);
- CONTINUE217_tree = (object)adaptor.Create(CONTINUE217);
- root_0 = (object)adaptor.BecomeRoot(CONTINUE217_tree, root_0);
-
- DebugLocation(1156, 14);
- if (input.LA(1) == Identifier) PromoteEOL(null);
- DebugLocation(1156, 67);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1156:67: ( Identifier )?
- int alt61=2;
- try { DebugEnterSubRule(61);
- try { DebugEnterDecision(61, decisionCanBacktrack[61]);
- int LA61_0 = input.LA(1);
-
- if ((LA61_0==Identifier))
- {
- alt61=1;
- }
- } finally { DebugExitDecision(61); }
- switch (alt61)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1156:67: Identifier
- {
- DebugLocation(1156, 67);
- Identifier218=(IToken)Match(input,Identifier,Follow._Identifier_in_continueStatement5283);
- Identifier218_tree = (object)adaptor.Create(Identifier218);
- adaptor.AddChild(root_0, Identifier218_tree);
-
-
- }
- break;
-
- }
- } finally { DebugExitSubRule(61); }
-
- DebugLocation(1156, 84);
- PushFollow(Follow._semic_in_continueStatement5286);
- semic219=semic();
- PopFollow();
-
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(1157, 1);
- } finally { DebugExitRule(GrammarFileName, "continueStatement"); }
- return retval;
-
- }
- // $ANTLR end "continueStatement"
-
- public class breakStatement_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_breakStatement() {}
- protected virtual void Leave_breakStatement() {}
-
- // $ANTLR start "breakStatement"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1168:1: breakStatement : BREAK ( Identifier )? semic ;
- [GrammarRule("breakStatement")]
- private ES3Parser.breakStatement_return breakStatement()
- {
-
- ES3Parser.breakStatement_return retval = new ES3Parser.breakStatement_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken BREAK220=null;
- IToken Identifier221=null;
- ES3Parser.semic_return semic222 = default(ES3Parser.semic_return);
-
- object BREAK220_tree=null;
- object Identifier221_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "breakStatement");
- DebugLocation(1168, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1169:2: ( BREAK ( Identifier )? semic )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1169:4: BREAK ( Identifier )? semic
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(1169, 9);
- BREAK220=(IToken)Match(input,BREAK,Follow._BREAK_in_breakStatement5305);
- BREAK220_tree = (object)adaptor.Create(BREAK220);
- root_0 = (object)adaptor.BecomeRoot(BREAK220_tree, root_0);
-
- DebugLocation(1169, 11);
- if (input.LA(1) == Identifier) PromoteEOL(null);
- DebugLocation(1169, 64);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1169:64: ( Identifier )?
- int alt62=2;
- try { DebugEnterSubRule(62);
- try { DebugEnterDecision(62, decisionCanBacktrack[62]);
- int LA62_0 = input.LA(1);
-
- if ((LA62_0==Identifier))
- {
- alt62=1;
- }
- } finally { DebugExitDecision(62); }
- switch (alt62)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1169:64: Identifier
- {
- DebugLocation(1169, 64);
- Identifier221=(IToken)Match(input,Identifier,Follow._Identifier_in_breakStatement5310);
- Identifier221_tree = (object)adaptor.Create(Identifier221);
- adaptor.AddChild(root_0, Identifier221_tree);
-
-
- }
- break;
-
- }
- } finally { DebugExitSubRule(62); }
-
- DebugLocation(1169, 81);
- PushFollow(Follow._semic_in_breakStatement5313);
- semic222=semic();
- PopFollow();
-
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(1170, 1);
- } finally { DebugExitRule(GrammarFileName, "breakStatement"); }
- return retval;
-
- }
- // $ANTLR end "breakStatement"
-
- public class returnStatement_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_returnStatement() {}
- protected virtual void Leave_returnStatement() {}
-
- // $ANTLR start "returnStatement"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1189:1: returnStatement : RETURN ( expression )? semic ;
- [GrammarRule("returnStatement")]
- private ES3Parser.returnStatement_return returnStatement()
- {
-
- ES3Parser.returnStatement_return retval = new ES3Parser.returnStatement_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken RETURN223=null;
- ES3Parser.expression_return expression224 = default(ES3Parser.expression_return);
- ES3Parser.semic_return semic225 = default(ES3Parser.semic_return);
-
- object RETURN223_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "returnStatement");
- DebugLocation(1189, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1190:2: ( RETURN ( expression )? semic )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1190:4: RETURN ( expression )? semic
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(1190, 10);
- RETURN223=(IToken)Match(input,RETURN,Follow._RETURN_in_returnStatement5332);
- RETURN223_tree = (object)adaptor.Create(RETURN223);
- root_0 = (object)adaptor.BecomeRoot(RETURN223_tree, root_0);
-
- DebugLocation(1190, 12);
- PromoteEOL(null);
- DebugLocation(1190, 34);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1190:34: ( expression )?
- int alt63=2;
- try { DebugEnterSubRule(63);
- try { DebugEnterDecision(63, decisionCanBacktrack[63]);
- int LA63_0 = input.LA(1);
-
- if (((LA63_0>=NULL && LA63_0<=FALSE)||LA63_0==DELETE||LA63_0==FUNCTION||LA63_0==NEW||LA63_0==THIS||LA63_0==TYPEOF||LA63_0==VOID||LA63_0==LBRACE||LA63_0==LPAREN||LA63_0==LBRACK||(LA63_0>=ADD && LA63_0<=SUB)||(LA63_0>=INC && LA63_0<=DEC)||(LA63_0>=NOT && LA63_0<=INV)||(LA63_0>=Identifier && LA63_0<=StringLiteral)||LA63_0==RegularExpressionLiteral||(LA63_0>=DecimalLiteral && LA63_0<=HexIntegerLiteral)))
- {
- alt63=1;
- }
- } finally { DebugExitDecision(63); }
- switch (alt63)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1190:34: expression
- {
- DebugLocation(1190, 34);
- PushFollow(Follow._expression_in_returnStatement5337);
- expression224=expression();
- PopFollow();
-
- adaptor.AddChild(root_0, expression224.Tree);
-
- }
- break;
-
- }
- } finally { DebugExitSubRule(63); }
-
- DebugLocation(1190, 51);
- PushFollow(Follow._semic_in_returnStatement5340);
- semic225=semic();
- PopFollow();
-
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(1191, 1);
- } finally { DebugExitRule(GrammarFileName, "returnStatement"); }
- return retval;
-
- }
- // $ANTLR end "returnStatement"
-
- public class withStatement_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_withStatement() {}
- protected virtual void Leave_withStatement() {}
-
- // $ANTLR start "withStatement"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1197:1: withStatement : WITH LPAREN expression RPAREN statement ;
- [GrammarRule("withStatement")]
- private ES3Parser.withStatement_return withStatement()
- {
-
- ES3Parser.withStatement_return retval = new ES3Parser.withStatement_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken WITH226=null;
- IToken LPAREN227=null;
- IToken RPAREN229=null;
- ES3Parser.expression_return expression228 = default(ES3Parser.expression_return);
- ES3Parser.statement_return statement230 = default(ES3Parser.statement_return);
-
- object WITH226_tree=null;
- object LPAREN227_tree=null;
- object RPAREN229_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "withStatement");
- DebugLocation(1197, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1198:2: ( WITH LPAREN expression RPAREN statement )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1198:4: WITH LPAREN expression RPAREN statement
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(1198, 8);
- WITH226=(IToken)Match(input,WITH,Follow._WITH_in_withStatement5357);
- WITH226_tree = (object)adaptor.Create(WITH226);
- root_0 = (object)adaptor.BecomeRoot(WITH226_tree, root_0);
-
- DebugLocation(1198, 16);
- LPAREN227=(IToken)Match(input,LPAREN,Follow._LPAREN_in_withStatement5360);
- DebugLocation(1198, 18);
- PushFollow(Follow._expression_in_withStatement5363);
- expression228=expression();
- PopFollow();
-
- adaptor.AddChild(root_0, expression228.Tree);
- DebugLocation(1198, 35);
- RPAREN229=(IToken)Match(input,RPAREN,Follow._RPAREN_in_withStatement5365);
- DebugLocation(1198, 37);
- PushFollow(Follow._statement_in_withStatement5368);
- statement230=statement();
- PopFollow();
-
- adaptor.AddChild(root_0, statement230.Tree);
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(1199, 1);
- } finally { DebugExitRule(GrammarFileName, "withStatement"); }
- return retval;
-
- }
- // $ANTLR end "withStatement"
-
- public class switchStatement_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_switchStatement() {}
- protected virtual void Leave_switchStatement() {}
-
- // $ANTLR start "switchStatement"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1205:1: switchStatement : SWITCH LPAREN expression RPAREN LBRACE ({...}? => defaultClause | caseClause )* RBRACE -> ^( SWITCH expression ( defaultClause )? ( caseClause )* ) ;
- [GrammarRule("switchStatement")]
- private ES3Parser.switchStatement_return switchStatement()
- {
-
- ES3Parser.switchStatement_return retval = new ES3Parser.switchStatement_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken SWITCH231=null;
- IToken LPAREN232=null;
- IToken RPAREN234=null;
- IToken LBRACE235=null;
- IToken RBRACE238=null;
- ES3Parser.expression_return expression233 = default(ES3Parser.expression_return);
- ES3Parser.defaultClause_return defaultClause236 = default(ES3Parser.defaultClause_return);
- ES3Parser.caseClause_return caseClause237 = default(ES3Parser.caseClause_return);
-
- object SWITCH231_tree=null;
- object LPAREN232_tree=null;
- object RPAREN234_tree=null;
- object LBRACE235_tree=null;
- object RBRACE238_tree=null;
- RewriteRuleITokenStream stream_RPAREN=new RewriteRuleITokenStream(adaptor,"token RPAREN");
- RewriteRuleITokenStream stream_RBRACE=new RewriteRuleITokenStream(adaptor,"token RBRACE");
- RewriteRuleITokenStream stream_LPAREN=new RewriteRuleITokenStream(adaptor,"token LPAREN");
- RewriteRuleITokenStream stream_SWITCH=new RewriteRuleITokenStream(adaptor,"token SWITCH");
- RewriteRuleITokenStream stream_LBRACE=new RewriteRuleITokenStream(adaptor,"token LBRACE");
- RewriteRuleSubtreeStream stream_caseClause=new RewriteRuleSubtreeStream(adaptor,"rule caseClause");
- RewriteRuleSubtreeStream stream_defaultClause=new RewriteRuleSubtreeStream(adaptor,"rule defaultClause");
- RewriteRuleSubtreeStream stream_expression=new RewriteRuleSubtreeStream(adaptor,"rule expression");
-
- int defaultClauseCount = 0;
-
- try { DebugEnterRule(GrammarFileName, "switchStatement");
- DebugLocation(1205, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1210:2: ( SWITCH LPAREN expression RPAREN LBRACE ({...}? => defaultClause | caseClause )* RBRACE -> ^( SWITCH expression ( defaultClause )? ( caseClause )* ) )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1210:4: SWITCH LPAREN expression RPAREN LBRACE ({...}? => defaultClause | caseClause )* RBRACE
- {
- DebugLocation(1210, 4);
- SWITCH231=(IToken)Match(input,SWITCH,Follow._SWITCH_in_switchStatement5389);
- stream_SWITCH.Add(SWITCH231);
-
- DebugLocation(1210, 11);
- LPAREN232=(IToken)Match(input,LPAREN,Follow._LPAREN_in_switchStatement5391);
- stream_LPAREN.Add(LPAREN232);
-
- DebugLocation(1210, 18);
- PushFollow(Follow._expression_in_switchStatement5393);
- expression233=expression();
- PopFollow();
-
- stream_expression.Add(expression233.Tree);
- DebugLocation(1210, 29);
- RPAREN234=(IToken)Match(input,RPAREN,Follow._RPAREN_in_switchStatement5395);
- stream_RPAREN.Add(RPAREN234);
-
- DebugLocation(1210, 36);
- LBRACE235=(IToken)Match(input,LBRACE,Follow._LBRACE_in_switchStatement5397);
- stream_LBRACE.Add(LBRACE235);
-
- DebugLocation(1210, 43);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1210:43: ({...}? => defaultClause | caseClause )*
- try { DebugEnterSubRule(64);
- while (true)
- {
- int alt64=3;
- try { DebugEnterDecision(64, decisionCanBacktrack[64]);
- int LA64_0 = input.LA(1);
-
- if ((LA64_0==DEFAULT) && (( defaultClauseCount == 0 )))
- {
- alt64=1;
- }
- else if ((LA64_0==CASE))
- {
- alt64=2;
- }
-
-
- } finally { DebugExitDecision(64); }
- switch ( alt64 )
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1210:45: {...}? => defaultClause
- {
- DebugLocation(1210, 45);
- if (!(( defaultClauseCount == 0 )))
- {
- throw new FailedPredicateException(input, "switchStatement", " defaultClauseCount == 0 ");
- }
- DebugLocation(1210, 76);
- PushFollow(Follow._defaultClause_in_switchStatement5404);
- defaultClause236=defaultClause();
- PopFollow();
-
- stream_defaultClause.Add(defaultClause236.Tree);
- DebugLocation(1210, 90);
- defaultClauseCount++;
-
- }
- break;
- case 2:
- DebugEnterAlt(2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1210:118: caseClause
- {
- DebugLocation(1210, 118);
- PushFollow(Follow._caseClause_in_switchStatement5410);
- caseClause237=caseClause();
- PopFollow();
-
- stream_caseClause.Add(caseClause237.Tree);
-
- }
- break;
-
- default:
- goto loop64;
- }
- }
-
- loop64:
- ;
-
- } finally { DebugExitSubRule(64); }
-
- DebugLocation(1210, 132);
- RBRACE238=(IToken)Match(input,RBRACE,Follow._RBRACE_in_switchStatement5415);
- stream_RBRACE.Add(RBRACE238);
-
-
-
- {
- // AST REWRITE
- // elements: defaultClause, SWITCH, caseClause, expression
- // token labels:
- // rule labels: retval
- // token list labels:
- // rule list labels:
- // wildcard labels:
- retval.Tree = root_0;
- RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"rule retval",retval!=null?retval.Tree:null);
-
- root_0 = (object)adaptor.Nil();
- // 1211:2: -> ^( SWITCH expression ( defaultClause )? ( caseClause )* )
- {
- DebugLocation(1211, 5);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1211:5: ^( SWITCH expression ( defaultClause )? ( caseClause )* )
- {
- object root_1 = (object)adaptor.Nil();
- DebugLocation(1211, 8);
- root_1 = (object)adaptor.BecomeRoot(stream_SWITCH.NextNode(), root_1);
-
- DebugLocation(1211, 15);
- adaptor.AddChild(root_1, stream_expression.NextTree());
- DebugLocation(1211, 26);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1211:26: ( defaultClause )?
- if ( stream_defaultClause.HasNext )
- {
- DebugLocation(1211, 26);
- adaptor.AddChild(root_1, stream_defaultClause.NextTree());
-
- }
- stream_defaultClause.Reset();
- DebugLocation(1211, 41);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1211:41: ( caseClause )*
- while ( stream_caseClause.HasNext )
- {
- DebugLocation(1211, 41);
- adaptor.AddChild(root_1, stream_caseClause.NextTree());
-
- }
- stream_caseClause.Reset();
-
- adaptor.AddChild(root_0, root_1);
- }
-
- }
-
- retval.Tree = root_0;
- }
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(1212, 1);
- } finally { DebugExitRule(GrammarFileName, "switchStatement"); }
- return retval;
-
- }
- // $ANTLR end "switchStatement"
-
- public class caseClause_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_caseClause() {}
- protected virtual void Leave_caseClause() {}
-
- // $ANTLR start "caseClause"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1214:1: caseClause : CASE expression COLON ( statement )* ;
- [GrammarRule("caseClause")]
- private ES3Parser.caseClause_return caseClause()
- {
-
- ES3Parser.caseClause_return retval = new ES3Parser.caseClause_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken CASE239=null;
- IToken COLON241=null;
- ES3Parser.expression_return expression240 = default(ES3Parser.expression_return);
- ES3Parser.statement_return statement242 = default(ES3Parser.statement_return);
-
- object CASE239_tree=null;
- object COLON241_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "caseClause");
- DebugLocation(1214, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1215:2: ( CASE expression COLON ( statement )* )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1215:4: CASE expression COLON ( statement )*
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(1215, 8);
- CASE239=(IToken)Match(input,CASE,Follow._CASE_in_caseClause5443);
- CASE239_tree = (object)adaptor.Create(CASE239);
- root_0 = (object)adaptor.BecomeRoot(CASE239_tree, root_0);
-
- DebugLocation(1215, 10);
- PushFollow(Follow._expression_in_caseClause5446);
- expression240=expression();
- PopFollow();
-
- adaptor.AddChild(root_0, expression240.Tree);
- DebugLocation(1215, 26);
- COLON241=(IToken)Match(input,COLON,Follow._COLON_in_caseClause5448);
- DebugLocation(1215, 28);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1215:28: ( statement )*
- try { DebugEnterSubRule(65);
- while (true)
- {
- int alt65=2;
- try { DebugEnterDecision(65, decisionCanBacktrack[65]);
- int LA65_0 = input.LA(1);
-
- if (((LA65_0>=NULL && LA65_0<=BREAK)||LA65_0==CONTINUE||(LA65_0>=DELETE && LA65_0<=DO)||(LA65_0>=FOR && LA65_0<=IF)||(LA65_0>=NEW && LA65_0<=WITH)||LA65_0==LBRACE||LA65_0==LPAREN||LA65_0==LBRACK||LA65_0==SEMIC||(LA65_0>=ADD && LA65_0<=SUB)||(LA65_0>=INC && LA65_0<=DEC)||(LA65_0>=NOT && LA65_0<=INV)||(LA65_0>=Identifier && LA65_0<=StringLiteral)||LA65_0==RegularExpressionLiteral||(LA65_0>=DecimalLiteral && LA65_0<=HexIntegerLiteral)))
- {
- alt65=1;
- }
-
-
- } finally { DebugExitDecision(65); }
- switch ( alt65 )
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1215:28: statement
- {
- DebugLocation(1215, 28);
- PushFollow(Follow._statement_in_caseClause5451);
- statement242=statement();
- PopFollow();
-
- adaptor.AddChild(root_0, statement242.Tree);
-
- }
- break;
-
- default:
- goto loop65;
- }
- }
-
- loop65:
- ;
-
- } finally { DebugExitSubRule(65); }
-
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(1216, 1);
- } finally { DebugExitRule(GrammarFileName, "caseClause"); }
- return retval;
-
- }
- // $ANTLR end "caseClause"
-
- public class defaultClause_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_defaultClause() {}
- protected virtual void Leave_defaultClause() {}
-
- // $ANTLR start "defaultClause"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1218:1: defaultClause : DEFAULT COLON ( statement )* ;
- [GrammarRule("defaultClause")]
- private ES3Parser.defaultClause_return defaultClause()
- {
-
- ES3Parser.defaultClause_return retval = new ES3Parser.defaultClause_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken DEFAULT243=null;
- IToken COLON244=null;
- ES3Parser.statement_return statement245 = default(ES3Parser.statement_return);
-
- object DEFAULT243_tree=null;
- object COLON244_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "defaultClause");
- DebugLocation(1218, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1219:2: ( DEFAULT COLON ( statement )* )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1219:4: DEFAULT COLON ( statement )*
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(1219, 11);
- DEFAULT243=(IToken)Match(input,DEFAULT,Follow._DEFAULT_in_defaultClause5464);
- DEFAULT243_tree = (object)adaptor.Create(DEFAULT243);
- root_0 = (object)adaptor.BecomeRoot(DEFAULT243_tree, root_0);
-
- DebugLocation(1219, 18);
- COLON244=(IToken)Match(input,COLON,Follow._COLON_in_defaultClause5467);
- DebugLocation(1219, 20);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1219:20: ( statement )*
- try { DebugEnterSubRule(66);
- while (true)
- {
- int alt66=2;
- try { DebugEnterDecision(66, decisionCanBacktrack[66]);
- int LA66_0 = input.LA(1);
-
- if (((LA66_0>=NULL && LA66_0<=BREAK)||LA66_0==CONTINUE||(LA66_0>=DELETE && LA66_0<=DO)||(LA66_0>=FOR && LA66_0<=IF)||(LA66_0>=NEW && LA66_0<=WITH)||LA66_0==LBRACE||LA66_0==LPAREN||LA66_0==LBRACK||LA66_0==SEMIC||(LA66_0>=ADD && LA66_0<=SUB)||(LA66_0>=INC && LA66_0<=DEC)||(LA66_0>=NOT && LA66_0<=INV)||(LA66_0>=Identifier && LA66_0<=StringLiteral)||LA66_0==RegularExpressionLiteral||(LA66_0>=DecimalLiteral && LA66_0<=HexIntegerLiteral)))
- {
- alt66=1;
- }
-
-
- } finally { DebugExitDecision(66); }
- switch ( alt66 )
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1219:20: statement
- {
- DebugLocation(1219, 20);
- PushFollow(Follow._statement_in_defaultClause5470);
- statement245=statement();
- PopFollow();
-
- adaptor.AddChild(root_0, statement245.Tree);
-
- }
- break;
-
- default:
- goto loop66;
- }
- }
-
- loop66:
- ;
-
- } finally { DebugExitSubRule(66); }
-
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(1220, 1);
- } finally { DebugExitRule(GrammarFileName, "defaultClause"); }
- return retval;
-
- }
- // $ANTLR end "defaultClause"
-
- public class labelledStatement_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_labelledStatement() {}
- protected virtual void Leave_labelledStatement() {}
-
- // $ANTLR start "labelledStatement"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1226:1: labelledStatement : Identifier COLON statement -> ^( LABELLED Identifier statement ) ;
- [GrammarRule("labelledStatement")]
- private ES3Parser.labelledStatement_return labelledStatement()
- {
-
- ES3Parser.labelledStatement_return retval = new ES3Parser.labelledStatement_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken Identifier246=null;
- IToken COLON247=null;
- ES3Parser.statement_return statement248 = default(ES3Parser.statement_return);
-
- object Identifier246_tree=null;
- object COLON247_tree=null;
- RewriteRuleITokenStream stream_COLON=new RewriteRuleITokenStream(adaptor,"token COLON");
- RewriteRuleITokenStream stream_Identifier=new RewriteRuleITokenStream(adaptor,"token Identifier");
- RewriteRuleSubtreeStream stream_statement=new RewriteRuleSubtreeStream(adaptor,"rule statement");
- try { DebugEnterRule(GrammarFileName, "labelledStatement");
- DebugLocation(1226, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1227:2: ( Identifier COLON statement -> ^( LABELLED Identifier statement ) )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1227:4: Identifier COLON statement
- {
- DebugLocation(1227, 4);
- Identifier246=(IToken)Match(input,Identifier,Follow._Identifier_in_labelledStatement5487);
- stream_Identifier.Add(Identifier246);
-
- DebugLocation(1227, 15);
- COLON247=(IToken)Match(input,COLON,Follow._COLON_in_labelledStatement5489);
- stream_COLON.Add(COLON247);
-
- DebugLocation(1227, 21);
- PushFollow(Follow._statement_in_labelledStatement5491);
- statement248=statement();
- PopFollow();
-
- stream_statement.Add(statement248.Tree);
-
-
- {
- // AST REWRITE
- // elements: Identifier, statement
- // token labels:
- // rule labels: retval
- // token list labels:
- // rule list labels:
- // wildcard labels:
- retval.Tree = root_0;
- RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"rule retval",retval!=null?retval.Tree:null);
-
- root_0 = (object)adaptor.Nil();
- // 1228:2: -> ^( LABELLED Identifier statement )
- {
- DebugLocation(1228, 5);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1228:5: ^( LABELLED Identifier statement )
- {
- object root_1 = (object)adaptor.Nil();
- DebugLocation(1228, 8);
- root_1 = (object)adaptor.BecomeRoot((object)adaptor.Create(LABELLED, "LABELLED"), root_1);
-
- DebugLocation(1228, 17);
- adaptor.AddChild(root_1, stream_Identifier.NextNode());
- DebugLocation(1228, 28);
- adaptor.AddChild(root_1, stream_statement.NextTree());
-
- adaptor.AddChild(root_0, root_1);
- }
-
- }
-
- retval.Tree = root_0;
- }
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(1229, 1);
- } finally { DebugExitRule(GrammarFileName, "labelledStatement"); }
- return retval;
-
- }
- // $ANTLR end "labelledStatement"
-
- public class throwStatement_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_throwStatement() {}
- protected virtual void Leave_throwStatement() {}
-
- // $ANTLR start "throwStatement"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1250:1: throwStatement : THROW expression semic ;
- [GrammarRule("throwStatement")]
- private ES3Parser.throwStatement_return throwStatement()
- {
-
- ES3Parser.throwStatement_return retval = new ES3Parser.throwStatement_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken THROW249=null;
- ES3Parser.expression_return expression250 = default(ES3Parser.expression_return);
- ES3Parser.semic_return semic251 = default(ES3Parser.semic_return);
-
- object THROW249_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "throwStatement");
- DebugLocation(1250, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1251:2: ( THROW expression semic )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1251:4: THROW expression semic
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(1251, 9);
- THROW249=(IToken)Match(input,THROW,Follow._THROW_in_throwStatement5522);
- THROW249_tree = (object)adaptor.Create(THROW249);
- root_0 = (object)adaptor.BecomeRoot(THROW249_tree, root_0);
-
- DebugLocation(1251, 11);
- PromoteEOL(null);
- DebugLocation(1251, 33);
- PushFollow(Follow._expression_in_throwStatement5527);
- expression250=expression();
- PopFollow();
-
- adaptor.AddChild(root_0, expression250.Tree);
- DebugLocation(1251, 49);
- PushFollow(Follow._semic_in_throwStatement5529);
- semic251=semic();
- PopFollow();
-
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(1252, 1);
- } finally { DebugExitRule(GrammarFileName, "throwStatement"); }
- return retval;
-
- }
- // $ANTLR end "throwStatement"
-
- public class tryStatement_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_tryStatement() {}
- protected virtual void Leave_tryStatement() {}
-
- // $ANTLR start "tryStatement"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1258:1: tryStatement : TRY block ( catchClause ( finallyClause )? | finallyClause ) ;
- [GrammarRule("tryStatement")]
- private ES3Parser.tryStatement_return tryStatement()
- {
-
- ES3Parser.tryStatement_return retval = new ES3Parser.tryStatement_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken TRY252=null;
- ES3Parser.block_return block253 = default(ES3Parser.block_return);
- ES3Parser.catchClause_return catchClause254 = default(ES3Parser.catchClause_return);
- ES3Parser.finallyClause_return finallyClause255 = default(ES3Parser.finallyClause_return);
- ES3Parser.finallyClause_return finallyClause256 = default(ES3Parser.finallyClause_return);
-
- object TRY252_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "tryStatement");
- DebugLocation(1258, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1259:2: ( TRY block ( catchClause ( finallyClause )? | finallyClause ) )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1259:4: TRY block ( catchClause ( finallyClause )? | finallyClause )
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(1259, 7);
- TRY252=(IToken)Match(input,TRY,Follow._TRY_in_tryStatement5546);
- TRY252_tree = (object)adaptor.Create(TRY252);
- root_0 = (object)adaptor.BecomeRoot(TRY252_tree, root_0);
-
- DebugLocation(1259, 9);
- PushFollow(Follow._block_in_tryStatement5549);
- block253=block();
- PopFollow();
-
- adaptor.AddChild(root_0, block253.Tree);
- DebugLocation(1259, 15);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1259:15: ( catchClause ( finallyClause )? | finallyClause )
- int alt68=2;
- try { DebugEnterSubRule(68);
- try { DebugEnterDecision(68, decisionCanBacktrack[68]);
- int LA68_0 = input.LA(1);
-
- if ((LA68_0==CATCH))
- {
- alt68=1;
- }
- else if ((LA68_0==FINALLY))
- {
- alt68=2;
- }
- else
- {
- NoViableAltException nvae = new NoViableAltException("", 68, 0, input);
-
- DebugRecognitionException(nvae);
- throw nvae;
- }
- } finally { DebugExitDecision(68); }
- switch (alt68)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1259:17: catchClause ( finallyClause )?
- {
- DebugLocation(1259, 17);
- PushFollow(Follow._catchClause_in_tryStatement5553);
- catchClause254=catchClause();
- PopFollow();
-
- adaptor.AddChild(root_0, catchClause254.Tree);
- DebugLocation(1259, 29);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1259:29: ( finallyClause )?
- int alt67=2;
- try { DebugEnterSubRule(67);
- try { DebugEnterDecision(67, decisionCanBacktrack[67]);
- int LA67_0 = input.LA(1);
-
- if ((LA67_0==FINALLY))
- {
- alt67=1;
- }
- } finally { DebugExitDecision(67); }
- switch (alt67)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1259:29: finallyClause
- {
- DebugLocation(1259, 29);
- PushFollow(Follow._finallyClause_in_tryStatement5555);
- finallyClause255=finallyClause();
- PopFollow();
-
- adaptor.AddChild(root_0, finallyClause255.Tree);
-
- }
- break;
-
- }
- } finally { DebugExitSubRule(67); }
-
-
- }
- break;
- case 2:
- DebugEnterAlt(2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1259:46: finallyClause
- {
- DebugLocation(1259, 46);
- PushFollow(Follow._finallyClause_in_tryStatement5560);
- finallyClause256=finallyClause();
- PopFollow();
-
- adaptor.AddChild(root_0, finallyClause256.Tree);
-
- }
- break;
-
- }
- } finally { DebugExitSubRule(68); }
-
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(1260, 1);
- } finally { DebugExitRule(GrammarFileName, "tryStatement"); }
- return retval;
-
- }
- // $ANTLR end "tryStatement"
-
- public class catchClause_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_catchClause() {}
- protected virtual void Leave_catchClause() {}
-
- // $ANTLR start "catchClause"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1262:1: catchClause : CATCH LPAREN Identifier RPAREN block ;
- [GrammarRule("catchClause")]
- private ES3Parser.catchClause_return catchClause()
- {
-
- ES3Parser.catchClause_return retval = new ES3Parser.catchClause_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken CATCH257=null;
- IToken LPAREN258=null;
- IToken Identifier259=null;
- IToken RPAREN260=null;
- ES3Parser.block_return block261 = default(ES3Parser.block_return);
-
- object CATCH257_tree=null;
- object LPAREN258_tree=null;
- object Identifier259_tree=null;
- object RPAREN260_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "catchClause");
- DebugLocation(1262, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1263:2: ( CATCH LPAREN Identifier RPAREN block )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1263:4: CATCH LPAREN Identifier RPAREN block
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(1263, 9);
- CATCH257=(IToken)Match(input,CATCH,Follow._CATCH_in_catchClause5574);
- CATCH257_tree = (object)adaptor.Create(CATCH257);
- root_0 = (object)adaptor.BecomeRoot(CATCH257_tree, root_0);
-
- DebugLocation(1263, 17);
- LPAREN258=(IToken)Match(input,LPAREN,Follow._LPAREN_in_catchClause5577);
- DebugLocation(1263, 19);
- Identifier259=(IToken)Match(input,Identifier,Follow._Identifier_in_catchClause5580);
- Identifier259_tree = (object)adaptor.Create(Identifier259);
- adaptor.AddChild(root_0, Identifier259_tree);
-
- DebugLocation(1263, 36);
- RPAREN260=(IToken)Match(input,RPAREN,Follow._RPAREN_in_catchClause5582);
- DebugLocation(1263, 38);
- PushFollow(Follow._block_in_catchClause5585);
- block261=block();
- PopFollow();
-
- adaptor.AddChild(root_0, block261.Tree);
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(1264, 1);
- } finally { DebugExitRule(GrammarFileName, "catchClause"); }
- return retval;
-
- }
- // $ANTLR end "catchClause"
-
- public class finallyClause_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_finallyClause() {}
- protected virtual void Leave_finallyClause() {}
-
- // $ANTLR start "finallyClause"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1266:1: finallyClause : FINALLY block ;
- [GrammarRule("finallyClause")]
- private ES3Parser.finallyClause_return finallyClause()
- {
-
- ES3Parser.finallyClause_return retval = new ES3Parser.finallyClause_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken FINALLY262=null;
- ES3Parser.block_return block263 = default(ES3Parser.block_return);
-
- object FINALLY262_tree=null;
-
- try { DebugEnterRule(GrammarFileName, "finallyClause");
- DebugLocation(1266, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1267:2: ( FINALLY block )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1267:4: FINALLY block
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(1267, 11);
- FINALLY262=(IToken)Match(input,FINALLY,Follow._FINALLY_in_finallyClause5597);
- FINALLY262_tree = (object)adaptor.Create(FINALLY262);
- root_0 = (object)adaptor.BecomeRoot(FINALLY262_tree, root_0);
-
- DebugLocation(1267, 13);
- PushFollow(Follow._block_in_finallyClause5600);
- block263=block();
- PopFollow();
-
- adaptor.AddChild(root_0, block263.Tree);
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(1268, 1);
- } finally { DebugExitRule(GrammarFileName, "finallyClause"); }
- return retval;
-
- }
- // $ANTLR end "finallyClause"
-
- public class functionDeclaration_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_functionDeclaration() {}
- protected virtual void Leave_functionDeclaration() {}
-
- // $ANTLR start "functionDeclaration"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1280:1: functionDeclaration : FUNCTION name= Identifier formalParameterList functionBody -> ^( FUNCTION $name formalParameterList functionBody ) ;
- [GrammarRule("functionDeclaration")]
- private ES3Parser.functionDeclaration_return functionDeclaration()
- {
-
- ES3Parser.functionDeclaration_return retval = new ES3Parser.functionDeclaration_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken name=null;
- IToken FUNCTION264=null;
- ES3Parser.formalParameterList_return formalParameterList265 = default(ES3Parser.formalParameterList_return);
- ES3Parser.functionBody_return functionBody266 = default(ES3Parser.functionBody_return);
-
- object name_tree=null;
- object FUNCTION264_tree=null;
- RewriteRuleITokenStream stream_FUNCTION=new RewriteRuleITokenStream(adaptor,"token FUNCTION");
- RewriteRuleITokenStream stream_Identifier=new RewriteRuleITokenStream(adaptor,"token Identifier");
- RewriteRuleSubtreeStream stream_formalParameterList=new RewriteRuleSubtreeStream(adaptor,"rule formalParameterList");
- RewriteRuleSubtreeStream stream_functionBody=new RewriteRuleSubtreeStream(adaptor,"rule functionBody");
- try { DebugEnterRule(GrammarFileName, "functionDeclaration");
- DebugLocation(1280, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1281:2: ( FUNCTION name= Identifier formalParameterList functionBody -> ^( FUNCTION $name formalParameterList functionBody ) )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1281:4: FUNCTION name= Identifier formalParameterList functionBody
- {
- DebugLocation(1281, 4);
- FUNCTION264=(IToken)Match(input,FUNCTION,Follow._FUNCTION_in_functionDeclaration5621);
- stream_FUNCTION.Add(FUNCTION264);
-
- DebugLocation(1281, 17);
- name=(IToken)Match(input,Identifier,Follow._Identifier_in_functionDeclaration5625);
- stream_Identifier.Add(name);
-
- DebugLocation(1281, 29);
- PushFollow(Follow._formalParameterList_in_functionDeclaration5627);
- formalParameterList265=formalParameterList();
- PopFollow();
-
- stream_formalParameterList.Add(formalParameterList265.Tree);
- DebugLocation(1281, 49);
- PushFollow(Follow._functionBody_in_functionDeclaration5629);
- functionBody266=functionBody();
- PopFollow();
-
- stream_functionBody.Add(functionBody266.Tree);
-
-
- {
- // AST REWRITE
- // elements: functionBody, FUNCTION, name, formalParameterList
- // token labels: name
- // rule labels: retval
- // token list labels:
- // rule list labels:
- // wildcard labels:
- retval.Tree = root_0;
- RewriteRuleITokenStream stream_name=new RewriteRuleITokenStream(adaptor,"token name",name);
- RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"rule retval",retval!=null?retval.Tree:null);
-
- root_0 = (object)adaptor.Nil();
- // 1282:2: -> ^( FUNCTION $name formalParameterList functionBody )
- {
- DebugLocation(1282, 5);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1282:5: ^( FUNCTION $name formalParameterList functionBody )
- {
- object root_1 = (object)adaptor.Nil();
- DebugLocation(1282, 8);
- root_1 = (object)adaptor.BecomeRoot(stream_FUNCTION.NextNode(), root_1);
-
- DebugLocation(1282, 17);
- adaptor.AddChild(root_1, stream_name.NextNode());
- DebugLocation(1282, 23);
- adaptor.AddChild(root_1, stream_formalParameterList.NextTree());
- DebugLocation(1282, 43);
- adaptor.AddChild(root_1, stream_functionBody.NextTree());
-
- adaptor.AddChild(root_0, root_1);
- }
-
- }
-
- retval.Tree = root_0;
- }
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(1283, 1);
- } finally { DebugExitRule(GrammarFileName, "functionDeclaration"); }
- return retval;
-
- }
- // $ANTLR end "functionDeclaration"
-
- public class functionExpression_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_functionExpression() {}
- protected virtual void Leave_functionExpression() {}
-
- // $ANTLR start "functionExpression"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1285:1: functionExpression : FUNCTION (name= Identifier )? formalParameterList functionBody -> ^( FUNCTION ( $name)? formalParameterList functionBody ) ;
- [GrammarRule("functionExpression")]
- private ES3Parser.functionExpression_return functionExpression()
- {
-
- ES3Parser.functionExpression_return retval = new ES3Parser.functionExpression_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken name=null;
- IToken FUNCTION267=null;
- ES3Parser.formalParameterList_return formalParameterList268 = default(ES3Parser.formalParameterList_return);
- ES3Parser.functionBody_return functionBody269 = default(ES3Parser.functionBody_return);
-
- object name_tree=null;
- object FUNCTION267_tree=null;
- RewriteRuleITokenStream stream_FUNCTION=new RewriteRuleITokenStream(adaptor,"token FUNCTION");
- RewriteRuleITokenStream stream_Identifier=new RewriteRuleITokenStream(adaptor,"token Identifier");
- RewriteRuleSubtreeStream stream_formalParameterList=new RewriteRuleSubtreeStream(adaptor,"rule formalParameterList");
- RewriteRuleSubtreeStream stream_functionBody=new RewriteRuleSubtreeStream(adaptor,"rule functionBody");
- try { DebugEnterRule(GrammarFileName, "functionExpression");
- DebugLocation(1285, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1286:2: ( FUNCTION (name= Identifier )? formalParameterList functionBody -> ^( FUNCTION ( $name)? formalParameterList functionBody ) )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1286:4: FUNCTION (name= Identifier )? formalParameterList functionBody
- {
- DebugLocation(1286, 4);
- FUNCTION267=(IToken)Match(input,FUNCTION,Follow._FUNCTION_in_functionExpression5656);
- stream_FUNCTION.Add(FUNCTION267);
-
- DebugLocation(1286, 17);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1286:17: (name= Identifier )?
- int alt69=2;
- try { DebugEnterSubRule(69);
- try { DebugEnterDecision(69, decisionCanBacktrack[69]);
- int LA69_0 = input.LA(1);
-
- if ((LA69_0==Identifier))
- {
- alt69=1;
- }
- } finally { DebugExitDecision(69); }
- switch (alt69)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1286:17: name= Identifier
- {
- DebugLocation(1286, 17);
- name=(IToken)Match(input,Identifier,Follow._Identifier_in_functionExpression5660);
- stream_Identifier.Add(name);
-
-
- }
- break;
-
- }
- } finally { DebugExitSubRule(69); }
-
- DebugLocation(1286, 30);
- PushFollow(Follow._formalParameterList_in_functionExpression5663);
- formalParameterList268=formalParameterList();
- PopFollow();
-
- stream_formalParameterList.Add(formalParameterList268.Tree);
- DebugLocation(1286, 50);
- PushFollow(Follow._functionBody_in_functionExpression5665);
- functionBody269=functionBody();
- PopFollow();
-
- stream_functionBody.Add(functionBody269.Tree);
-
-
- {
- // AST REWRITE
- // elements: name, FUNCTION, formalParameterList, functionBody
- // token labels: name
- // rule labels: retval
- // token list labels:
- // rule list labels:
- // wildcard labels:
- retval.Tree = root_0;
- RewriteRuleITokenStream stream_name=new RewriteRuleITokenStream(adaptor,"token name",name);
- RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"rule retval",retval!=null?retval.Tree:null);
-
- root_0 = (object)adaptor.Nil();
- // 1287:2: -> ^( FUNCTION ( $name)? formalParameterList functionBody )
- {
- DebugLocation(1287, 5);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1287:5: ^( FUNCTION ( $name)? formalParameterList functionBody )
- {
- object root_1 = (object)adaptor.Nil();
- DebugLocation(1287, 8);
- root_1 = (object)adaptor.BecomeRoot(stream_FUNCTION.NextNode(), root_1);
-
- DebugLocation(1287, 17);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1287:17: ( $name)?
- if ( stream_name.HasNext )
- {
- DebugLocation(1287, 17);
- adaptor.AddChild(root_1, stream_name.NextNode());
-
- }
- stream_name.Reset();
- DebugLocation(1287, 24);
- adaptor.AddChild(root_1, stream_formalParameterList.NextTree());
- DebugLocation(1287, 44);
- adaptor.AddChild(root_1, stream_functionBody.NextTree());
-
- adaptor.AddChild(root_0, root_1);
- }
-
- }
-
- retval.Tree = root_0;
- }
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(1288, 1);
- } finally { DebugExitRule(GrammarFileName, "functionExpression"); }
- return retval;
-
- }
- // $ANTLR end "functionExpression"
-
- public class formalParameterList_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_formalParameterList() {}
- protected virtual void Leave_formalParameterList() {}
-
- // $ANTLR start "formalParameterList"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1290:1: formalParameterList : LPAREN ( Identifier ( COMMA Identifier )* )? RPAREN -> ^( ARGS ( Identifier )* ) ;
- [GrammarRule("formalParameterList")]
- private ES3Parser.formalParameterList_return formalParameterList()
- {
-
- ES3Parser.formalParameterList_return retval = new ES3Parser.formalParameterList_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken LPAREN270=null;
- IToken Identifier271=null;
- IToken COMMA272=null;
- IToken Identifier273=null;
- IToken RPAREN274=null;
-
- object LPAREN270_tree=null;
- object Identifier271_tree=null;
- object COMMA272_tree=null;
- object Identifier273_tree=null;
- object RPAREN274_tree=null;
- RewriteRuleITokenStream stream_COMMA=new RewriteRuleITokenStream(adaptor,"token COMMA");
- RewriteRuleITokenStream stream_RPAREN=new RewriteRuleITokenStream(adaptor,"token RPAREN");
- RewriteRuleITokenStream stream_LPAREN=new RewriteRuleITokenStream(adaptor,"token LPAREN");
- RewriteRuleITokenStream stream_Identifier=new RewriteRuleITokenStream(adaptor,"token Identifier");
-
- try { DebugEnterRule(GrammarFileName, "formalParameterList");
- DebugLocation(1290, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1291:2: ( LPAREN ( Identifier ( COMMA Identifier )* )? RPAREN -> ^( ARGS ( Identifier )* ) )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1291:4: LPAREN ( Identifier ( COMMA Identifier )* )? RPAREN
- {
- DebugLocation(1291, 4);
- LPAREN270=(IToken)Match(input,LPAREN,Follow._LPAREN_in_formalParameterList5693);
- stream_LPAREN.Add(LPAREN270);
-
- DebugLocation(1291, 11);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1291:11: ( Identifier ( COMMA Identifier )* )?
- int alt71=2;
- try { DebugEnterSubRule(71);
- try { DebugEnterDecision(71, decisionCanBacktrack[71]);
- int LA71_0 = input.LA(1);
-
- if ((LA71_0==Identifier))
- {
- alt71=1;
- }
- } finally { DebugExitDecision(71); }
- switch (alt71)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1291:13: Identifier ( COMMA Identifier )*
- {
- DebugLocation(1291, 13);
- Identifier271=(IToken)Match(input,Identifier,Follow._Identifier_in_formalParameterList5697);
- stream_Identifier.Add(Identifier271);
-
- DebugLocation(1291, 24);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1291:24: ( COMMA Identifier )*
- try { DebugEnterSubRule(70);
- while (true)
- {
- int alt70=2;
- try { DebugEnterDecision(70, decisionCanBacktrack[70]);
- int LA70_0 = input.LA(1);
-
- if ((LA70_0==COMMA))
- {
- alt70=1;
- }
-
-
- } finally { DebugExitDecision(70); }
- switch ( alt70 )
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1291:26: COMMA Identifier
- {
- DebugLocation(1291, 26);
- COMMA272=(IToken)Match(input,COMMA,Follow._COMMA_in_formalParameterList5701);
- stream_COMMA.Add(COMMA272);
-
- DebugLocation(1291, 32);
- Identifier273=(IToken)Match(input,Identifier,Follow._Identifier_in_formalParameterList5703);
- stream_Identifier.Add(Identifier273);
-
-
- }
- break;
-
- default:
- goto loop70;
- }
- }
-
- loop70:
- ;
-
- } finally { DebugExitSubRule(70); }
-
-
- }
- break;
-
- }
- } finally { DebugExitSubRule(71); }
-
- DebugLocation(1291, 49);
- RPAREN274=(IToken)Match(input,RPAREN,Follow._RPAREN_in_formalParameterList5711);
- stream_RPAREN.Add(RPAREN274);
-
-
-
- {
- // AST REWRITE
- // elements: Identifier
- // token labels:
- // rule labels: retval
- // token list labels:
- // rule list labels:
- // wildcard labels:
- retval.Tree = root_0;
- RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"rule retval",retval!=null?retval.Tree:null);
-
- root_0 = (object)adaptor.Nil();
- // 1292:2: -> ^( ARGS ( Identifier )* )
- {
- DebugLocation(1292, 5);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1292:5: ^( ARGS ( Identifier )* )
- {
- object root_1 = (object)adaptor.Nil();
- DebugLocation(1292, 8);
- root_1 = (object)adaptor.BecomeRoot((object)adaptor.Create(ARGS, "ARGS"), root_1);
-
- DebugLocation(1292, 13);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1292:13: ( Identifier )*
- while ( stream_Identifier.HasNext )
- {
- DebugLocation(1292, 13);
- adaptor.AddChild(root_1, stream_Identifier.NextNode());
-
- }
- stream_Identifier.Reset();
-
- adaptor.AddChild(root_0, root_1);
- }
-
- }
-
- retval.Tree = root_0;
- }
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(1293, 1);
- } finally { DebugExitRule(GrammarFileName, "formalParameterList"); }
- return retval;
-
- }
- // $ANTLR end "formalParameterList"
-
- public class functionBody_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_functionBody() {}
- protected virtual void Leave_functionBody() {}
-
- // $ANTLR start "functionBody"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1295:1: functionBody : lb= LBRACE ( sourceElement )* RBRACE -> ^( BLOCK[$lb, \"BLOCK\"] ( sourceElement )* ) ;
- [GrammarRule("functionBody")]
- private ES3Parser.functionBody_return functionBody()
- {
-
- ES3Parser.functionBody_return retval = new ES3Parser.functionBody_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- IToken lb=null;
- IToken RBRACE276=null;
- ES3Parser.sourceElement_return sourceElement275 = default(ES3Parser.sourceElement_return);
-
- object lb_tree=null;
- object RBRACE276_tree=null;
- RewriteRuleITokenStream stream_RBRACE=new RewriteRuleITokenStream(adaptor,"token RBRACE");
- RewriteRuleITokenStream stream_LBRACE=new RewriteRuleITokenStream(adaptor,"token LBRACE");
- RewriteRuleSubtreeStream stream_sourceElement=new RewriteRuleSubtreeStream(adaptor,"rule sourceElement");
- try { DebugEnterRule(GrammarFileName, "functionBody");
- DebugLocation(1295, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1296:2: (lb= LBRACE ( sourceElement )* RBRACE -> ^( BLOCK[$lb, \"BLOCK\"] ( sourceElement )* ) )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1296:4: lb= LBRACE ( sourceElement )* RBRACE
- {
- DebugLocation(1296, 6);
- lb=(IToken)Match(input,LBRACE,Follow._LBRACE_in_functionBody5736);
- stream_LBRACE.Add(lb);
-
- DebugLocation(1296, 14);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1296:14: ( sourceElement )*
- try { DebugEnterSubRule(72);
- while (true)
- {
- int alt72=2;
- try { DebugEnterDecision(72, decisionCanBacktrack[72]);
- int LA72_0 = input.LA(1);
-
- if (((LA72_0>=NULL && LA72_0<=BREAK)||LA72_0==CONTINUE||(LA72_0>=DELETE && LA72_0<=DO)||(LA72_0>=FOR && LA72_0<=IF)||(LA72_0>=NEW && LA72_0<=WITH)||LA72_0==LBRACE||LA72_0==LPAREN||LA72_0==LBRACK||LA72_0==SEMIC||(LA72_0>=ADD && LA72_0<=SUB)||(LA72_0>=INC && LA72_0<=DEC)||(LA72_0>=NOT && LA72_0<=INV)||(LA72_0>=Identifier && LA72_0<=StringLiteral)||LA72_0==RegularExpressionLiteral||(LA72_0>=DecimalLiteral && LA72_0<=HexIntegerLiteral)))
- {
- alt72=1;
- }
-
-
- } finally { DebugExitDecision(72); }
- switch ( alt72 )
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1296:14: sourceElement
- {
- DebugLocation(1296, 14);
- PushFollow(Follow._sourceElement_in_functionBody5738);
- sourceElement275=sourceElement();
- PopFollow();
-
- stream_sourceElement.Add(sourceElement275.Tree);
-
- }
- break;
-
- default:
- goto loop72;
- }
- }
-
- loop72:
- ;
-
- } finally { DebugExitSubRule(72); }
-
- DebugLocation(1296, 29);
- RBRACE276=(IToken)Match(input,RBRACE,Follow._RBRACE_in_functionBody5741);
- stream_RBRACE.Add(RBRACE276);
-
-
-
- {
- // AST REWRITE
- // elements: sourceElement
- // token labels:
- // rule labels: retval
- // token list labels:
- // rule list labels:
- // wildcard labels:
- retval.Tree = root_0;
- RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"rule retval",retval!=null?retval.Tree:null);
-
- root_0 = (object)adaptor.Nil();
- // 1297:2: -> ^( BLOCK[$lb, \"BLOCK\"] ( sourceElement )* )
- {
- DebugLocation(1297, 5);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1297:5: ^( BLOCK[$lb, \"BLOCK\"] ( sourceElement )* )
- {
- object root_1 = (object)adaptor.Nil();
- DebugLocation(1297, 8);
- root_1 = (object)adaptor.BecomeRoot((object)adaptor.Create(BLOCK, lb, "BLOCK"), root_1);
-
- DebugLocation(1297, 28);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1297:28: ( sourceElement )*
- while ( stream_sourceElement.HasNext )
- {
- DebugLocation(1297, 28);
- adaptor.AddChild(root_1, stream_sourceElement.NextTree());
-
- }
- stream_sourceElement.Reset();
-
- adaptor.AddChild(root_0, root_1);
- }
-
- }
-
- retval.Tree = root_0;
- }
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(1298, 1);
- } finally { DebugExitRule(GrammarFileName, "functionBody"); }
- return retval;
-
- }
- // $ANTLR end "functionBody"
-
- public class program_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_program() {}
- protected virtual void Leave_program() {}
-
- // $ANTLR start "program"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1304:1: program : ( sourceElement )* ;
- [GrammarRule("program")]
- public ES3Parser.program_return program()
- {
-
- ES3Parser.program_return retval = new ES3Parser.program_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- ES3Parser.sourceElement_return sourceElement277 = default(ES3Parser.sourceElement_return);
-
-
- try { DebugEnterRule(GrammarFileName, "program");
- DebugLocation(1304, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1305:2: ( ( sourceElement )* )
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1305:4: ( sourceElement )*
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(1305, 4);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1305:4: ( sourceElement )*
- try { DebugEnterSubRule(73);
- while (true)
- {
- int alt73=2;
- try { DebugEnterDecision(73, decisionCanBacktrack[73]);
- int LA73_0 = input.LA(1);
-
- if (((LA73_0>=NULL && LA73_0<=BREAK)||LA73_0==CONTINUE||(LA73_0>=DELETE && LA73_0<=DO)||(LA73_0>=FOR && LA73_0<=IF)||(LA73_0>=NEW && LA73_0<=WITH)||LA73_0==LBRACE||LA73_0==LPAREN||LA73_0==LBRACK||LA73_0==SEMIC||(LA73_0>=ADD && LA73_0<=SUB)||(LA73_0>=INC && LA73_0<=DEC)||(LA73_0>=NOT && LA73_0<=INV)||(LA73_0>=Identifier && LA73_0<=StringLiteral)||LA73_0==RegularExpressionLiteral||(LA73_0>=DecimalLiteral && LA73_0<=HexIntegerLiteral)))
- {
- alt73=1;
- }
-
-
- } finally { DebugExitDecision(73); }
- switch ( alt73 )
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1305:4: sourceElement
- {
- DebugLocation(1305, 4);
- PushFollow(Follow._sourceElement_in_program5770);
- sourceElement277=sourceElement();
- PopFollow();
-
- adaptor.AddChild(root_0, sourceElement277.Tree);
-
- }
- break;
-
- default:
- goto loop73;
- }
- }
-
- loop73:
- ;
-
- } finally { DebugExitSubRule(73); }
-
-
- }
-
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(1306, 1);
- } finally { DebugExitRule(GrammarFileName, "program"); }
- return retval;
-
- }
- // $ANTLR end "program"
-
- public class sourceElement_return : ParserRuleReturnScope, IAstRuleReturnScope
- {
- private object _tree;
- public object Tree { get { return _tree; } set { _tree = value; } }
- }
-
- protected virtual void Enter_sourceElement() {}
- protected virtual void Leave_sourceElement() {}
-
- // $ANTLR start "sourceElement"
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1313:1: sourceElement options {k=1; } : ({...}? functionDeclaration | statement );
- [GrammarRule("sourceElement")]
- private ES3Parser.sourceElement_return sourceElement()
- {
-
- ES3Parser.sourceElement_return retval = new ES3Parser.sourceElement_return();
- retval.Start = (IToken)input.LT(1);
-
- object root_0 = null;
-
- ES3Parser.functionDeclaration_return functionDeclaration278 = default(ES3Parser.functionDeclaration_return);
- ES3Parser.statement_return statement279 = default(ES3Parser.statement_return);
-
-
- try { DebugEnterRule(GrammarFileName, "sourceElement");
- DebugLocation(1313, 1);
- try
- {
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1318:2: ({...}? functionDeclaration | statement )
- int alt74=2;
- try { DebugEnterDecision(74, decisionCanBacktrack[74]);
- try
- {
- alt74 = dfa74.Predict(input);
- }
- catch (NoViableAltException nvae)
- {
- DebugRecognitionException(nvae);
- throw;
- }
- } finally { DebugExitDecision(74); }
- switch (alt74)
- {
- case 1:
- DebugEnterAlt(1);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1318:4: {...}? functionDeclaration
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(1318, 4);
- if (!(( input.LA(1) == FUNCTION )))
- {
- throw new FailedPredicateException(input, "sourceElement", " input.LA(1) == FUNCTION ");
- }
- DebugLocation(1318, 33);
- PushFollow(Follow._functionDeclaration_in_sourceElement5799);
- functionDeclaration278=functionDeclaration();
- PopFollow();
-
- adaptor.AddChild(root_0, functionDeclaration278.Tree);
-
- }
- break;
- case 2:
- DebugEnterAlt(2);
- // D:\\downloads\\antlr\\ES3\\CSharp\\ES3.g3:1319:4: statement
- {
- root_0 = (object)adaptor.Nil();
-
- DebugLocation(1319, 4);
- PushFollow(Follow._statement_in_sourceElement5804);
- statement279=statement();
- PopFollow();
-
- adaptor.AddChild(root_0, statement279.Tree);
-
- }
- break;
-
- }
- retval.Stop = (IToken)input.LT(-1);
-
- retval.Tree = (object)adaptor.RulePostProcessing(root_0);
- adaptor.SetTokenBoundaries(retval.Tree, retval.Start, retval.Stop);
-
- }
- catch (RecognitionException re)
- {
- ReportError(re);
- Recover(input,re);
- retval.Tree = (object)adaptor.ErrorNode(input, retval.Start, input.LT(-1), re);
-
- }
- finally
- {
- }
- DebugLocation(1320, 1);
- } finally { DebugExitRule(GrammarFileName, "sourceElement"); }
- return retval;
-
- }
- // $ANTLR end "sourceElement"
-
- #region DFA
- DFA43 dfa43;
- DFA44 dfa44;
- DFA74 dfa74;
-
- protected override void InitDFAs()
- {
- base.InitDFAs();
- dfa43 = new DFA43( this, SpecialStateTransition43 );
- dfa44 = new DFA44( this );
- dfa74 = new DFA74( this, SpecialStateTransition74 );
- }
-
- private class DFA43 : DFA
- {
- private const string DFA43_eotS =
- "\x24\uffff";
- private const string DFA43_eofS =
- "\x24\uffff";
- private const string DFA43_minS =
- "\x01\x04\x01\x00\x22\uffff";
- private const string DFA43_maxS =
- "\x01\u00a1\x01\x00\x22\uffff";
- private const string DFA43_acceptS =
- "\x02\uffff\x01\x02\x20\uffff\x01\x01";
- private const string DFA43_specialS =
- "\x01\uffff\x01\x00\x22\uffff}>";
- private static readonly string[] DFA43_transitionS =
- {
- "\x04\x02\x02\uffff\x01\x02\x01\uffff\x02\x02\x02\uffff\x03\x02\x02"+
- "\uffff\x0b\x02\x1f\uffff\x01\x01\x01\uffff\x01\x02\x01\uffff\x01\x02"+
- "\x02\uffff\x01\x02\x09\uffff\x02\x02\x02\uffff\x02\x02\x06\uffff\x02"+
- "\x02\x36\uffff\x02\x02\x05\uffff\x01\x02\x03\uffff\x03\x02",
- "\x01\uffff",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- ""
- };
-
- private static readonly short[] DFA43_eot = DFA.UnpackEncodedString(DFA43_eotS);
- private static readonly short[] DFA43_eof = DFA.UnpackEncodedString(DFA43_eofS);
- private static readonly char[] DFA43_min = DFA.UnpackEncodedStringToUnsignedChars(DFA43_minS);
- private static readonly char[] DFA43_max = DFA.UnpackEncodedStringToUnsignedChars(DFA43_maxS);
- private static readonly short[] DFA43_accept = DFA.UnpackEncodedString(DFA43_acceptS);
- private static readonly short[] DFA43_special = DFA.UnpackEncodedString(DFA43_specialS);
- private static readonly short[][] DFA43_transition;
-
- static DFA43()
- {
- int numStates = DFA43_transitionS.Length;
- DFA43_transition = new short[numStates][];
- for ( int i=0; i < numStates; i++ )
- {
- DFA43_transition[i] = DFA.UnpackEncodedString(DFA43_transitionS[i]);
- }
- }
-
- public DFA43( BaseRecognizer recognizer, SpecialStateTransitionHandler specialStateTransition )
- : base(specialStateTransition)
- {
- this.recognizer = recognizer;
- this.decisionNumber = 43;
- this.eot = DFA43_eot;
- this.eof = DFA43_eof;
- this.min = DFA43_min;
- this.max = DFA43_max;
- this.accept = DFA43_accept;
- this.special = DFA43_special;
- this.transition = DFA43_transition;
- }
-
- public override string Description { get { return "956:1: statement options {k=1; } : ({...}? block | statementTail );"; } }
-
- public override void Error(NoViableAltException nvae)
- {
- DebugRecognitionException(nvae);
- }
- }
-
- private int SpecialStateTransition43(DFA dfa, int s, IIntStream _input)
- {
- ITokenStream input = (ITokenStream)_input;
- int _s = s;
- switch (s)
- {
- case 0:
- int LA43_1 = input.LA(1);
-
-
- int index43_1 = input.Index;
- input.Rewind();
- s = -1;
- if ( (( input.LA(1) == LBRACE )) ) {s = 35;}
-
- else if ( (true) ) {s = 2;}
-
-
- input.Seek(index43_1);
- if ( s>=0 ) return s;
- break;
- }
- NoViableAltException nvae = new NoViableAltException(dfa.Description, 43, _s, input);
- dfa.Error(nvae);
- throw nvae;
- }
- private class DFA44 : DFA
- {
- private const string DFA44_eotS =
- "\x0f\uffff";
- private const string DFA44_eofS =
- "\x04\uffff\x01\x03\x0a\uffff";
- private const string DFA44_minS =
- "\x01\x04\x03\uffff\x01\x13\x0a\uffff";
- private const string DFA44_maxS =
- "\x01\u00a1\x03\uffff\x01\u0092\x0a\uffff";
- private const string DFA44_acceptS =
- "\x01\uffff\x01\x01\x01\x02\x01\x03\x01\uffff\x01\x04\x01\x05\x01\x06"+
- "\x01\x07\x01\x08\x01\x09\x01\x0b\x01\x0c\x01\x0d\x01\x0a";
- private const string DFA44_specialS =
- "\x0f\uffff}>";
- private static readonly string[] DFA44_transitionS =
- {
- "\x03\x03\x01\x08\x02\uffff\x01\x07\x01\uffff\x01\x03\x01\x06\x02\uffff"+
- "\x01\x06\x01\x03\x01\x05\x02\uffff\x01\x03\x01\x09\x01\x0b\x01\x03\x01"+
- "\x0c\x01\x0d\x01\x03\x01\x01\x01\x03\x01\x06\x01\x0a\x1f\uffff\x01\x03"+
- "\x01\uffff\x01\x03\x01\uffff\x01\x03\x02\uffff\x01\x02\x09\uffff\x02"+
- "\x03\x02\uffff\x02\x03\x06\uffff\x02\x03\x36\uffff\x01\x04\x01\x03\x05"+
- "\uffff\x01\x03\x03\uffff\x03\x03",
- "",
- "",
- "",
- "\x02\x03\x2b\uffff\x02\x03\x01\uffff\x01\x03\x01\uffff\x17\x03\x02"+
- "\uffff\x03\x03\x01\x0e\x0d\x03\x22\uffff\x02\x03",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- ""
- };
-
- private static readonly short[] DFA44_eot = DFA.UnpackEncodedString(DFA44_eotS);
- private static readonly short[] DFA44_eof = DFA.UnpackEncodedString(DFA44_eofS);
- private static readonly char[] DFA44_min = DFA.UnpackEncodedStringToUnsignedChars(DFA44_minS);
- private static readonly char[] DFA44_max = DFA.UnpackEncodedStringToUnsignedChars(DFA44_maxS);
- private static readonly short[] DFA44_accept = DFA.UnpackEncodedString(DFA44_acceptS);
- private static readonly short[] DFA44_special = DFA.UnpackEncodedString(DFA44_specialS);
- private static readonly short[][] DFA44_transition;
-
- static DFA44()
- {
- int numStates = DFA44_transitionS.Length;
- DFA44_transition = new short[numStates][];
- for ( int i=0; i < numStates; i++ )
- {
- DFA44_transition[i] = DFA.UnpackEncodedString(DFA44_transitionS[i]);
- }
- }
-
- public DFA44( BaseRecognizer recognizer )
- {
- this.recognizer = recognizer;
- this.decisionNumber = 44;
- this.eot = DFA44_eot;
- this.eof = DFA44_eof;
- this.min = DFA44_min;
- this.max = DFA44_max;
- this.accept = DFA44_accept;
- this.special = DFA44_special;
- this.transition = DFA44_transition;
- }
-
- public override string Description { get { return "965:1: statementTail : ( variableStatement | emptyStatement | expressionStatement | ifStatement | iterationStatement | continueStatement | breakStatement | returnStatement | withStatement | labelledStatement | switchStatement | throwStatement | tryStatement );"; } }
-
- public override void Error(NoViableAltException nvae)
- {
- DebugRecognitionException(nvae);
- }
- }
-
- private class DFA74 : DFA
- {
- private const string DFA74_eotS =
- "\x24\uffff";
- private const string DFA74_eofS =
- "\x24\uffff";
- private const string DFA74_minS =
- "\x01\x04\x01\x00\x22\uffff";
- private const string DFA74_maxS =
- "\x01\u00a1\x01\x00\x22\uffff";
- private const string DFA74_acceptS =
- "\x02\uffff\x01\x02\x20\uffff\x01\x01";
- private const string DFA74_specialS =
- "\x01\uffff\x01\x00\x22\uffff}>";
- private static readonly string[] DFA74_transitionS =
- {
- "\x04\x02\x02\uffff\x01\x02\x01\uffff\x02\x02\x02\uffff\x01\x02\x01"+
- "\x01\x01\x02\x02\uffff\x0b\x02\x1f\uffff\x01\x02\x01\uffff\x01\x02\x01"+
- "\uffff\x01\x02\x02\uffff\x01\x02\x09\uffff\x02\x02\x02\uffff\x02\x02"+
- "\x06\uffff\x02\x02\x36\uffff\x02\x02\x05\uffff\x01\x02\x03\uffff\x03"+
- "\x02",
- "\x01\uffff",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- ""
- };
-
- private static readonly short[] DFA74_eot = DFA.UnpackEncodedString(DFA74_eotS);
- private static readonly short[] DFA74_eof = DFA.UnpackEncodedString(DFA74_eofS);
- private static readonly char[] DFA74_min = DFA.UnpackEncodedStringToUnsignedChars(DFA74_minS);
- private static readonly char[] DFA74_max = DFA.UnpackEncodedStringToUnsignedChars(DFA74_maxS);
- private static readonly short[] DFA74_accept = DFA.UnpackEncodedString(DFA74_acceptS);
- private static readonly short[] DFA74_special = DFA.UnpackEncodedString(DFA74_specialS);
- private static readonly short[][] DFA74_transition;
-
- static DFA74()
- {
- int numStates = DFA74_transitionS.Length;
- DFA74_transition = new short[numStates][];
- for ( int i=0; i < numStates; i++ )
- {
- DFA74_transition[i] = DFA.UnpackEncodedString(DFA74_transitionS[i]);
- }
- }
-
- public DFA74( BaseRecognizer recognizer, SpecialStateTransitionHandler specialStateTransition )
- : base(specialStateTransition)
- {
- this.recognizer = recognizer;
- this.decisionNumber = 74;
- this.eot = DFA74_eot;
- this.eof = DFA74_eof;
- this.min = DFA74_min;
- this.max = DFA74_max;
- this.accept = DFA74_accept;
- this.special = DFA74_special;
- this.transition = DFA74_transition;
- }
-
- public override string Description { get { return "1313:1: sourceElement options {k=1; } : ({...}? functionDeclaration | statement );"; } }
-
- public override void Error(NoViableAltException nvae)
- {
- DebugRecognitionException(nvae);
- }
- }
-
- private int SpecialStateTransition74(DFA dfa, int s, IIntStream _input)
- {
- ITokenStream input = (ITokenStream)_input;
- int _s = s;
- switch (s)
- {
- case 0:
- int LA74_1 = input.LA(1);
-
-
- int index74_1 = input.Index;
- input.Rewind();
- s = -1;
- if ( (( input.LA(1) == FUNCTION )) ) {s = 35;}
-
- else if ( (true) ) {s = 2;}
-
-
- input.Seek(index74_1);
- if ( s>=0 ) return s;
- break;
- }
- NoViableAltException nvae = new NoViableAltException(dfa.Description, 74, _s, input);
- dfa.Error(nvae);
- throw nvae;
- }
-
- #endregion DFA
-
- #region Follow sets
- private static class Follow
- {
- public static readonly BitSet _reservedWord_in_token1753 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _Identifier_in_token1758 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _punctuator_in_token1763 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _numericLiteral_in_token1768 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _StringLiteral_in_token1773 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _keyword_in_reservedWord1786 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _futureReservedWord_in_reservedWord1791 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _NULL_in_reservedWord1796 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _booleanLiteral_in_reservedWord1801 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _set_in_keyword0 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _set_in_futureReservedWord0 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _set_in_punctuator0 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _NULL_in_literal2482 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _booleanLiteral_in_literal2487 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _numericLiteral_in_literal2492 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _StringLiteral_in_literal2497 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _RegularExpressionLiteral_in_literal2502 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _set_in_booleanLiteral0 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _set_in_numericLiteral0 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _THIS_in_primaryExpression3115 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _Identifier_in_primaryExpression3120 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _literal_in_primaryExpression3125 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _arrayLiteral_in_primaryExpression3130 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _objectLiteral_in_primaryExpression3135 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _LPAREN_in_primaryExpression3142 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _expression_in_primaryExpression3144 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000000000004UL});
- public static readonly BitSet _RPAREN_in_primaryExpression3146 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _LBRACK_in_arrayLiteral3170 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033009AUL,0x0000000388300000UL});
- public static readonly BitSet _arrayItem_in_arrayLiteral3174 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000000000090UL});
- public static readonly BitSet _COMMA_in_arrayLiteral3178 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033009AUL,0x0000000388300000UL});
- public static readonly BitSet _arrayItem_in_arrayLiteral3180 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000000000090UL});
- public static readonly BitSet _RBRACK_in_arrayLiteral3188 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _assignmentExpression_in_arrayItem3216 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _LBRACE_in_objectLiteral3248 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000000000001UL,0x0000000380300000UL});
- public static readonly BitSet _nameValuePair_in_objectLiteral3252 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000000000081UL});
- public static readonly BitSet _COMMA_in_objectLiteral3256 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000000000000UL,0x0000000380300000UL});
- public static readonly BitSet _nameValuePair_in_objectLiteral3258 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000000000081UL});
- public static readonly BitSet _RBRACE_in_objectLiteral3266 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _propertyName_in_nameValuePair3291 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000200000000UL});
- public static readonly BitSet _COLON_in_nameValuePair3293 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _assignmentExpression_in_nameValuePair3295 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _Identifier_in_propertyName3319 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _StringLiteral_in_propertyName3324 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _numericLiteral_in_propertyName3329 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _primaryExpression_in_memberExpression3347 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _functionExpression_in_memberExpression3352 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _newExpression_in_memberExpression3357 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _NEW_in_newExpression3368 = new BitSet(new ulong[]{0x8000000001000070UL,0x000000000000000AUL,0x0000000388300000UL});
- public static readonly BitSet _primaryExpression_in_newExpression3371 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _LPAREN_in_arguments3384 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033000EUL,0x0000000388300000UL});
- public static readonly BitSet _assignmentExpression_in_arguments3388 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000000000084UL});
- public static readonly BitSet _COMMA_in_arguments3392 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _assignmentExpression_in_arguments3394 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000000000084UL});
- public static readonly BitSet _RPAREN_in_arguments3402 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _memberExpression_in_leftHandSideExpression3431 = new BitSet(new ulong[]{0x0000000000000002UL,0x000000000000002AUL});
- public static readonly BitSet _arguments_in_leftHandSideExpression3447 = new BitSet(new ulong[]{0x0000000000000002UL,0x000000000000002AUL});
- public static readonly BitSet _LBRACK_in_leftHandSideExpression3468 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _expression_in_leftHandSideExpression3470 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000000000010UL});
- public static readonly BitSet _RBRACK_in_leftHandSideExpression3472 = new BitSet(new ulong[]{0x0000000000000002UL,0x000000000000002AUL});
- public static readonly BitSet _DOT_in_leftHandSideExpression3491 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000000000000UL,0x0000000000100000UL});
- public static readonly BitSet _Identifier_in_leftHandSideExpression3493 = new BitSet(new ulong[]{0x0000000000000002UL,0x000000000000002AUL});
- public static readonly BitSet _leftHandSideExpression_in_postfixExpression3528 = new BitSet(new ulong[]{0x0000000000000002UL,0x0000000000300000UL});
- public static readonly BitSet _postfixOperator_in_postfixExpression3534 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _INC_in_postfixOperator3552 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _DEC_in_postfixOperator3561 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _postfixExpression_in_unaryExpression3578 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _unaryOperator_in_unaryExpression3583 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _unaryExpression_in_unaryExpression3586 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _DELETE_in_unaryOperator3598 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _VOID_in_unaryOperator3603 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _TYPEOF_in_unaryOperator3608 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _INC_in_unaryOperator3613 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _DEC_in_unaryOperator3618 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _ADD_in_unaryOperator3625 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _SUB_in_unaryOperator3634 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _INV_in_unaryOperator3641 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _NOT_in_unaryOperator3646 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _unaryExpression_in_multiplicativeExpression3661 = new BitSet(new ulong[]{0x0000000000000002UL,0x00002000000C0000UL});
- public static readonly BitSet _set_in_multiplicativeExpression3665 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _unaryExpression_in_multiplicativeExpression3680 = new BitSet(new ulong[]{0x0000000000000002UL,0x00002000000C0000UL});
- public static readonly BitSet _multiplicativeExpression_in_additiveExpression3698 = new BitSet(new ulong[]{0x0000000000000002UL,0x0000000000030000UL});
- public static readonly BitSet _set_in_additiveExpression3702 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _multiplicativeExpression_in_additiveExpression3713 = new BitSet(new ulong[]{0x0000000000000002UL,0x0000000000030000UL});
- public static readonly BitSet _additiveExpression_in_shiftExpression3732 = new BitSet(new ulong[]{0x0000000000000002UL,0x0000000001C00000UL});
- public static readonly BitSet _set_in_shiftExpression3736 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _additiveExpression_in_shiftExpression3751 = new BitSet(new ulong[]{0x0000000000000002UL,0x0000000001C00000UL});
- public static readonly BitSet _shiftExpression_in_relationalExpression3770 = new BitSet(new ulong[]{0x0000000000180002UL,0x0000000000000F00UL});
- public static readonly BitSet _set_in_relationalExpression3774 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _shiftExpression_in_relationalExpression3801 = new BitSet(new ulong[]{0x0000000000180002UL,0x0000000000000F00UL});
- public static readonly BitSet _shiftExpression_in_relationalExpressionNoIn3815 = new BitSet(new ulong[]{0x0000000000100002UL,0x0000000000000F00UL});
- public static readonly BitSet _set_in_relationalExpressionNoIn3819 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _shiftExpression_in_relationalExpressionNoIn3842 = new BitSet(new ulong[]{0x0000000000100002UL,0x0000000000000F00UL});
- public static readonly BitSet _relationalExpression_in_equalityExpression3861 = new BitSet(new ulong[]{0x0000000000000002UL,0x000000000000F000UL});
- public static readonly BitSet _set_in_equalityExpression3865 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _relationalExpression_in_equalityExpression3884 = new BitSet(new ulong[]{0x0000000000000002UL,0x000000000000F000UL});
- public static readonly BitSet _relationalExpressionNoIn_in_equalityExpressionNoIn3898 = new BitSet(new ulong[]{0x0000000000000002UL,0x000000000000F000UL});
- public static readonly BitSet _set_in_equalityExpressionNoIn3902 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _relationalExpressionNoIn_in_equalityExpressionNoIn3921 = new BitSet(new ulong[]{0x0000000000000002UL,0x000000000000F000UL});
- public static readonly BitSet _equalityExpression_in_bitwiseANDExpression3941 = new BitSet(new ulong[]{0x0000000000000002UL,0x0000000002000000UL});
- public static readonly BitSet _AND_in_bitwiseANDExpression3945 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _equalityExpression_in_bitwiseANDExpression3948 = new BitSet(new ulong[]{0x0000000000000002UL,0x0000000002000000UL});
- public static readonly BitSet _equalityExpressionNoIn_in_bitwiseANDExpressionNoIn3962 = new BitSet(new ulong[]{0x0000000000000002UL,0x0000000002000000UL});
- public static readonly BitSet _AND_in_bitwiseANDExpressionNoIn3966 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _equalityExpressionNoIn_in_bitwiseANDExpressionNoIn3969 = new BitSet(new ulong[]{0x0000000000000002UL,0x0000000002000000UL});
- public static readonly BitSet _bitwiseANDExpression_in_bitwiseXORExpression3985 = new BitSet(new ulong[]{0x0000000000000002UL,0x0000000008000000UL});
- public static readonly BitSet _XOR_in_bitwiseXORExpression3989 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _bitwiseANDExpression_in_bitwiseXORExpression3992 = new BitSet(new ulong[]{0x0000000000000002UL,0x0000000008000000UL});
- public static readonly BitSet _bitwiseANDExpressionNoIn_in_bitwiseXORExpressionNoIn4008 = new BitSet(new ulong[]{0x0000000000000002UL,0x0000000008000000UL});
- public static readonly BitSet _XOR_in_bitwiseXORExpressionNoIn4012 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _bitwiseANDExpressionNoIn_in_bitwiseXORExpressionNoIn4015 = new BitSet(new ulong[]{0x0000000000000002UL,0x0000000008000000UL});
- public static readonly BitSet _bitwiseXORExpression_in_bitwiseORExpression4030 = new BitSet(new ulong[]{0x0000000000000002UL,0x0000000004000000UL});
- public static readonly BitSet _OR_in_bitwiseORExpression4034 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _bitwiseXORExpression_in_bitwiseORExpression4037 = new BitSet(new ulong[]{0x0000000000000002UL,0x0000000004000000UL});
- public static readonly BitSet _bitwiseXORExpressionNoIn_in_bitwiseORExpressionNoIn4052 = new BitSet(new ulong[]{0x0000000000000002UL,0x0000000004000000UL});
- public static readonly BitSet _OR_in_bitwiseORExpressionNoIn4056 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _bitwiseXORExpressionNoIn_in_bitwiseORExpressionNoIn4059 = new BitSet(new ulong[]{0x0000000000000002UL,0x0000000004000000UL});
- public static readonly BitSet _bitwiseORExpression_in_logicalANDExpression4078 = new BitSet(new ulong[]{0x0000000000000002UL,0x0000000040000000UL});
- public static readonly BitSet _LAND_in_logicalANDExpression4082 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _bitwiseORExpression_in_logicalANDExpression4085 = new BitSet(new ulong[]{0x0000000000000002UL,0x0000000040000000UL});
- public static readonly BitSet _bitwiseORExpressionNoIn_in_logicalANDExpressionNoIn4099 = new BitSet(new ulong[]{0x0000000000000002UL,0x0000000040000000UL});
- public static readonly BitSet _LAND_in_logicalANDExpressionNoIn4103 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _bitwiseORExpressionNoIn_in_logicalANDExpressionNoIn4106 = new BitSet(new ulong[]{0x0000000000000002UL,0x0000000040000000UL});
- public static readonly BitSet _logicalANDExpression_in_logicalORExpression4121 = new BitSet(new ulong[]{0x0000000000000002UL,0x0000000080000000UL});
- public static readonly BitSet _LOR_in_logicalORExpression4125 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _logicalANDExpression_in_logicalORExpression4128 = new BitSet(new ulong[]{0x0000000000000002UL,0x0000000080000000UL});
- public static readonly BitSet _logicalANDExpressionNoIn_in_logicalORExpressionNoIn4143 = new BitSet(new ulong[]{0x0000000000000002UL,0x0000000080000000UL});
- public static readonly BitSet _LOR_in_logicalORExpressionNoIn4147 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _logicalANDExpressionNoIn_in_logicalORExpressionNoIn4150 = new BitSet(new ulong[]{0x0000000000000002UL,0x0000000080000000UL});
- public static readonly BitSet _logicalORExpression_in_conditionalExpression4169 = new BitSet(new ulong[]{0x0000000000000002UL,0x0000000100000000UL});
- public static readonly BitSet _QUE_in_conditionalExpression4173 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _assignmentExpression_in_conditionalExpression4176 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000200000000UL});
- public static readonly BitSet _COLON_in_conditionalExpression4178 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _assignmentExpression_in_conditionalExpression4181 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _logicalORExpressionNoIn_in_conditionalExpressionNoIn4195 = new BitSet(new ulong[]{0x0000000000000002UL,0x0000000100000000UL});
- public static readonly BitSet _QUE_in_conditionalExpressionNoIn4199 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _assignmentExpressionNoIn_in_conditionalExpressionNoIn4202 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000200000000UL});
- public static readonly BitSet _COLON_in_conditionalExpressionNoIn4204 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _assignmentExpressionNoIn_in_conditionalExpressionNoIn4207 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _conditionalExpression_in_assignmentExpression4235 = new BitSet(new ulong[]{0x0000000000000002UL,0x00005FFC00000000UL});
- public static readonly BitSet _assignmentOperator_in_assignmentExpression4242 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _assignmentExpression_in_assignmentExpression4245 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _set_in_assignmentOperator0 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _conditionalExpressionNoIn_in_assignmentExpressionNoIn4322 = new BitSet(new ulong[]{0x0000000000000002UL,0x00005FFC00000000UL});
- public static readonly BitSet _assignmentOperator_in_assignmentExpressionNoIn4329 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _assignmentExpressionNoIn_in_assignmentExpressionNoIn4332 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _assignmentExpression_in_expression4354 = new BitSet(new ulong[]{0x0000000000000002UL,0x0000000000000080UL});
- public static readonly BitSet _COMMA_in_expression4358 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _assignmentExpression_in_expression4362 = new BitSet(new ulong[]{0x0000000000000002UL,0x0000000000000080UL});
- public static readonly BitSet _assignmentExpressionNoIn_in_expressionNoIn4399 = new BitSet(new ulong[]{0x0000000000000002UL,0x0000000000000080UL});
- public static readonly BitSet _COMMA_in_expressionNoIn4403 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _assignmentExpressionNoIn_in_expressionNoIn4407 = new BitSet(new ulong[]{0x0000000000000002UL,0x0000000000000080UL});
- public static readonly BitSet _SEMIC_in_semic4458 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _EOF_in_semic4463 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _RBRACE_in_semic4468 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _EOL_in_semic4475 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _MultiLineComment_in_semic4479 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _block_in_statement4508 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _statementTail_in_statement4513 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _variableStatement_in_statementTail4525 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _emptyStatement_in_statementTail4530 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _expressionStatement_in_statementTail4535 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _ifStatement_in_statementTail4540 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _iterationStatement_in_statementTail4545 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _continueStatement_in_statementTail4550 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _breakStatement_in_statementTail4555 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _returnStatement_in_statementTail4560 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _withStatement_in_statementTail4565 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _labelledStatement_in_statementTail4570 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _switchStatement_in_statementTail4575 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _throwStatement_in_statementTail4580 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _tryStatement_in_statementTail4585 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _LBRACE_in_block4600 = new BitSet(new ulong[]{0x80000000FFE734F0UL,0x000000003033004BUL,0x0000000388300000UL});
- public static readonly BitSet _statement_in_block4602 = new BitSet(new ulong[]{0x80000000FFE734F0UL,0x000000003033004BUL,0x0000000388300000UL});
- public static readonly BitSet _RBRACE_in_block4605 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _VAR_in_variableStatement4634 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000000000000UL,0x0000000000100000UL});
- public static readonly BitSet _variableDeclaration_in_variableStatement4636 = new BitSet(new ulong[]{0x0000000000000000UL,0x00000000000000C1UL,0x0000000000060000UL});
- public static readonly BitSet _COMMA_in_variableStatement4640 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000000000000UL,0x0000000000100000UL});
- public static readonly BitSet _variableDeclaration_in_variableStatement4642 = new BitSet(new ulong[]{0x0000000000000000UL,0x00000000000000C1UL,0x0000000000060000UL});
- public static readonly BitSet _semic_in_variableStatement4647 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _Identifier_in_variableDeclaration4670 = new BitSet(new ulong[]{0x0000000000000002UL,0x0000000400000000UL});
- public static readonly BitSet _ASSIGN_in_variableDeclaration4674 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _assignmentExpression_in_variableDeclaration4677 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _Identifier_in_variableDeclarationNoIn4692 = new BitSet(new ulong[]{0x0000000000000002UL,0x0000000400000000UL});
- public static readonly BitSet _ASSIGN_in_variableDeclarationNoIn4696 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _assignmentExpressionNoIn_in_variableDeclarationNoIn4699 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _SEMIC_in_emptyStatement4718 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _expression_in_expressionStatement4737 = new BitSet(new ulong[]{0x0000000000000000UL,0x00000000000000C1UL,0x0000000000060000UL});
- public static readonly BitSet _semic_in_expressionStatement4739 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _IF_in_ifStatement4757 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000000000002UL});
- public static readonly BitSet _LPAREN_in_ifStatement4759 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _expression_in_ifStatement4761 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000000000004UL});
- public static readonly BitSet _RPAREN_in_ifStatement4763 = new BitSet(new ulong[]{0x80000000FFE734F0UL,0x000000003033004AUL,0x0000000388300000UL});
- public static readonly BitSet _statement_in_ifStatement4765 = new BitSet(new ulong[]{0x0000000000004002UL});
- public static readonly BitSet _ELSE_in_ifStatement4771 = new BitSet(new ulong[]{0x80000000FFE734F0UL,0x000000003033004AUL,0x0000000388300000UL});
- public static readonly BitSet _statement_in_ifStatement4773 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _doStatement_in_iterationStatement4806 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _whileStatement_in_iterationStatement4811 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _forStatement_in_iterationStatement4816 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _DO_in_doStatement4828 = new BitSet(new ulong[]{0x80000000FFE734F0UL,0x000000003033004AUL,0x0000000388300000UL});
- public static readonly BitSet _statement_in_doStatement4830 = new BitSet(new ulong[]{0x0000000040000000UL});
- public static readonly BitSet _WHILE_in_doStatement4832 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000000000002UL});
- public static readonly BitSet _LPAREN_in_doStatement4834 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _expression_in_doStatement4836 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000000000004UL});
- public static readonly BitSet _RPAREN_in_doStatement4838 = new BitSet(new ulong[]{0x0000000000000000UL,0x00000000000000C1UL,0x0000000000060000UL});
- public static readonly BitSet _semic_in_doStatement4840 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _WHILE_in_whileStatement4865 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000000000002UL});
- public static readonly BitSet _LPAREN_in_whileStatement4868 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _expression_in_whileStatement4871 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000000000004UL});
- public static readonly BitSet _RPAREN_in_whileStatement4873 = new BitSet(new ulong[]{0x80000000FFE734F0UL,0x000000003033004AUL,0x0000000388300000UL});
- public static readonly BitSet _statement_in_whileStatement4876 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _FOR_in_forStatement4889 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000000000002UL});
- public static readonly BitSet _LPAREN_in_forStatement4892 = new BitSet(new ulong[]{0x8000000039221070UL,0x000000003033004AUL,0x0000000388300000UL});
- public static readonly BitSet _forControl_in_forStatement4895 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000000000004UL});
- public static readonly BitSet _RPAREN_in_forStatement4897 = new BitSet(new ulong[]{0x80000000FFE734F0UL,0x000000003033004AUL,0x0000000388300000UL});
- public static readonly BitSet _statement_in_forStatement4900 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _forControlVar_in_forControl4911 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _forControlExpression_in_forControl4916 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _forControlSemic_in_forControl4921 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _VAR_in_forControlVar4932 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000000000000UL,0x0000000000100000UL});
- public static readonly BitSet _variableDeclarationNoIn_in_forControlVar4934 = new BitSet(new ulong[]{0x0000000000080000UL,0x00000000000000C0UL});
- public static readonly BitSet _IN_in_forControlVar4946 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _expression_in_forControlVar4948 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _COMMA_in_forControlVar4994 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000000000000UL,0x0000000000100000UL});
- public static readonly BitSet _variableDeclarationNoIn_in_forControlVar4996 = new BitSet(new ulong[]{0x0000000000000000UL,0x00000000000000C0UL});
- public static readonly BitSet _SEMIC_in_forControlVar5001 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033004AUL,0x0000000388300000UL});
- public static readonly BitSet _expression_in_forControlVar5005 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000000000040UL});
- public static readonly BitSet _SEMIC_in_forControlVar5008 = new BitSet(new ulong[]{0x8000000029221072UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _expression_in_forControlVar5012 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _expressionNoIn_in_forControlExpression5078 = new BitSet(new ulong[]{0x0000000000080000UL,0x0000000000000040UL});
- public static readonly BitSet _IN_in_forControlExpression5093 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _expression_in_forControlExpression5097 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _SEMIC_in_forControlExpression5143 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033004AUL,0x0000000388300000UL});
- public static readonly BitSet _expression_in_forControlExpression5147 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000000000040UL});
- public static readonly BitSet _SEMIC_in_forControlExpression5150 = new BitSet(new ulong[]{0x8000000029221072UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _expression_in_forControlExpression5154 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _SEMIC_in_forControlSemic5213 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033004AUL,0x0000000388300000UL});
- public static readonly BitSet _expression_in_forControlSemic5217 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000000000040UL});
- public static readonly BitSet _SEMIC_in_forControlSemic5220 = new BitSet(new ulong[]{0x8000000029221072UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _expression_in_forControlSemic5224 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _CONTINUE_in_continueStatement5278 = new BitSet(new ulong[]{0x0000000000000000UL,0x00000000000000C1UL,0x0000000000160000UL});
- public static readonly BitSet _Identifier_in_continueStatement5283 = new BitSet(new ulong[]{0x0000000000000000UL,0x00000000000000C1UL,0x0000000000060000UL});
- public static readonly BitSet _semic_in_continueStatement5286 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _BREAK_in_breakStatement5305 = new BitSet(new ulong[]{0x0000000000000000UL,0x00000000000000C1UL,0x0000000000160000UL});
- public static readonly BitSet _Identifier_in_breakStatement5310 = new BitSet(new ulong[]{0x0000000000000000UL,0x00000000000000C1UL,0x0000000000060000UL});
- public static readonly BitSet _semic_in_breakStatement5313 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _RETURN_in_returnStatement5332 = new BitSet(new ulong[]{0x8000000029221070UL,0x00000000303300CBUL,0x0000000388360000UL});
- public static readonly BitSet _expression_in_returnStatement5337 = new BitSet(new ulong[]{0x0000000000000000UL,0x00000000000000C1UL,0x0000000000060000UL});
- public static readonly BitSet _semic_in_returnStatement5340 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _WITH_in_withStatement5357 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000000000002UL});
- public static readonly BitSet _LPAREN_in_withStatement5360 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _expression_in_withStatement5363 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000000000004UL});
- public static readonly BitSet _RPAREN_in_withStatement5365 = new BitSet(new ulong[]{0x80000000FFE734F0UL,0x000000003033004AUL,0x0000000388300000UL});
- public static readonly BitSet _statement_in_withStatement5368 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _SWITCH_in_switchStatement5389 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000000000002UL});
- public static readonly BitSet _LPAREN_in_switchStatement5391 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _expression_in_switchStatement5393 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000000000004UL});
- public static readonly BitSet _RPAREN_in_switchStatement5395 = new BitSet(new ulong[]{0x8000000000000000UL});
- public static readonly BitSet _LBRACE_in_switchStatement5397 = new BitSet(new ulong[]{0x0000000000000900UL,0x0000000000000001UL});
- public static readonly BitSet _defaultClause_in_switchStatement5404 = new BitSet(new ulong[]{0x0000000000000900UL,0x0000000000000001UL});
- public static readonly BitSet _caseClause_in_switchStatement5410 = new BitSet(new ulong[]{0x0000000000000900UL,0x0000000000000001UL});
- public static readonly BitSet _RBRACE_in_switchStatement5415 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _CASE_in_caseClause5443 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _expression_in_caseClause5446 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000200000000UL});
- public static readonly BitSet _COLON_in_caseClause5448 = new BitSet(new ulong[]{0x80000000FFE734F2UL,0x000000003033004AUL,0x0000000388300000UL});
- public static readonly BitSet _statement_in_caseClause5451 = new BitSet(new ulong[]{0x80000000FFE734F2UL,0x000000003033004AUL,0x0000000388300000UL});
- public static readonly BitSet _DEFAULT_in_defaultClause5464 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000200000000UL});
- public static readonly BitSet _COLON_in_defaultClause5467 = new BitSet(new ulong[]{0x80000000FFE734F2UL,0x000000003033004AUL,0x0000000388300000UL});
- public static readonly BitSet _statement_in_defaultClause5470 = new BitSet(new ulong[]{0x80000000FFE734F2UL,0x000000003033004AUL,0x0000000388300000UL});
- public static readonly BitSet _Identifier_in_labelledStatement5487 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000200000000UL});
- public static readonly BitSet _COLON_in_labelledStatement5489 = new BitSet(new ulong[]{0x80000000FFE734F0UL,0x000000003033004AUL,0x0000000388300000UL});
- public static readonly BitSet _statement_in_labelledStatement5491 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _THROW_in_throwStatement5522 = new BitSet(new ulong[]{0x8000000029221070UL,0x000000003033000AUL,0x0000000388300000UL});
- public static readonly BitSet _expression_in_throwStatement5527 = new BitSet(new ulong[]{0x0000000000000000UL,0x00000000000000C1UL,0x0000000000060000UL});
- public static readonly BitSet _semic_in_throwStatement5529 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _TRY_in_tryStatement5546 = new BitSet(new ulong[]{0x8000000000000000UL});
- public static readonly BitSet _block_in_tryStatement5549 = new BitSet(new ulong[]{0x0000000000008200UL});
- public static readonly BitSet _catchClause_in_tryStatement5553 = new BitSet(new ulong[]{0x0000000000008202UL});
- public static readonly BitSet _finallyClause_in_tryStatement5555 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _finallyClause_in_tryStatement5560 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _CATCH_in_catchClause5574 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000000000002UL});
- public static readonly BitSet _LPAREN_in_catchClause5577 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000000000000UL,0x0000000000100000UL});
- public static readonly BitSet _Identifier_in_catchClause5580 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000000000004UL});
- public static readonly BitSet _RPAREN_in_catchClause5582 = new BitSet(new ulong[]{0x8000000000000000UL});
- public static readonly BitSet _block_in_catchClause5585 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _FINALLY_in_finallyClause5597 = new BitSet(new ulong[]{0x8000000000000000UL});
- public static readonly BitSet _block_in_finallyClause5600 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _FUNCTION_in_functionDeclaration5621 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000000000000UL,0x0000000000100000UL});
- public static readonly BitSet _Identifier_in_functionDeclaration5625 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000000000002UL});
- public static readonly BitSet _formalParameterList_in_functionDeclaration5627 = new BitSet(new ulong[]{0x8000000000000000UL});
- public static readonly BitSet _functionBody_in_functionDeclaration5629 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _FUNCTION_in_functionExpression5656 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000000000002UL,0x0000000000100000UL});
- public static readonly BitSet _Identifier_in_functionExpression5660 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000000000002UL});
- public static readonly BitSet _formalParameterList_in_functionExpression5663 = new BitSet(new ulong[]{0x8000000000000000UL});
- public static readonly BitSet _functionBody_in_functionExpression5665 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _LPAREN_in_formalParameterList5693 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000000000004UL,0x0000000000100000UL});
- public static readonly BitSet _Identifier_in_formalParameterList5697 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000000000084UL});
- public static readonly BitSet _COMMA_in_formalParameterList5701 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000000000000UL,0x0000000000100000UL});
- public static readonly BitSet _Identifier_in_formalParameterList5703 = new BitSet(new ulong[]{0x0000000000000000UL,0x0000000000000084UL});
- public static readonly BitSet _RPAREN_in_formalParameterList5711 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _LBRACE_in_functionBody5736 = new BitSet(new ulong[]{0x80000000FFE734F0UL,0x000000003033004BUL,0x0000000388300000UL});
- public static readonly BitSet _sourceElement_in_functionBody5738 = new BitSet(new ulong[]{0x80000000FFE734F0UL,0x000000003033004BUL,0x0000000388300000UL});
- public static readonly BitSet _RBRACE_in_functionBody5741 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _sourceElement_in_program5770 = new BitSet(new ulong[]{0x80000000FFE734F2UL,0x000000003033004AUL,0x0000000388300000UL});
- public static readonly BitSet _functionDeclaration_in_sourceElement5799 = new BitSet(new ulong[]{0x0000000000000002UL});
- public static readonly BitSet _statement_in_sourceElement5804 = new BitSet(new ulong[]{0x0000000000000002UL});
-
- }
- #endregion Follow sets
-}
-}
\ No newline at end of file
diff --git a/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/ITokenExtensions.cs b/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/ITokenExtensions.cs
deleted file mode 100644
index 3624ac286cd..00000000000
--- a/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/ITokenExtensions.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy of this
-// software and associated documentation files (the "Software"), to deal in the Software
-// without restriction, including without limitation the rights to use, copy, modify, merge,
-// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
-// to whom the Software is furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in all copies or
-// substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
-// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
-// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
-// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-// DEALINGS IN THE SOFTWARE.
-
-using System;
-using Antlr.Runtime;
-using Xebic.Parsers.ES3;
-
-namespace ICSharpCode.JavaScriptBinding
-{
- public static class ITokenExtensions
- {
- public static int BeginColumn(this IToken token)
- {
- return token.CharPositionInLine + 1;
- }
-
- public static int EndColumn(this IToken token)
- {
- return token.CharPositionInLine + token.Text.Length + 1;
- }
-
- public static bool IsSingleLineComment(this IToken token)
- {
- return token.Type == ES3Lexer.SingleLineComment;
- }
- }
-}
diff --git a/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/JavaScriptAst.cs b/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/JavaScriptAst.cs
deleted file mode 100644
index 3be9b819976..00000000000
--- a/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/JavaScriptAst.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy of this
-// software and associated documentation files (the "Software"), to deal in the Software
-// without restriction, including without limitation the rights to use, copy, modify, merge,
-// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
-// to whom the Software is furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in all copies or
-// substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
-// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
-// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
-// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-// DEALINGS IN THE SOFTWARE.
-
-using System;
-using System.Collections.Generic;
-using Antlr.Runtime;
-using Antlr.Runtime.Tree;
-
-namespace ICSharpCode.JavaScriptBinding
-{
- public class JavaScriptAst
- {
- CommonTokenStream tokenStream;
- CommonTree tree;
-
- public JavaScriptAst(CommonTokenStream tokenStream, CommonTree tree)
- {
- this.tokenStream = tokenStream;
- this.tree = tree;
- }
-
- public CommonTree Tree {
- get { return tree; }
- }
-
- public bool IsValid {
- get { return tree != null; }
- }
-
- public IToken GetToken(int index)
- {
- return tokenStream.Get(index);
- }
-
- public IList GetTokens()
- {
- return tokenStream.GetTokens();
- }
- }
-}
diff --git a/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/JavaScriptAstFactory.cs b/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/JavaScriptAstFactory.cs
deleted file mode 100644
index f6d94dad9a5..00000000000
--- a/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/JavaScriptAstFactory.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy of this
-// software and associated documentation files (the "Software"), to deal in the Software
-// without restriction, including without limitation the rights to use, copy, modify, merge,
-// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
-// to whom the Software is furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in all copies or
-// substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
-// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
-// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
-// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-// DEALINGS IN THE SOFTWARE.
-
-using System;
-using Antlr.Runtime;
-using Antlr.Runtime.Tree;
-using ICSharpCode.SharpDevelop;
-using Xebic.Parsers.ES3;
-
-namespace ICSharpCode.JavaScriptBinding
-{
- public class JavaScriptAstFactory
- {
- string code;
- CommonTokenStream tokenStream;
- ES3Parser.program_return programReturn;
-
- public JavaScriptAstFactory(ITextBuffer textBuffer)
- {
- code = textBuffer.Text;
- }
-
- public JavaScriptAst Create()
- {
- CreateTokenStream();
- var parser = new ES3Parser(tokenStream);
- programReturn = parser.program();
- return new JavaScriptAst(tokenStream, programReturn.Tree as CommonTree);
- }
-
- void CreateTokenStream()
- {
- var stream = new ANTLRStringStream(code);
- var lexer = new ES3Lexer(stream);
- tokenStream = new CommonTokenStream(lexer);
- }
- }
-}
diff --git a/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/JavaScriptAstWalker.cs b/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/JavaScriptAstWalker.cs
deleted file mode 100644
index 5b3156d18b6..00000000000
--- a/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/JavaScriptAstWalker.cs
+++ /dev/null
@@ -1,78 +0,0 @@
-// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy of this
-// software and associated documentation files (the "Software"), to deal in the Software
-// without restriction, including without limitation the rights to use, copy, modify, merge,
-// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
-// to whom the Software is furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in all copies or
-// substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
-// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
-// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
-// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-// DEALINGS IN THE SOFTWARE.
-
-using System;
-using System.Collections.Generic;
-using Antlr.Runtime.Tree;
-using ICSharpCode.SharpDevelop.Dom;
-using Xebic.Parsers.ES3;
-
-namespace ICSharpCode.JavaScriptBinding
-{
- public class JavaScriptAstWalker
- {
- JavaScriptCompilationUnit compilationUnit;
- JavaScriptAst ast;
-
- public JavaScriptAstWalker(
- JavaScriptCompilationUnit compilationUnit,
- JavaScriptAst ast)
- {
- this.compilationUnit = compilationUnit;
- this.ast = ast;
- }
-
- public void Walk()
- {
- if (ast.IsValid) {
- Walk(ast.Tree);
- WalkRegions();
- }
- }
-
- void Walk(CommonTree tree)
- {
- if (tree.IsFunction()) {
- AddMethod(tree);
- }
-
- if (tree.HasChildren()) {
- WalkChildren(tree.Children);
- }
- }
-
- void AddMethod(CommonTree tree)
- {
- var functionDefinition = new JavaScriptFunctionDefinition(ast, tree);
- functionDefinition.AddMethod(compilationUnit.GlobalClass);
- }
-
- void WalkChildren(IEnumerable children)
- {
- foreach (CommonTree child in children) {
- Walk(child);
- }
- }
-
- void WalkRegions()
- {
- var regionWalker = new JavaScriptRegionWalker(ast, compilationUnit);
- regionWalker.Walk();
- }
- }
-}
diff --git a/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/JavaScriptCompilationUnit.cs b/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/JavaScriptCompilationUnit.cs
deleted file mode 100644
index 7ab90a60076..00000000000
--- a/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/JavaScriptCompilationUnit.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy of this
-// software and associated documentation files (the "Software"), to deal in the Software
-// without restriction, including without limitation the rights to use, copy, modify, merge,
-// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
-// to whom the Software is furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in all copies or
-// substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
-// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
-// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
-// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-// DEALINGS IN THE SOFTWARE.
-
-using System;
-using System.IO;
-using ICSharpCode.SharpDevelop.Dom;
-
-namespace ICSharpCode.JavaScriptBinding
-{
- public class JavaScriptCompilationUnit : DefaultCompilationUnit
- {
- public JavaScriptCompilationUnit(
- IProjectContent projectContent,
- string fileName)
- : base(projectContent)
- {
- this.FileName = fileName;
- AddGlobalClass();
- }
-
- void AddGlobalClass()
- {
- GlobalClass = CreateGlobalClass();
- AddClass(GlobalClass);
- }
-
- public JavaScriptGlobalClass GlobalClass { get; private set; }
-
- JavaScriptGlobalClass CreateGlobalClass()
- {
- string className = GetGlobalClassName();
- return new JavaScriptGlobalClass(this, className);
- }
-
- string GetGlobalClassName()
- {
- return Path.GetFileNameWithoutExtension(FileName);
- }
-
- void AddClass(IClass c)
- {
- Classes.Add(c);
- }
- }
-}
diff --git a/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/JavaScriptFunctionDefinition.cs b/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/JavaScriptFunctionDefinition.cs
deleted file mode 100644
index e9a25a7c955..00000000000
--- a/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/JavaScriptFunctionDefinition.cs
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy of this
-// software and associated documentation files (the "Software"), to deal in the Software
-// without restriction, including without limitation the rights to use, copy, modify, merge,
-// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
-// to whom the Software is furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in all copies or
-// substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
-// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
-// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
-// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-// DEALINGS IN THE SOFTWARE.
-
-using System;
-using Antlr.Runtime.Tree;
-using ICSharpCode.SharpDevelop.Dom;
-
-namespace ICSharpCode.JavaScriptBinding
-{
- public class JavaScriptFunctionDefinition
- {
- JavaScriptAst ast;
- CommonTree tree;
-
- public JavaScriptFunctionDefinition(JavaScriptAst ast, CommonTree tree)
- {
- this.ast = ast;
- this.tree = tree;
- }
-
- public void AddMethod(JavaScriptGlobalClass c)
- {
- string methodName = GetMethodName();
- DefaultMethod method = c.AddMethod(methodName);
- UpdateRegions(method);
- }
-
- string GetMethodName()
- {
- CommonTree child = tree.GetFirstChild();
- return child.Text;
- }
-
- void UpdateRegions(DefaultMethod method)
- {
- var methodRegion = new JavaScriptMethodRegion(ast, tree);
- method.Region = methodRegion.GetHeaderRegion();
- method.BodyRegion = methodRegion.GetBodyRegion();
- }
- }
-}
diff --git a/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/JavaScriptGlobalClass.cs b/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/JavaScriptGlobalClass.cs
deleted file mode 100644
index 043acfe50df..00000000000
--- a/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/JavaScriptGlobalClass.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy of this
-// software and associated documentation files (the "Software"), to deal in the Software
-// without restriction, including without limitation the rights to use, copy, modify, merge,
-// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
-// to whom the Software is furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in all copies or
-// substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
-// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
-// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
-// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-// DEALINGS IN THE SOFTWARE.
-
-using System;
-using ICSharpCode.SharpDevelop.Dom;
-
-namespace ICSharpCode.JavaScriptBinding
-{
- public class JavaScriptGlobalClass : DefaultClass
- {
- public JavaScriptGlobalClass(
- ICompilationUnit compilationUnit,
- string fullyQualifiedName)
- : base(compilationUnit, fullyQualifiedName)
- {
- }
-
- public DefaultMethod AddMethod(string name)
- {
- var method = new DefaultMethod(this, name);
- AddMethod(method);
- return method;
- }
-
- public void AddMethod(IMethod method)
- {
- Methods.Add(method);
- }
- }
-}
diff --git a/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/JavaScriptMethodRegion.cs b/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/JavaScriptMethodRegion.cs
deleted file mode 100644
index b64707ff47c..00000000000
--- a/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/JavaScriptMethodRegion.cs
+++ /dev/null
@@ -1,92 +0,0 @@
-// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy of this
-// software and associated documentation files (the "Software"), to deal in the Software
-// without restriction, including without limitation the rights to use, copy, modify, merge,
-// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
-// to whom the Software is furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in all copies or
-// substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
-// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
-// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
-// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-// DEALINGS IN THE SOFTWARE.
-
-using System;
-using Antlr.Runtime;
-using Antlr.Runtime.Tree;
-using ICSharpCode.SharpDevelop.Dom;
-using Xebic.Parsers.ES3;
-
-namespace ICSharpCode.JavaScriptBinding
-{
- public class JavaScriptMethodRegion
- {
- JavaScriptAst ast;
- CommonTree methodDefinition;
- IToken functionDefinitionEndToken;
-
- public JavaScriptMethodRegion(JavaScriptAst ast, CommonTree methodDefinition)
- {
- this.ast = ast;
- this.methodDefinition = methodDefinition;
- }
-
- public DomRegion GetHeaderRegion()
- {
- int beginLine = methodDefinition.Line;
- int endLine = beginLine; //TODO - function header definition can go across lines.
- int beginColumn = GetMethodHeaderBeginColumn();
- int endColumn = GetMethodHeaderEndColumn();
- return new DomRegion(beginLine, beginColumn, endLine, endColumn);
- }
-
- int GetMethodHeaderBeginColumn()
- {
- return methodDefinition.BeginColumn();
- }
-
- int GetMethodHeaderEndColumn()
- {
- CommonTree arguments = methodDefinition.GetFirstChildArguments();
- if (arguments != null) {
- IToken token = ast.GetToken(arguments.TokenStopIndex);
- return token.EndColumn();
- }
- return 0;
- }
-
- public DomRegion GetBodyRegion()
- {
- int beginLine = methodDefinition.Line;
- int endLine = GetMethodBodyEndLine();
- int beginColumn = GetMethodHeaderEndColumn();
- int endColumn = GetMethodBodyEndColumn();
- return new DomRegion(beginLine, beginColumn, endLine, endColumn);
- }
-
- int GetMethodBodyEndLine()
- {
- IToken token = GetFunctionDefinitionEndToken();
- return token.Line;
- }
-
- IToken GetFunctionDefinitionEndToken()
- {
- if (functionDefinitionEndToken == null) {
- functionDefinitionEndToken = ast.GetToken(methodDefinition.TokenStopIndex);
- }
- return functionDefinitionEndToken;
- }
-
- int GetMethodBodyEndColumn()
- {
- IToken token = GetFunctionDefinitionEndToken();
- return token.EndColumn();
- }
- }
-}
diff --git a/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/JavaScriptParser.cs b/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/JavaScriptParser.cs
deleted file mode 100644
index 015a6530122..00000000000
--- a/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/JavaScriptParser.cs
+++ /dev/null
@@ -1,88 +0,0 @@
-// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy of this
-// software and associated documentation files (the "Software"), to deal in the Software
-// without restriction, including without limitation the rights to use, copy, modify, merge,
-// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
-// to whom the Software is furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in all copies or
-// substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
-// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
-// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
-// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-// DEALINGS IN THE SOFTWARE.
-
-using System;
-using System.IO;
-using ICSharpCode.Core;
-using ICSharpCode.SharpDevelop;
-using ICSharpCode.SharpDevelop.Dom;
-using ICSharpCode.SharpDevelop.Project;
-
-namespace ICSharpCode.JavaScriptBinding
-{
- public class JavaScriptParser : IParser
- {
- public JavaScriptParser()
- {
- LexerTags = new string[0];
- }
-
- public string[] LexerTags { get; set; }
-
- public LanguageProperties Language {
- get { return LanguageProperties.None; }
- }
-
- public IExpressionFinder CreateExpressionFinder(string fileName)
- {
- return null;
- }
-
- public bool CanParse(string fileName)
- {
- string extension = Path.GetExtension(fileName);
- if (extension != null) {
- return IsJavaScriptFileExtension(extension);
- }
- return false;
- }
-
- bool IsJavaScriptFileExtension(string extension)
- {
- return extension.Equals(".js", StringComparison.InvariantCultureIgnoreCase);
- }
-
- public bool CanParse(IProject project)
- {
- return true;
- }
-
- public ICompilationUnit Parse(IProjectContent projectContent, string fileName, ITextBuffer fileContent)
- {
- try {
- var astFactory = new JavaScriptAstFactory(fileContent);
- JavaScriptAst ast = astFactory.Create();
-
- var unit = new JavaScriptCompilationUnit(projectContent, fileName);
- var walker = new JavaScriptAstWalker(unit, ast);
- walker.Walk();
-
- return unit;
- } catch (Exception ex) {
- LoggingService.Debug(ex.ToString());
- }
-
- return new DefaultCompilationUnit(projectContent) { FileName = fileName };
- }
-
- public IResolver CreateResolver()
- {
- return null;
- }
- }
-}
diff --git a/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/JavaScriptRegion.cs b/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/JavaScriptRegion.cs
deleted file mode 100644
index d1f7627ef23..00000000000
--- a/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/JavaScriptRegion.cs
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy of this
-// software and associated documentation files (the "Software"), to deal in the Software
-// without restriction, including without limitation the rights to use, copy, modify, merge,
-// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
-// to whom the Software is furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in all copies or
-// substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
-// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
-// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
-// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-// DEALINGS IN THE SOFTWARE.
-
-using System;
-using System.Collections.Generic;
-using ICSharpCode.SharpDevelop.Dom;
-
-namespace ICSharpCode.JavaScriptBinding
-{
- public class JavaScriptRegion
- {
- JavaScriptRegionStart start;
- JavaScriptRegionEnd end;
-
- public JavaScriptRegion(JavaScriptRegionStart start, JavaScriptRegionEnd end)
- {
- this.start = start;
- this.end = end;
- }
-
- public void AddRegion(IList foldingRegions)
- {
- FoldingRegion namedFoldingRegion = CreateFoldingRegion();
- foldingRegions.Add(namedFoldingRegion);
- }
-
- FoldingRegion CreateFoldingRegion()
- {
- DomRegion location = GetRegionLocation();
- return new FoldingRegion(start.Name, location);
- }
-
- DomRegion GetRegionLocation()
- {
- int beginLine = start.Line;
- int endLine = end.Line;
- int beginColumn = start.StartColumn;
- int endColumn = end.EndColumn;
- return new DomRegion(beginLine, beginColumn, endLine, endColumn);
- }
- }
-}
diff --git a/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/JavaScriptRegionEnd.cs b/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/JavaScriptRegionEnd.cs
deleted file mode 100644
index 52d8deb94c0..00000000000
--- a/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/JavaScriptRegionEnd.cs
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy of this
-// software and associated documentation files (the "Software"), to deal in the Software
-// without restriction, including without limitation the rights to use, copy, modify, merge,
-// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
-// to whom the Software is furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in all copies or
-// substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
-// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
-// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
-// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-// DEALINGS IN THE SOFTWARE.
-
-using System;
-using Antlr.Runtime;
-
-namespace ICSharpCode.JavaScriptBinding
-{
- public class JavaScriptRegionEnd
- {
- public static readonly string RegionEndText = "//#endregion";
- public static readonly int RegionEndTextLength = RegionEndText.Length;
-
- IToken token;
-
- public JavaScriptRegionEnd(IToken token)
- {
- this.token = token;
- }
-
- public static bool IsRegionEnd(IToken token)
- {
- return token.Text.StartsWith(RegionEndText);
- }
-
- public int Line {
- get { return token.Line; }
- }
-
- public int EndColumn {
- get { return token.BeginColumn() + RegionEndTextLength; }
- }
- }
-}
diff --git a/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/JavaScriptRegionStart.cs b/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/JavaScriptRegionStart.cs
deleted file mode 100644
index 22dd7bf40e7..00000000000
--- a/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/JavaScriptRegionStart.cs
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy of this
-// software and associated documentation files (the "Software"), to deal in the Software
-// without restriction, including without limitation the rights to use, copy, modify, merge,
-// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
-// to whom the Software is furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in all copies or
-// substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
-// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
-// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
-// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-// DEALINGS IN THE SOFTWARE.
-
-using System;
-using Antlr.Runtime;
-
-namespace ICSharpCode.JavaScriptBinding
-{
- public class JavaScriptRegionStart
- {
- public static readonly string RegionStartText = "//#region ";
- public static readonly int RegionStartTextLength = RegionStartText.Length;
-
- IToken token;
- string name;
-
- public JavaScriptRegionStart(IToken token)
- {
- this.token = token;
- }
-
- public string Name {
- get {
- if (name == null) {
- GetName();
- }
- return name;
- }
- }
-
- void GetName()
- {
- string text = token.Text;
- int index = text.IndexOf(RegionStartText);
- name = text.Substring(index + RegionStartTextLength);
- }
-
- public static bool IsRegionStart(IToken token)
- {
- return token.Text.StartsWith(RegionStartText);
- }
-
- public int Line {
- get { return token.Line; }
- }
-
- public int StartColumn {
- get { return token.BeginColumn(); }
- }
- }
-}
diff --git a/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/JavaScriptRegionWalker.cs b/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/JavaScriptRegionWalker.cs
deleted file mode 100644
index 5888a56d17a..00000000000
--- a/src/AddIns/BackendBindings/JavaScriptBinding/Project/Src/JavaScriptRegionWalker.cs
+++ /dev/null
@@ -1,79 +0,0 @@
-// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy of this
-// software and associated documentation files (the "Software"), to deal in the Software
-// without restriction, including without limitation the rights to use, copy, modify, merge,
-// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
-// to whom the Software is furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in all copies or
-// substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
-// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
-// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
-// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-// DEALINGS IN THE SOFTWARE.
-
-using System;
-using System.Collections.Generic;
-using Antlr.Runtime;
-using Antlr.Runtime.Tree;
-using ICSharpCode.SharpDevelop.Dom;
-using Xebic.Parsers.ES3;
-
-namespace ICSharpCode.JavaScriptBinding
-{
- public class JavaScriptRegionWalker
- {
- JavaScriptAst ast;
- ICompilationUnit compilationUnit;
- Stack regions;
-
- public JavaScriptRegionWalker(
- JavaScriptAst ast,
- ICompilationUnit compilationUnit)
- {
- this.ast = ast;
- this.compilationUnit = compilationUnit;
- }
-
- public void Walk()
- {
- regions = new Stack();
-
- foreach (IToken token in ast.GetTokens()) {
- if (token.IsSingleLineComment()) {
- WalkComment(token);
- }
- }
- }
-
- void WalkComment(IToken token)
- {
- if (JavaScriptRegionStart.IsRegionStart(token)) {
- WalkRegionStart(token);
- } else if (JavaScriptRegionEnd.IsRegionEnd(token)) {
- WalkRegionEnd(token);
- }
- }
-
- void WalkRegionStart(IToken token)
- {
- var regionStart = new JavaScriptRegionStart(token);
- regions.Push(regionStart);
- }
-
- void WalkRegionEnd(IToken token)
- {
- if (regions.Count > 0) {
- JavaScriptRegionStart regionStart = regions.Pop();
-
- var regionEnd = new JavaScriptRegionEnd(token);
- var region = new JavaScriptRegion(regionStart, regionEnd);
- region.AddRegion(compilationUnit.FoldingRegions);
- }
- }
- }
-}
diff --git a/src/AddIns/BackendBindings/JavaScriptBinding/RequiredLibraries/Antlr3.Runtime.dll b/src/AddIns/BackendBindings/JavaScriptBinding/RequiredLibraries/Antlr3.Runtime.dll
deleted file mode 100644
index f96710c1fb3..00000000000
Binary files a/src/AddIns/BackendBindings/JavaScriptBinding/RequiredLibraries/Antlr3.Runtime.dll and /dev/null differ
diff --git a/src/AddIns/BackendBindings/JavaScriptBinding/RequiredLibraries/AntlrCSharp3-license.txt b/src/AddIns/BackendBindings/JavaScriptBinding/RequiredLibraries/AntlrCSharp3-license.txt
deleted file mode 100644
index bec48bc7180..00000000000
--- a/src/AddIns/BackendBindings/JavaScriptBinding/RequiredLibraries/AntlrCSharp3-license.txt
+++ /dev/null
@@ -1,29 +0,0 @@
-[The "BSD licence"]
-Copyright (c) 2005-2008 Terence Parr
-All rights reserved.
-
-Conversion to C#:
-Copyright (c) 2008-2009 Sam Harwell, Pixel Mine, Inc.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
-1. Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-2. Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
-3. The name of the author may not be used to endorse or promote products
- derived from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
-IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
-OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
-NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
-THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\ No newline at end of file
diff --git a/src/AddIns/BackendBindings/JavaScriptBinding/RequiredLibraries/AntlrCSharp3Runtime-readme.txt b/src/AddIns/BackendBindings/JavaScriptBinding/RequiredLibraries/AntlrCSharp3Runtime-readme.txt
deleted file mode 100644
index 78d98536c34..00000000000
--- a/src/AddIns/BackendBindings/JavaScriptBinding/RequiredLibraries/AntlrCSharp3Runtime-readme.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-C# 3 Runtime for Antlr
- Antlr3.Runtime.dll
- http://www.tunnelvisionlabs.com/downloads/antlr/antlr-dotnet-tool-3.3.1.7705.7z
diff --git a/src/AddIns/BackendBindings/JavaScriptBinding/RequiredLibraries/ES3Grammar-license.txt b/src/AddIns/BackendBindings/JavaScriptBinding/RequiredLibraries/ES3Grammar-license.txt
deleted file mode 100644
index 4a3a5c17846..00000000000
--- a/src/AddIns/BackendBindings/JavaScriptBinding/RequiredLibraries/ES3Grammar-license.txt
+++ /dev/null
@@ -1,30 +0,0 @@
-Software License Agreement (BSD License)
-
-Copyright (c) 2008-2009, Xebic Research B.V.
-All rights reserved.
-
-Redistribution and use of this software in source and binary forms, with or without modification, are
-permitted provided that the following conditions are met:
-
-* Redistributions of source code must retain the above
- copyright notice, this list of conditions and the
- following disclaimer.
-
-* Redistributions in binary form must reproduce the above
- copyright notice, this list of conditions and the
- following disclaimer in the documentation and/or other
- materials provided with the distribution.
-
-* Neither the name of Xebic Research B.V. nor the names of its
- contributors may be used to endorse or promote products
- derived from this software without specific prior
- written permission of Xebic Research B.V.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
-WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
-PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
-TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\ No newline at end of file
diff --git a/src/AddIns/BackendBindings/JavaScriptBinding/RequiredLibraries/ES3Grammar-readme.txt b/src/AddIns/BackendBindings/JavaScriptBinding/RequiredLibraries/ES3Grammar-readme.txt
deleted file mode 100644
index fac9e594281..00000000000
--- a/src/AddIns/BackendBindings/JavaScriptBinding/RequiredLibraries/ES3Grammar-readme.txt
+++ /dev/null
@@ -1,28 +0,0 @@
-A complete ECMAScript 3 grammar for ANTLR 3
-
-http://research.xebic.com/es3/
-
-Licence: (BSD) - http://research.xebic.com/es3/license.txt
-
-Copyrights Xebic Research B.V. All rights reserved.
-Original work by Patrick Hulsmeijer.
-Please use the antlr-interest mailing list for questions.
-
-
-Download:
-Combined lexer and parser for AST creation ES3.g3
-Treeparser template to walk the AST generated by ES3.g3 ES3Walker.g3
-License license.txt
-C# Version C#
-All files ES3.zip
-
-
-
-History
-
- 2008-4-9: Initial release.
- 2008-4-11: Solely targeting Java for simplicity sake.
- 2008-4-15: Added license. Fixed two bugs: EOL in MultiLineComment should be treated as SEMIC, function bodies should accept functionDeclarations.
- 2009-4-16: Updated license statements.
- 2009-12-4: Added seperate C# version.
- 2010-2-25: Updated license.
diff --git a/src/AddIns/BackendBindings/JavaScriptBinding/Test/Configuration/AssemblyInfo.cs b/src/AddIns/BackendBindings/JavaScriptBinding/Test/Configuration/AssemblyInfo.cs
deleted file mode 100644
index 44787b28cb1..00000000000
--- a/src/AddIns/BackendBindings/JavaScriptBinding/Test/Configuration/AssemblyInfo.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy of this
-// software and associated documentation files (the "Software"), to deal in the Software
-// without restriction, including without limitation the rights to use, copy, modify, merge,
-// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
-// to whom the Software is furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in all copies or
-// substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
-// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
-// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
-// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-// DEALINGS IN THE SOFTWARE.
-
-using System.Reflection;
-
-// Information about this assembly is defined by the following
-// attributes.
-//
-// change them to the information which is associated with the assembly
-// you compile.
-
-[assembly: AssemblyTitle("JavaScriptBinding.Tests")]
-[assembly: AssemblyDescription("JavaScript Language Binding Unit Tests")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
diff --git a/src/AddIns/BackendBindings/JavaScriptBinding/Test/JavaScriptBinding.Tests.csproj b/src/AddIns/BackendBindings/JavaScriptBinding/Test/JavaScriptBinding.Tests.csproj
deleted file mode 100644
index d575b758349..00000000000
--- a/src/AddIns/BackendBindings/JavaScriptBinding/Test/JavaScriptBinding.Tests.csproj
+++ /dev/null
@@ -1,66 +0,0 @@
-
-
-