Commit graph

18 commits

Author SHA1 Message Date
Tobias Hunger
11d46892e4
janitor: Remove some unnecessary lazy evaluation 2022-01-04 18:22:49 +01:00
Tobias Hunger
bfca0e3573 Mass update copyright messages to be more REUSE compliant 2021-12-22 10:06:12 +01:00
Tobias Hunger
d3542c825f compilerlib: Report failure on unterminated escape sequence
Co-authored-by: Olivier Goffart <olivier@woboq.com>
2021-11-19 13:03:40 +01:00
Tobias Hunger
a488a79d8e compilerlib: Report failure on unterminated escape sequence
Co-authored-by: Olivier Goffart <olivier@woboq.com>
2021-11-19 13:03:40 +01:00
Tobias Hunger
46f291edff Update sixtyfps_compiler/lexer.rs
Be more clever about finding the next start of character.

Co-authored-by: Olivier Goffart <olivier@woboq.com>
2021-11-19 13:03:40 +01:00
Tobias Hunger
bd1d820862 compilerlib: Fix panic when parsing "\ޱ 2021-11-19 13:03:40 +01:00
Tobias Hunger
5f2f82fd57 compilerlib: Fix panic when parsing "\ 2021-11-19 13:03:40 +01:00
Tobias Hunger
36c7aa85f8 compilerlib: Fix panic when parsing /** 2021-11-19 13:03:40 +01:00
Tobias Hunger
61af35afe1 Janitor: Fix clippy::needless_update
This leaves some of these issues in, which may be triggered depending on
selected features. `#[allow(needless_update)]` is used to silence those.
2021-08-05 23:41:56 +02:00
Olivier Goffart
13bd828b96 Update license date 2021-07-02 15:55:54 +02:00
Olivier Goffart
4ce4dcb06b Don't panic when a string literal contains a new line 2021-04-06 13:16:38 +02:00
Olivier Goffart
882bd7ddb7 Lex template string 2021-01-18 14:43:54 +01:00
Olivier Goffart
ba6ff5736c String Escaping 2021-01-18 13:36:23 +01:00
Olivier Goffart
7f78bea8b5 Fix a bunch of cargo clippy warnings in the compiler 2020-12-07 12:54:38 +01:00
Olivier Goffart
560a3d8a01 Actually make the comment lexer behave the same on windows and linux
By not including the \r in the comment.

Also fix the lexer if the file is terminated by a // comment without a line end at the end
2020-11-04 19:38:13 +01:00
Olivier Goffart
76b7f1aef6 Allow dashes in identifier
Currenly, dashes are normalized to '_'.
Dashes are not allowed at the begining of an identifier.
If an identifier with a dash is not found, we also look for identifier
without a dash and if that exist, we hint the user to use spaces.

Issue #52
2020-10-22 18:32:25 +02:00
Olivier Goffart
baad6f62bc Fix comments that nest next to eachother 2020-08-28 14:06:27 +02:00
Olivier Goffart
10e8d7ffb9 Replace the regexp-based lexer with a custom lexer
The regexp crate is huge and takes more than a third of the size of the
wasm-interpreter.
2020-08-28 13:34:43 +02:00