Commit graph

28 commits

Author SHA1 Message Date
GreasySlug
6619bbee8a Fix: Disabled line breaks in strings
The '\n' character can be used, but the line break itself
cannot be used within a string
2022-09-19 10:05:15 +09:00
Shunsuke Shibayama
11633d2905 Fix: "\n" in multi-line comments advances the line 2022-09-17 23:33:36 +09:00
GreasySlug
2b9d82e07e Add: implemented method for multi-line comment 2022-09-17 14:35:30 +09:00
GreasySlug
857742dd96 Fix: missing " is added 2022-09-16 20:46:53 +09:00
Shunsuke Shibayama
5b5ffb1fb6 Update lex.rs 2022-09-16 14:57:58 +09:00
GreasySlug
369b57d441 Fix: added skip with escape char
If the current character is an escape character,
skip it and look at the next character.
 If the next character is part of a control character,
 insert it into the String as a control character
2022-09-16 08:36:54 +09:00
GreasySlug
d6be5380aa Clean: extract unicode errors for strings 2022-09-16 08:36:54 +09:00
Shunsuke Shibayama
d2ad7caaab Update ErgConfig and Runnable 2022-09-16 02:21:04 +09:00
Shunsuke Shibayama
14df5ce94c Update Runnable API types
This change allows Erg to pass information in a thread-safe manner.
2022-09-14 12:45:04 +09:00
Shunsuke Shibayama
124240fe26 Merge branch 'main' into pr/136 2022-09-10 21:53:08 +09:00
Shunsuke Shibayama
1947f7518a Follow the latest changes and correct warnings 2022-09-10 21:33:13 +09:00
Yuna Tomida
d956c3f61d
Follow clippy warnings 2022-09-10 17:32:25 +09:00
GreasySlug
1ed302d496 Add exec() of LexerRunner 2022-09-10 09:05:29 +09:00
Shunsuke Shibayama
25094efd17 Refactor 2022-09-05 11:09:51 +09:00
Shunsuke Shibayama
f0d686cd7b Change ref and ref! to unary operators 2022-09-02 22:49:34 +09:00
Shunsuke Shibayama
0844fb2f7a Change Parser's parsing algorithm
The LHS value is first parsed as the RHS value, and when `=` or `->` comes in, it is converted as the LHS value.
2022-09-02 01:19:43 +09:00
Shunsuke Shibayama
8e73b9b6b7 Add TypeCmpCache 2022-08-26 14:37:39 +09:00
Shunsuke Shibayama
88ac00dcaa Implement unimplemented features related to visibility 2022-08-22 23:48:40 +09:00
Cai Bingjun
6f3fa64f90 Add error message translation for zh-CN and zh-TW 2022-08-19 11:02:41 +08:00
Shunsuke Shibayama
3314825fc1 Partial fix #57 2022-08-18 18:40:30 +09:00
Shunsuke Shibayama
842fe10353 Add language target: simplified/traditional chinese
Ready for multilingualization. See /doc/EN/dev_guide/i18n_messages.md.
2022-08-18 16:31:35 +09:00
Shunsuke Shibayama
974bfc0b86 Delete unnecessary deps 2022-08-17 22:52:17 +09:00
Shunsuke Shibayama
4e91cb81cb
Merge branch 'main' into clippy 2022-08-17 01:26:00 +09:00
Shunsuke Shibayama
c79fcd5dbe Update version (v0.2.4)
A crash problem with file input has been fixed.
2022-08-17 00:48:19 +09:00
Félix Saparelli
8efffbfbc0
Apply formatting 2022-08-15 17:44:15 +12:00
Félix Saparelli
7d3116f546
Apply trivial clippy fixes 2022-08-15 17:37:20 +12:00
Shunsuke Shibayama
6726d93f65 Do cargo fmt 2022-08-13 07:02:07 +09:00
Shunsuke Shibayama
f9d91aa38e Organize crates 2022-08-13 06:38:12 +09:00
Renamed from src/erg_compiler/erg_parser/lex.rs (Browse further)