Differences From Artifact [f9b4714fa6]:
- File
bs/lex/lexer.cpp
— part of check-in
[bd4456308c]
at
2019-08-18 20:54:03
on branch trunk
—
- Added a function to adjust the compile time execution budget.
- lexer: Implemented escape sequences in string literals.
To Artifact [541c5193fd]:
- File
bs/lex/lexer.cpp
— part of check-in
[baf9721752]
at
2019-08-19 13:43:31
on branch trunk
—
- Fixed many issues with compile time versus run time function invocations.
- Improved some error messages.
| ︙ | |||
141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 | 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 | + + + |
auto ls = getCurrentLocationStart();
if( line != m_lineNum )
return TermLoc( Delimiter::Newline, ls.toLoc() );
if( !m_input.good() )
{
m_lookAheadCache.clear();
return nullopt;
}
auto c = m_input.peek();
if( isdigit( c ) )
return readIntegerLiteral( ls );
if( isalpha( c ) || c == '_' || c == '#' )
|
| ︙ |