diff options
Diffstat (limited to 'winbuild/Lex.rules')
-rw-r--r-- | winbuild/Lex.rules | 34 |
1 files changed, 11 insertions, 23 deletions
diff --git a/winbuild/Lex.rules b/winbuild/Lex.rules index 99f2f61..298c978 100644 --- a/winbuild/Lex.rules +++ b/winbuild/Lex.rules @@ -7,39 +7,27 @@ <CustomBuildRule Name="Lex" DisplayName="Lex" - CommandLine="flex [AllOptions] [AdditionalOptions] [inputs]" + CommandLine="flex [AllOptions] -t -P$(InputName)YY [AdditionalOptions] [inputs] | python $(ProjectDir)..\src\increasebuffer.py > $(InputDir)$(InputName).cpp" Outputs="$(InputDir)/$(InputName).cpp" FileExtensions="*.l" - ExecutionDescription="Executing Lex for $(InputDir)/$(InputName).cpp ..." + AdditionalDependencies="$(ProjectDir)..\src\increasebuffer.py" + ExecutionDescription="Executing Lex for $(InputPath) ..." ShowOnlyRuleProperties="false" > <Properties> <BooleanProperty + Name="Case" + DisplayName="Case insensitive" + Description="case insensitive" + Switch="-i" + IsReadOnly="true" + /> + <BooleanProperty Name="Rules" DisplayName="Write used lex rules" - Description="write used lex rules" + Description="Write used lex rules" Switch="-d" /> - <StringProperty - Name="Prefix" - DisplayName="Prefix" - Description="specify scanner prefix other than "yy"" - 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> |