summaryrefslogtreecommitdiffstats
path: root/Source/LexerParser/cmExprLexer.in.l
Commit message (Collapse)AuthorAgeFilesLines
* Fix most clang -Wextra-semi-stmt warnings in C++ filesSean McBride2019-01-151-1/+1
| | | | Suppress one in code generated by flex.
* Source/LexerParser: Suppress "Use of zero-allocated memory" warningKyle Edwards2019-01-141-0/+6
| | | | | | | clang scan-build warns about YY_CURRENT_BUFFER_LVALUE being zero- allocated, but the whole point of the macro is to know that it's not zero. Wrap the entire file in an "#ifndef __clang_analyzer__" block in order to suppress the warning.
* math: Restore toleration of unexpected characters in an expressionBrad King2018-07-161-1/+1
| | | | | | | | Prior to commit 7c4c13ffef (math: Reject unexpected expression input explicitly, 2018-05-18) we ignored unexpected characters in an expression that otherwise can be parsed. In order to preserve compatibility with projects that accidentally used this, convert the error to a warning.
* math: Add options to calculate and format output as hexadecimalDaniel Franke2018-07-031-0/+1
|
* math: Reject unexpected expression input explicitlyDaniel Franke2018-06-261-1/+5
| | | | | Switch to C++ exceptions for lexer/parser error handling. Teach the lexer/parser to fail on unexpected input.
* cmExprLexer: regenerate with flex 2.6.4 (previously 2.6.1)Matthias Maennich2017-08-281-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | flex 2.6.3 introduces symbol remapping through macro definitions. hence the change appears bigger than one would expect from a minor version upgrade. In addition some manual cleanup that had to be done previously is now obsolete. namely: - the size_t cast of _yybytes_len in yy_scan_bytes (i is now also defined int and not size_t anymore) - the redefinition of yyl within yy_find_action (yyl is now already defined as int) Line number preprocessor directives (#line) were previously generated into the c source file. This actually breaks debugging as debuggers have a hard time finding the original cmExprLexer.in.l and mapping the current instruction to a meaningful location within that file. The prefix "cmExpr_yy" can already be set as %option directly. For convenience also provide a sed command for all the manual steps that need to be done after generating. Signed-off-by: Matthias Maennich <matthias@maennich.net>
* LexerParser: move to custom directoryDaniel Pfeifer2017-04-281-0/+57