Shunsuke Shibayama
671c7b839c
Add compiler architecture documents
2022-12-08 21:16:43 +09:00
Shunsuke Shibayama
4e3b10df46
Fix indent lexing bugs
2022-12-08 17:51:58 +09:00
Shunsuke Shibayama
428a557313
Add a hint for an unnecessary spaces syntax error
2022-12-08 12:06:28 +09:00
Shunsuke Shibayama
11b9cf764b
Fix an indent lexing bug
2022-12-08 11:46:26 +09:00
Shunsuke Shibayama
592a77caab
Fix a str-interpolation bug
2022-12-06 23:09:12 +09:00
Shunsuke Shibayama
47132cfab1
Implement string interpolation
2022-12-05 21:24:10 +09:00
Shunsuke Shibayama
0cb883d22c
Update lex.rs
2022-11-30 01:27:10 +09:00
Shunsuke Shibayama
708d154f60
Fix #255
2022-11-30 01:18:47 +09:00
Shunsuke Shibayama
7bcc766500
Add Runnable::initialize
2022-11-23 19:43:56 +09:00
GreasySlug
ff24c62de1
Merge branch 'main' of https://github.com/GreasySlug/erg into split-err-msg
2022-11-20 10:41:10 +09:00
GreasySlug
bba66f7696
Change: move THEME
to ErrorCore
2022-11-17 23:25:47 +09:00
Shunsuke Shibayama
07c62de125
impl Default for Runnable structs
2022-11-17 22:05:04 +09:00
Yuna Tomida
e229196190
add stream operator
2022-11-15 22:54:57 +09:00
GreasySlug
a16d46423f
Update: use Span
and const Theme in style.rs
2022-11-12 18:03:10 +09:00
Shunsuke Shibayama
03a36f48a3
Add raw identifier
2022-10-20 18:53:35 +09:00
Shunsuke Shibayama
cc2b3c4b11
Delete prelude.er
(-> _prelude.er
)
2022-10-17 11:28:08 +09:00
Cai Bingjun
198117413f
trifle
2022-10-14 21:01:52 +08:00
Cai Bingjun
a8059cd4b1
Update lex.rs
2022-10-10 19:45:45 +08:00
GreasySlug
db3adec34d
Fix: crash with invalid decimal literal in expo
2022-10-10 10:54:57 +09:00
GreasySlug
e7c2d7bf27
Update: tokenize for <-
2022-10-09 11:50:41 +09:00
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