summaryrefslogtreecommitdiffstats
path: root/winbuild/Lex.rules
blob: 99f2f612e9306939b7747f67be485d801497fba4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?xml version="1.0" encoding="utf-8"?>
<VisualStudioToolFile
	Name="flex"
	Version="8.00"
	>
	<Rules>
		<CustomBuildRule
			Name="Lex"
			DisplayName="Lex"
			CommandLine="flex [AllOptions] [AdditionalOptions] [inputs]"
			Outputs="$(InputDir)/$(InputName).cpp"
			FileExtensions="*.l"
			ExecutionDescription="Executing Lex for $(InputDir)/$(InputName).cpp ..."
			ShowOnlyRuleProperties="false"
			>
			<Properties>
				<BooleanProperty
					Name="Rules"
					DisplayName="Write used lex rules"
					Description="write used lex rules"
					Switch="-d"
				/>
				<StringProperty
					Name="Prefix"
					DisplayName="Prefix"
					Description="specify scanner prefix other than &quot;yy&quot;"
					Switch="-P[value]"
					Delimited="true"
				/>
				<BooleanProperty
					Name="Stdout"
					DisplayName="Redirect to stdout"
					Description="write generated scanner on stdout instead of lex.yy.c"
					Switch="-t"
				/>
				<StringProperty
					Name="Output"
					DisplayName="Output file name"
					Description="Specify output filename"
					Switch="-o[value]"
					DefaultValue="$(InputDir)$(InputName).cpp"
				/>
			</Properties>
		</CustomBuildRule>
	</Rules>
</VisualStudioToolFile>