Lex.rules 978 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
<?xml version="1.0" encoding="utf-8"?>
<VisualStudioToolFile
	Name="flex"
	Version="8.00"
	>
	<Rules>
		<CustomBuildRule
			Name="Lex"
			DisplayName="Lex"
10
			CommandLine="flex [AllOptions] -t -P$(InputName)YY [AdditionalOptions] [inputs] | python $(ProjectDir)..\src\increasebuffer.py &gt; $(InputDir)$(InputName).cpp"
11 12
			Outputs="$(InputDir)/$(InputName).cpp"
			FileExtensions="*.l"
13 14
			AdditionalDependencies="$(ProjectDir)..\src\increasebuffer.py"
			ExecutionDescription="Executing Lex for $(InputPath) ..."
15 16 17
			ShowOnlyRuleProperties="false"
			>
			<Properties>
18 19 20 21 22 23 24
				<BooleanProperty
					Name="Case"
					DisplayName="Case insensitive"
					Description="case insensitive"
					Switch="-i"
                                        IsReadOnly="true"
				/>
25 26 27
				<BooleanProperty
					Name="Rules"
					DisplayName="Write used lex rules"
28
					Description="Write used lex rules"
29 30
					Switch="-d"
				/>
31 32 33 34
			</Properties>
		</CustomBuildRule>
	</Rules>
</VisualStudioToolFile>