]> granicus.if.org Git - re2c/commitdiff
- Added custom build rules for Visual Studio 2005 (re2c.rules). (William Swanson)
authorhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Wed, 22 Aug 2007 11:43:21 +0000 (11:43 +0000)
committerhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Wed, 22 Aug 2007 11:43:21 +0000 (11:43 +0000)
re2c/re2c.rules [new file with mode: 0755]

diff --git a/re2c/re2c.rules b/re2c/re2c.rules
new file mode 100755 (executable)
index 0000000..45ade93
--- /dev/null
@@ -0,0 +1,152 @@
+<?xml version="1.0" encoding="utf-8"?>\r
+<VisualStudioToolFile\r
+       Name="re2c"\r
+       Version="8.00"\r
+       >\r
+       <Rules>\r
+               <CustomBuildRule\r
+                       Name="re2c"\r
+                       DisplayName="re2c"\r
+                       CommandLine="re2c.exe [AllOptions] [AdditionalOptions] [inputs]"\r
+                       Outputs="[$OutputFileName]"\r
+                       FileExtensions="*.re"\r
+                       ExecutionDescription="Compiling regular expressions..."\r
+                       >\r
+                       <Properties>\r
+                               <StringProperty\r
+                                       Name="OutputFileName"\r
+                                       DisplayName="Output File Name"\r
+                                       Description="Specifies the name of the output source file.     (-o[file])"\r
+                                       Switch="-o&quot;[value]&quot;"\r
+                                       DefaultValue="$(InputDir)$(InputName).cpp"\r
+                               />\r
+                               <EnumProperty\r
+                                       Name="Version"\r
+                                       DisplayName="Show Version Information"\r
+                                       Description="Displays version information at compile-time.     (-v -V)"\r
+                                       >\r
+                                       <Values>\r
+                                               <EnumValue\r
+                                                       Value="0"\r
+                                                       DisplayName="Default"\r
+                                               />\r
+                                               <EnumValue\r
+                                                       Value="1"\r
+                                                       Switch="-v"\r
+                                                       DisplayName="Show Version (-v)"\r
+                                               />\r
+                                               <EnumValue\r
+                                                       Value="2"\r
+                                                       Switch="-V"\r
+                                                       DisplayName="Show Version as a Number (-V)"\r
+                                               />\r
+                                       </Values>\r
+                               </EnumProperty>\r
+                               <BooleanProperty\r
+                                       Name="NoLineInfo"\r
+                                       DisplayName="Suppress Line Information"\r
+                                       Description="Suppress line-number debugging information in the output file.     (-i)"\r
+                                       Switch="-i"\r
+                               />\r
+                               <BooleanProperty\r
+                                       Name="NoGenerationDate"\r
+                                       DisplayName="Suppress Generation Date"\r
+                                       Description="Suppress generation-date information in the output file.     (--no-generation-date)"\r
+                                       Switch="--no-generation-date"\r
+                               />\r
+                               <EnumProperty\r
+                                       Name="CharacterSet"\r
+                                       DisplayName="Scanner Character Set"\r
+                                       PropertyPageName="Code Generation"\r
+                                       Description="Specifies the generated scanner&apos;s character set.     (-e, -w, -u)"\r
+                                       >\r
+                                       <Values>\r
+                                               <EnumValue\r
+                                                       Value="0"\r
+                                                       DisplayName="Default"\r
+                                               />\r
+                                               <EnumValue\r
+                                                       Value="1"\r
+                                                       Switch="-e"\r
+                                                       DisplayName="EBCDIC (-e)"\r
+                                               />\r
+                                               <EnumValue\r
+                                                       Value="2"\r
+                                                       Switch="-w"\r
+                                                       DisplayName="UCS-16 (-w)"\r
+                                               />\r
+                                               <EnumValue\r
+                                                       Value="3"\r
+                                                       Switch="-u"\r
+                                                       DisplayName="UTF-32 (-u)"\r
+                                               />\r
+                                       </Values>\r
+                               </EnumProperty>\r
+                               <EnumProperty\r
+                                       Name="Optimization"\r
+                                       DisplayName="Optimization Level"\r
+                                       PropertyPageName="Code Generation"\r
+                                       Description="Specifies the optimizations used in the scanner.     (-s, -b, -g)"\r
+                                       DefaultValue="2"\r
+                                       >\r
+                                       <Values>\r
+                                               <EnumValue\r
+                                                       Value="0"\r
+                                                       DisplayName="None"\r
+                                               />\r
+                                               <EnumValue\r
+                                                       Value="1"\r
+                                                       Switch="-s"\r
+                                                       DisplayName="Use Nested If&apos;s (-s)"\r
+                                               />\r
+                                               <EnumValue\r
+                                                       Value="2"\r
+                                                       Switch="-b"\r
+                                                       DisplayName="Use Bit Vectors (-b)"\r
+                                               />\r
+                                               <EnumValue\r
+                                                       Value="3"\r
+                                                       Switch="-g"\r
+                                                       DisplayName="Use Computed Goto&apos;s (GCC Only) (-g)"\r
+                                               />\r
+                                       </Values>\r
+                               </EnumProperty>\r
+                               <BooleanProperty\r
+                                       Name="StorableState"\r
+                                       DisplayName="Enable Storable State"\r
+                                       PropertyPageName="Code Generation"\r
+                                       Description="Generates a scanner with support for storable state.     (-r)"\r
+                                       Switch="-r"\r
+                               />\r
+                               <BooleanProperty\r
+                                       Name="DebugOutput"\r
+                                       DisplayName="Enable Debugging Output"\r
+                                       PropertyPageName="Code Generation"\r
+                                       Description="Generates a scanner that outputs its current position and state. You must define a YYDEBUG(int state, char current) macro to recieve this information.     (-d)"\r
+                                       Switch="-d"\r
+                               />\r
+                               <BooleanProperty\r
+                                       Name="SinglePass"\r
+                                       DisplayName="Single Pass Code Generation"\r
+                                       PropertyPageName="Code Generation"\r
+                                       Description="Forces single pass code generation. This disables YYMAXFILL generation prior to last block and cannot be used with storable state.     (-1)"\r
+                                       Switch="-1"\r
+                               />\r
+                               <BooleanProperty\r
+                                       Name="Conditions"\r
+                                       DisplayName="Require Start Conditions"\r
+                                       PropertyPageName="Code Generation"\r
+                                       Description="Enables support for (f)lex-like conditions.     (-c)"\r
+                                       Switch="-c"\r
+                               />\r
+                               <StringProperty\r
+                                       Name="TypeHeader"\r
+                                       DisplayName="Condition Header File"\r
+                                       PropertyPageName="Code Generation"\r
+                                       Description="Generates a header file that contains types for the (f)lex-like condition support.     (-t[file])"\r
+                                       Switch="-t&quot;[value]&quot;"\r
+                               />\r
+                       </Properties>\r
+               </CustomBuildRule>\r
+       </Rules>\r
+</VisualStudioToolFile>\r