1 <?xml version="1.0" encoding="utf-8"?> 2 <VisualStudioToolFile 3 Name="ANTLR3 Combo Lexer and Parser" 4 Version="8.00" 5 > 6 <Rules> 7 <CustomBuildRule 8 Name="Antlr3ParserLexer" 9 DisplayName="ANTLR 3 Parser/Lexer Grammar Translation" 10 CommandLine="[java] [JavaOptions] [ANTLR3Jar] org.antlr.Tool [LibDir] -[Absolute]o [OutputDirectory] -message-format vs2005 [DFA] [NFA] [Report] [Print] [Debug] [Profile] [AST] [TextDFA] [EBNFExits] [CollapseEdges] [DebugNFA] [MaxRules] [MaxDFAEdges] [DFATimeout] [inputs]" 11 Outputs="[OutputDirectory]\$(InputName)Parser.c;[OutputDirectory]\$(InputName)Parser.h;[OutputDirectory]\$(InputName)Lexer.c;[OutputDirectory]\$(InputName)Lexer.h" 12 FileExtensions="*.g3pl;*.g3;*.g" 13 ExecutionDescription="Translating to parser/lexer combination" 14 SupportsFileBatching="true" 15 ShowOnlyRuleProperties="false" 16 > 17 <Properties> 18 <StringProperty 19 Name="JavaOptions" 20 DisplayName="Java VM Options" 21 PropertyPageName="Java" 22 Description="Specify any options required to invoke the java VM on this grammar file. Sometimes larger grammars require more memory than the standard allocation and you can specify this here." 23 HelpURL="http://www.antlr.org/wiki/display/ANTLR3/Command+line+options" 24 Switch="[value]" 25 Delimited="true" 26 Inheritable="true" 27 /> 28 <BooleanProperty 29 Name="DFA" 30 DisplayName="Generate DFA dots" 31 PropertyPageName="DOT" 32 Category="DOT Ouputs" 33 Description="When set to True ANTLR3 will produce a number of .dot files that can be used with dot/graphviz to genreate pictorial representations of the DFAs gnerated for this grammar." 34 HelpURL="http://www.antlr.org/wiki/display/ANTLR3/Command+line+options" 35 Switch="-dfa" 36 /> 37 <BooleanProperty 38 Name="NFA" 39 DisplayName="Generate NFA DOTs" 40 Category="DOT Outputs" 41 Description="When set to True ANTLR3 will produce a number of .dot files that can be used with dot/graphviz to genreate pictorial representations of the NFAs generated for this grammar." 42 HelpURL="http://www.antlr.org/wiki/display/ANTLR3/Command+line+options" 43 Switch="-nfa" 44 /> 45 <BooleanProperty 46 Name="Report" 47 DisplayName="Generate Report" 48 PropertyPageName="Reporting" 49 Category="Reporting" 50 Description="If set to True then ANTLR3 will generate reports about the grammar file(s) it processes." 51 HelpURL="http://www.antlr.org/wiki/display/ANTLR3/Command+line+options" 52 Switch="-report" 53 /> 54 <BooleanProperty 55 Name="Print" 56 DisplayName="Print grammar" 57 PropertyPageName="Reporting" 58 Category="Reporting" 59 Description="If set to True ANTLR3 will print out the grammar without the associated actions" 60 HelpURL="http://www.antlr.org/wiki/display/ANTLR3/Command+line+options" 61 Switch="-print" 62 /> 63 <BooleanProperty 64 Name="Debug" 65 DisplayName="Debug mode" 66 PropertyPageName="Code Generation" 67 Category="Output" 68 Description="If set to True ANTLR3 will generate code that fires debugging events. [JI - Not yet implemented]" 69 HelpURL="http://www.antlr.org/wiki/display/ANTLR3/Command+line+options" 70 Switch="-debug" 71 /> 72 <BooleanProperty 73 Name="Profile" 74 DisplayName="Generate profile" 75 Category="Output" 76 Description="If set to True ANTLR3 will generate code that computes profiling information [JI - not yet implemented]" 77 HelpURL="http://www.antlr.org/wiki/display/ANTLR3/Command+line+options" 78 Switch="-profile" 79 /> 80 <BooleanProperty 81 Name="AST" 82 DisplayName="Show AST" 83 PropertyPageName="Extended" 84 Category="Extended" 85 Description="If True ANTLR3 will print out the grammar AST" 86 HelpURL="http://www.antlr.org/wiki/display/ANTLR3/Command+line+options" 87 Switch="-Xgrtree" 88 /> 89 <StringProperty 90 Name="LibDir" 91 DisplayName="Token directory" 92 PropertyPageName="Code Generation" 93 Category="General" 94 Description="In which directory can ANTLR3 locate grammar token files if not in the same directory as the grammar file." 95 HelpURL="http://www.antlr.org/wiki/display/ANTLR3/Command+line+options" 96 Switch="-lib [value]" 97 DefaultValue="$(InputDir)" 98 /> 99 <BooleanProperty 100 Name="TextDFA" 101 DisplayName="Text DFA" 102 PropertyPageName="Extended" 103 Category="Extended" 104 Description="If True ANTLR3 will generate a text version of the DFAsfor this grammar." 105 HelpURL="http://www.antlr.org/wiki/display/ANTLR3/Command+line+options" 106 Switch="-Xdfa" 107 /> 108 <BooleanProperty 109 Name="EBNFExits" 110 DisplayName="EBNF Exits" 111 PropertyPageName="Extended" 112 Category="Extended" 113 Description="If True ANTLR3 will not test EBNF exit branches." 114 HelpURL="http://www.antlr.org/wiki/display/ANTLR3/Command+line+options" 115 Switch="-Xnoprune" 116 /> 117 <StringProperty 118 Name="OutputDirectory" 119 DisplayName="Output Directory" 120 PropertyPageName="Code Generation" 121 Description="Which directory the generated output files be sent to if not the same directory as the grammar file." 122 HelpURL="http://www.antlr.org/wiki/display/ANTLR3/Command+line+options" 123 Switch="[value]" 124 DefaultValue="$(InputDir)" 125 /> 126 <BooleanProperty 127 Name="CollapseEdges" 128 DisplayName="Collapse Edges" 129 PropertyPageName="Extended" 130 Category="Extended" 131 Description="Collapse incident edges into DFA states" 132 HelpURL="http://www.antlr.org/wiki/display/ANTLR3/Command+line+options" 133 Switch="-Xnocollapse" 134 /> 135 <BooleanProperty 136 Name="DebugNFA" 137 DisplayName="Debug NFA" 138 Category="Reporting" 139 Description="If True, ANTLR3 will dump lots of information to the screen during NFA conversion." 140 HelpURL="http://www.antlr.org/wiki/display/ANTLR3/Command+line+options" 141 Switch="-Xdbgconversion " 142 /> 143 <StringProperty 144 Name="ANTLR3Jar" 145 DisplayName="ANTLR3 Jar" 146 PropertyPageName="Java" 147 Category="JavaVM" 148 Description="Specifies the absolute location of the ANTLR3 jar file if it is not in a location covered by %CLASSPATH%. Specify using UNIX directory delimiters to minimize problems." 149 HelpURL="http://www.antlr.org/wiki/display/ANTLR3/Command+line+options" 150 Switch="-jar "[value]"" 151 /> 152 <StringProperty 153 Name="Java" 154 DisplayName="Java command" 155 Description="Specifies the command that invokes the java VM. Usually java, but could be something else such as jikes" 156 HelpURL="http://www.antlr.org/wiki/display/ANTLR3/Command+line+options" 157 Switch="[value]" 158 DefaultValue="java" 159 /> 160 <IntegerProperty 161 Name="MaxRules" 162 DisplayName="Max rule call" 163 PropertyPageName="Extended" 164 Category="Analysis" 165 Description="Maximum number of rule invocations during conversion" 166 HelpURL="http://www.antlr.org/wiki/display/ANTLR3/Command+line+options" 167 Switch="-Xm [value]" 168 DefaultValue="4" 169 /> 170 <IntegerProperty 171 Name="MaxDFAEdges" 172 DisplayName="Max DFA Edges" 173 PropertyPageName="Extended" 174 Category="Extended" 175 Description="Maximum "comfortable" number of edges for single DFA state" 176 HelpURL="http://www.antlr.org/wiki/display/ANTLR3/Command+line+options" 177 Switch="-Xmaxdfaedges [value]" 178 DefaultValue="65534" 179 /> 180 <IntegerProperty 181 Name="DFATimeout" 182 DisplayName="DFA Timeout" 183 PropertyPageName="Extended" 184 Category="Extended" 185 Description="DFA conversion timeout period for each decision." 186 HelpURL="http://www.antlr.org/wiki/display/ANTLR3/Command+line+options" 187 Switch="-Xconversiontimeout [value]" 188 DefaultValue="1000" 189 /> 190 <BooleanProperty 191 Name="Absolute" 192 DisplayName="Absolute Directories" 193 PropertyPageName="Code Generation" 194 Description="If true, causes ANTLR to assume output directory is always the absolute output path and not to use relative paths as per the intput spec. For visual studio, this should usually be set to true." 195 Switch="f" 196 DefaultValue="true" 197 /> 198 </Properties> 199 </CustomBuildRule> 200 </Rules> 201 </VisualStudioToolFile> 202