Commit graph

179 commits

Author SHA1 Message Date
Shunsuke Shibayama
a79f0652ab Update version (v0.5.1) 2022-09-23 00:23:38 +09:00
Shunsuke Shibayama
9c967d32f6 Fix #174 2022-09-22 21:52:06 +09:00
Shunsuke Shibayama
b56236a3b5 Update version (v0.5.0) 2022-09-22 14:54:25 +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
Shunsuke Shibayama
6f3f00a369 Fixed to register <builtins> to mod_cache 2022-09-22 10:37:39 +09:00
Shunsuke Shibayama
8c50c6b423 Fix some visibility bugs 2022-09-21 21:28:37 +09:00
Shunsuke Shibayama
9b0d66a63a Add "check" mode
Input::File(String) -> Input::file(PathBuf)
2022-09-21 14:01:20 +09:00
GreasySlug
baf7b3eb38 Test: check to see if quotations are tokenized 2022-09-21 13:49:04 +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
201b313cd2 Add builder & linker 2022-09-21 01:21:17 +09:00
Shunsuke Shibayama
671fbee518 merge from trait 2022-09-21 01:17:11 +09:00
GreasySlug
8daed047a8 Test: add tokenize test for multi-line strings 2022-09-20 16:06:09 +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
Shunsuke Shibayama
d8799f0895 Refactor
Add `ASTBuilder`, `Checker`
2022-09-20 14:42:37 +09:00
GreasySlug
e4e6dbf524 Test: check that multiple lines are displayed 2022-09-19 16:03:10 +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
4c65b6e729 Test: ensure that multi-line strings are invalid 2022-09-19 10:18:36 +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
54fa23caab Update version (v0.5.0-beta.0) 2022-09-19 00:59:50 +09:00
Shunsuke Shibayama
bd17bf3299 Add DefKind 2022-09-18 17:56:58 +09:00
Shunsuke Shibayama
da38e9ace2 Update comment.er 2022-09-17 23:34:14 +09:00
Shunsuke Shibayama
11633d2905 Fix: "\n" in multi-line comments advances the line 2022-09-17 23:33:36 +09:00
GreasySlug
abae84af56 Test: tested multi-line comments are recognized 2022-09-17 14:45:59 +09:00
GreasySlug
2b9d82e07e Add: implemented method for multi-line comment 2022-09-17 14:35:30 +09:00
Shunsuke Shibayama
aa527dcbc8 WIP: impl Trait 2022-09-17 01:42:49 +09:00
Shunsuke Shibayama
346d00fcd8 Impl UserConstSubr 2022-09-16 23:33:10 +09:00
GreasySlug
0bb9ef6a85 Test: additional testing of fixed issues
Double quotation char is missing, so added it
Added a test to see if the added escaping characters work
2022-09-16 20:55:57 +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
19428a417f Update version (v0.4.7) 2022-09-15 19:20:53 +09:00
Shunsuke Shibayama
042ea70ec6 Update tokenize_test.rs 2022-09-15 15:26:39 +09:00
Shunsuke Shibayama
1b37976701 Update test2_advanced_syntax.er 2022-09-15 15:21:01 +09:00
Shunsuke Shibayama
90149c0c9c Update parse_test.rs 2022-09-15 15:20:50 +09:00
Shunsuke Shibayama
c84418107f Update test1_basic_syntax.er 2022-09-15 15:09:12 +09:00
Shunsuke Shibayama
61105b9435 Update simple_if.er 2022-09-15 15:08:24 +09:00
GreasySlug
4304ae1325 Test: add not implemented test 2022-09-15 08:27:18 +09:00
Slug
02d43dd7af
Merge branch 'erg-lang:main' into fix/test 2022-09-15 08:25:12 +09:00
Shunsuke Shibayama
581d2c84aa Update version (v0.4.6) 2022-09-14 16:23:29 +09:00
Shunsuke Shibayama
988a9e2322 Add quiet-startup mode 2022-09-14 16:09:27 +09:00
Shunsuke Shibayama
e1be2d2b51 Merge branch 'main' of https://github.com/erg-lang/erg 2022-09-14 12:47:46 +09:00
Shunsuke Shibayama
651ffc8e7c Update version (v0.4.5) 2022-09-14 12:47:37 +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
aece619e69 Update version (v0.4.3) 2022-09-14 12:16:49 +09:00