Commit graph

38 commits

Author SHA1 Message Date
Shunsuke Shibayama
423206920a Add execution test 2022-10-01 01:11:31 +09:00
Shunsuke Shibayama
5c5ea55fa1
Merge pull request #173 from erg-lang/module
Add user-defined module
2022-09-22 13:28:44 +09:00
GreasySlug
77e5e0422f Fix: fixed a bug that caused quotation marks to be ignored 2022-09-21 13:42:05 +09:00
GreasySlug
f3ee492bf8 Refactor: extract methods for unclosed errors
If used when multiple lines are not closed with """,
it will cause the error.
2022-09-21 08:44:13 +09:00
Shunsuke Shibayama
671fbee518 merge from trait 2022-09-21 01:17:11 +09:00
GreasySlug
f1dd25e508 Update: add closure for error and, line and col
The length of the string is calculated as the rightmost
newline or 0, and that is the message of the error
2022-09-20 16:05:53 +09:00
GreasySlug
5c319abf74 Add: add case separation when a multi-line
string is received
2022-09-19 16:03:10 +09:00
GreasySlug
8b7c297bce Add: implement the method for multi-line string
Basically, this is using lex_str()'s.
This is used lex_multi_line_comment()'s when a
new line comes in to update the line number
2022-09-19 16:03:10 +09:00
Shunsuke Shibayama
a9d4e5982b Merge branch 'main' into beta 2022-09-19 10:45:09 +09:00
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
91b7ba3c05 Add TypeAppArgs 2022-09-16 15:27:19 +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)