aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/token.cxx
AgeCommit message (Collapse)AuthorFilesLines
2022-12-15Improve escape sequence supportBoris Kolpackov1-6/+15
Specifically: 1. In the double-quoted strings we now only do effective escaping of the special `$("\` characters plus `)` for symmetry. 2. There is now support for "escape sequence expansion" in the form $\X where \X can be any of the C/C++ simple escape sequences (\n, \t, etc) plus \0 (which in C/C++ is an octal escape sequence). For example: info "foo$\n$\tbar$\n$\tbaz" Will print: buildfile:1:1: info: foo bar baz
2020-07-13Reserve backtick (`) and bit-or (|) in eval context for future useBoris Kolpackov1-0/+3
Specifically, they are reserved for future support of arithmetic evaluation contexts and evaluation pipelines, respectively.
2020-05-27Initial support for ad hoc recipes (still work in progress)Boris Kolpackov1-39/+70
2020-03-20Lexer support for default value assignment (?=)Boris Kolpackov1-0/+1
Note: not yet supported in the parser.
2020-02-07Drop copyright notice from source codeKaren Arutyunov1-1/+0
2019-07-01Split build system into library and driverBoris Kolpackov1-0/+60