Advertisement
Guest User

Untitled

a guest
Apr 14th, 2011
366
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 9.06 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. * FlexBison.rules
  4. *
  5. *       Copyright 2006(c) Microsoft Corporation. All rights reserved.
  6. *
  7. -->
  8. <VisualStudioToolFile
  9.     Name="Flex and Bison Tools"
  10.     Version="8.00"
  11.     >
  12.     <Rules>
  13.         <CustomBuildRule
  14.             Name="FlexGenerator"
  15.             DisplayName="Flex Generator"
  16.             CommandLine="flex.exe [AllOptions] [AdditionalOptions] [Inputs]"
  17.             Outputs="$(InputName).lex.c"
  18.             FileExtensions="*.l"
  19.             ExecutionDescription="Generating lexical analyser..."
  20.             >
  21.             <Properties>
  22.                 <BooleanProperty
  23.                     Name="BackingUpInfo"
  24.                     DisplayName="Generate backing-up information"
  25.                     Category="Debug information"
  26.                     Description="Generates the file &apos;lex.backup&apos; that contains a list of scanner states which require backing up and the input characters on which they do so."
  27.                     Switch="-b"
  28.                 />
  29.                 <BooleanProperty
  30.                     Name="DebuggerOn"
  31.                     DisplayName="Run in debug mode"
  32.                     Category="Debug information"
  33.                     Description="Turn on debug mode in generated scanner"
  34.                     Switch="-d"
  35.                 />
  36.                 <BooleanProperty
  37.                     Name="GenFast"
  38.                     DisplayName="Generate fast large scanner"
  39.                     PropertyPageName="Performance"
  40.                     Description="Generate fast, large scanner"
  41.                     Switch="-f"
  42.                 />
  43.                 <BooleanProperty
  44.                     Name="CaseInsensitive"
  45.                     DisplayName="Case insensitive scanner"
  46.                     Description="The case of letters given in the flex input patterns will be ignored, and tokens in the input will be matched regardless of case"
  47.                     Switch="-i"
  48.                 />
  49.                 <BooleanProperty
  50.                     Name="CompatibilityOn"
  51.                     DisplayName="Maximum compatibility with lex"
  52.                     Description="Turns on maximum compatibility with the original AT&amp;T lex implementation. Note that this does not mean full compatibility."
  53.                     Switch="-l"
  54.                 />
  55.                 <BooleanProperty
  56.                     Name="PerformanceReport"
  57.                     DisplayName="Generate performance report"
  58.                     PropertyPageName="Performance"
  59.                     Description="Generates a performance report to stderr. The report consists of comments regarding features of the flex input file which will cause a serious loss of performance in the resulting scanner."
  60.                     Switch="-p"
  61.                 />
  62.                 <BooleanProperty
  63.                     Name="SuppressDefault"
  64.                     DisplayName="Suppress the default rule"
  65.                     Description="Causes the default rule (that unmatched scanner input is echoed to stdout) to be suppressed. If the scanner encounters input that does not match any of its rules, it aborts with an error."
  66.                     Switch="-s"
  67.                 />
  68.                 <BooleanProperty
  69.                     Name="SuppressWarnings"
  70.                     DisplayName="Suppress warning messages"
  71.                     Description="Suppress warning messages."
  72.                     Switch="-w"
  73.                 />
  74.                 <BooleanProperty
  75.                     Name="BatchScanner"
  76.                     DisplayName="Generate Batch Scanner"
  77.                     PropertyPageName="Performance"
  78.                     Description="Instructs flex to generate a batch scanner. In general, you use &apos;-B&apos; when you are certain that your scanner will never be used interactively, and you want to squeeze a little more performance out of it."
  79.                     Switch="-B"
  80.                 />
  81.                 <BooleanProperty
  82.                     Name="FastScanner"
  83.                     DisplayName="Use fast scanner table representation"
  84.                     PropertyPageName="Performance"
  85.                     Description="Specifies that the fast scanner table representation should be used (and stdio bypassed). This representation is about as fast as the full table representation &apos;(-f)&apos;, and for some sets of patterns will be considerably smaller (and for others, larger)."
  86.                     Switch="-F"
  87.                 />
  88.                 <BooleanProperty
  89.                     Name="InteractiveScanner"
  90.                     DisplayName="Generate an interactive scanner"
  91.                     PropertyPageName="Performance"
  92.                     Description="Instructs flex to generate an interactive scanner. An interactive scanner is one that only looks ahead to decide what token has been matched if it absolutely must."
  93.                     Switch="-I"
  94.                 />
  95.                 <BooleanProperty
  96.                     Name="NoGenLineDirectives"
  97.                     DisplayName="Don&apos;t generate #line directives"
  98.                     Category="Debug information"
  99.                     Description="Instructs flex not to generate &apos;#line&apos; directives. Without this option, flex peppers the generated scanner with #line directives so error messages in the actions will be correctly located with respect to either the original flex input file."
  100.                     Switch="-L"
  101.                 />
  102.                 <BooleanProperty
  103.                     Name="TraceMode"
  104.                     DisplayName="Trace mode"
  105.                     Category="Debug information"
  106.                     Description="Makes flex run in trace mode. It will generate a lot of messages to stderr concerning the form of the input and the resultant non-deterministic and deterministic finite automata."
  107.                     Switch="-T"
  108.                 />
  109.                 <StringProperty
  110.                     Name="OutputFile"
  111.                     DisplayName="Output File"
  112.                     Description="The output file containing the implementation of the analyser"
  113.                     Switch="-o[value]"
  114.                     DefaultValue="$(InputName).lex.c"
  115.                 />
  116.                 <StringProperty
  117.                     Name="ScannerPrefix"
  118.                     DisplayName="Scanner Prefix"
  119.                     Description="Specify scanner prefix other than yy"
  120.                     Switch="-P[value]"
  121.                     DefaultValue="$(InputName)"
  122.                 />
  123.                 <EnumProperty
  124.                     Name="TableCompression"
  125.                     DisplayName="Table Compression"
  126.                     PropertyPageName="Performance"
  127.                     Description="Controls the degree of table compression and, more generally, trade-offs between small scanners and fast scanners."
  128.                     >
  129.                     <Values>
  130.                         <EnumValue
  131.                             Value="0"
  132.                             Switch="-Cem"
  133.                             DisplayName="Equivalence classes and meta-equivalence classes (slowest &amp; smallest)"
  134.                         />
  135.                         <EnumValue
  136.                             Value="1"
  137.                             Switch="-Cm"
  138.                             DisplayName="Meta-equivalence classes"
  139.                         />
  140.                         <EnumValue
  141.                             Value="2"
  142.                             Switch="-Ce"
  143.                             DisplayName="Equivalence classes"
  144.                         />
  145.                         <EnumValue
  146.                             Value="3"
  147.                             Switch="-C"
  148.                             DisplayName="Compress scanner tables"
  149.                         />
  150.                         <EnumValue
  151.                             Value="4"
  152.                             Switch="-Cfe"
  153.                             DisplayName="Full scanner tables and equivalence classes"
  154.                         />
  155.                         <EnumValue
  156.                             Value="5"
  157.                             Switch="-CFe"
  158.                             DisplayName="Alternate fast scanner representation and equivalence classes"
  159.                         />
  160.                         <EnumValue
  161.                             Value="6"
  162.                             Switch="-Cf"
  163.                             DisplayName="Full scanner tables"
  164.                         />
  165.                         <EnumValue
  166.                             Value="7"
  167.                             Switch="-CF"
  168.                             DisplayName="Alternate fast scanner representation"
  169.                         />
  170.                         <EnumValue
  171.                             Value="8"
  172.                             Switch="-Cfa"
  173.                             DisplayName="Align data in full scanner tables (fastest &amp; largest)"
  174.                         />
  175.                         <EnumValue
  176.                             Value="9"
  177.                             Switch="-CFa"
  178.                             DisplayName="Align data in the alternate fast scanner representation (fastest &amp; largest)"
  179.                         />
  180.                     </Values>
  181.                 </EnumProperty>
  182.                 <StringProperty
  183.                     Name="SkeletonFile"
  184.                     DisplayName="Use custom skeleton"
  185.                     Description="Overrides the default skeleton file from which flex constructs its scanners"
  186.                     Switch="-S[value]"
  187.                 />
  188.             </Properties>
  189.         </CustomBuildRule>
  190.         <CustomBuildRule
  191.             Name="BisonParser"
  192.             DisplayName="Bison Parser"
  193.             CommandLine="bison.exe [AllOptions] [AdditionalOptions] [Inputs]"
  194.             Outputs="$(InputName).tab.c"
  195.             FileExtensions="*.y"
  196.             ExecutionDescription="Generating parser based on grammar..."
  197.             >
  198.             <Properties>
  199.                 <StringProperty
  200.                     Name="FilePrefix"
  201.                     DisplayName="File Prefix"
  202.                     Description="Specify a prefix to use for all Bison output file names"
  203.                     Switch="-b [value]"
  204.                     DefaultValue="$(InputName)"
  205.                 />
  206.                 <BooleanProperty
  207.                     Name="Defines"
  208.                     DisplayName="Use defines"
  209.                     Description="Write an extra output file containing macro definitions for the token type names defined in the grammar and the semantic value type YYSTYPE, as well as a few extern variable declarations"
  210.                     Switch="-d"
  211.                 />
  212.                 <BooleanProperty
  213.                     Name="NoGenLineDirectives"
  214.                     DisplayName="Don&apos;t generate &apos;#line&apos; directives"
  215.                     Description="Don&apos;t put any #line preprocessor commands in the parser file. Ordinarily Bison puts them in the parser file so that the C compiler and debuggers will associate errors with your source file, the grammar file."
  216.                     Switch="-l"
  217.                 />
  218.                 <StringProperty
  219.                     Name="OutputFile"
  220.                     DisplayName="Output file name"
  221.                     Description="Specify the name outfile for the parser file"
  222.                     Switch="-o [value]"
  223.                 />
  224.                 <StringProperty
  225.                     Name="RenameExternalSymbols"
  226.                     DisplayName="Rename External Symbols"
  227.                     Description="Rename the external symbols used in the parser so that they start with prefix instead of `yy&apos;."
  228.                     Switch="-p [value]"
  229.                     DefaultValue="$(InputName)"
  230.                 />
  231.                 <BooleanProperty
  232.                     Name="DebuggerOn"
  233.                     DisplayName="Compile debugging facilities"
  234.                     Description="Output a definition of the macro YYDEBUG into the parser file, so that the debugging facilities are compiled"
  235.                     Switch="-t"
  236.                 />
  237.                 <BooleanProperty
  238.                     Name="Verbose"
  239.                     DisplayName="Output parser states"
  240.                     Description="Write an extra output file containing verbose descriptions of the parser states and what is done for each type of look-ahead token in that state"
  241.                     Switch="-v"
  242.                 />
  243.             </Properties>
  244.         </CustomBuildRule>
  245.     </Rules>
  246. </VisualStudioToolFile>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement