Commit graph

1308 commits

Author SHA1 Message Date
Shunsuke Shibayama
29bf88e4b9 Update instantiate.rs 2022-09-21 21:43:01 +09:00
Shunsuke Shibayama
8c50c6b423 Fix some visibility bugs 2022-09-21 21:28:37 +09:00
Shunsuke Shibayama
4d315be48c
Merge pull request #171 from GreasySlug/feature/multi-line-strings
Implemtent the multi-line string method
2022-09-21 21:17:38 +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
9417d7c5d3 Fix: remove comment and add a case of same line 2022-09-21 13:40:47 +09:00
Shunsuke Shibayama
c1d92bc0f4 Fix lower bugs 2022-09-21 11:22:18 +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
GreasySlug
13ed754b64 Update: can use multi-line string in REPL 2022-09-21 08:39:32 +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
Shunsuke Shibayama
b167ff3bac
Merge pull request #166 from GreasySlug/fix/ja_doc
Translate En to Ja and Update a few hash values
2022-09-20 21:40:37 +09:00
Shunsuke Shibayama
35b5d72a4c
Update 00_basic.md 2022-09-20 21:39:51 +09:00
GreasySlug
b30d1adf63 Doc: checked again the style of writing
and the parts not translated into Ja
2022-09-20 21:22:02 +09:00
Slug
c611803225
Merge branch 'erg-lang:main' into fix/ja_doc 2022-09-20 21:19:21 +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
Slug
beb10ef166
Merge branch 'erg-lang:main' into feature/multi-line-strings 2022-09-20 16:03:57 +09:00
Shunsuke Shibayama
d8799f0895 Refactor
Add `ASTBuilder`, `Checker`
2022-09-20 14:42:37 +09:00
Shunsuke Shibayama
f12c2ba723 Add SharedModuleCache
Rename: RcCell -> Shared
2022-09-20 11:51:18 +09:00
Shunsuke Shibayama
97dcb9ec68 Update hash values 2022-09-20 10:34:01 +09:00
Shunsuke Shibayama
9fa51809ea Rename: Linker -> Reorderer 2022-09-19 19:07:02 +09:00
Shunsuke Shibayama
8d19820c21 Update compile.rs 2022-09-19 18:37:20 +09:00
Shunsuke Shibayama
bd8397df4d Update docs 2022-09-19 16:31:31 +09:00
Shunsuke Shibayama
31ccb6924c Update 00_basic.md 2022-09-19 16:16:42 +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
f29f44f9c9 Update 24_module.md 2022-09-19 12:30:25 +09:00
Shunsuke Shibayama
e0d69147f6 Update special.md 2022-09-19 11:12:09 +09:00
Shunsuke Shibayama
9024b4c8a7 Update scripts 2022-09-19 11:06:35 +09:00
Shunsuke Shibayama
e001b17ad4 Update hash values 2022-09-19 11:06:25 +09:00
Shunsuke Shibayama
157f51ae0e Update docs 2022-09-19 11:03:30 +09:00
Shunsuke Shibayama
a9d4e5982b Merge branch 'main' into beta 2022-09-19 10:45:09 +09:00
Shunsuke Shibayama
d62fe97593
Merge pull request #169 from GreasySlug/feature/multi-line-strings
Added error on line braek in string
2022-09-19 10:44:50 +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
d62e86d238 Update mod.rs 2022-09-19 00:55:54 +09:00
Shunsuke Shibayama
eb5986f8c9 Fix codegen.rs 2022-09-19 00:55:45 +09:00
Shunsuke Shibayama
67e4607c70 Impl trait code generating 2022-09-19 00:34:39 +09:00
Shunsuke Shibayama
45df0849fb Rename types
`Function` -> `Func`
`Procedure` -> `Proc`
2022-09-18 17:57:47 +09:00
Shunsuke Shibayama
bd17bf3299 Add DefKind 2022-09-18 17:56:58 +09:00
GreasySlug
fd7dddb9ab Doc: fix the writing style
Some additional modifications
- Fix typing errors to English instead of Japanese
- Update hash value
- Additional translation
- コメント内のですます調をだ、である調に変更した
- "可能"と"できる"が混ざっていたためこれらを"できる"に統一した
2022-09-18 16:49:02 +09:00
GreasySlug
b8f91bd905 Doc: fix typo and mistranslated 2022-09-18 14:35:26 +09:00
GreasySlug
d9bcf8032a Doc: translate En to Ja in other than "syntax" 2022-09-18 13:14:17 +09:00
GreasySlug
1739124d3d Doc: update hash value and translate En to Ja
in syntax
2022-09-18 13:12:56 +09:00
Shunsuke Shibayama
1a3f204879 Update codegen.rs 2022-09-18 11:13:06 +09:00
Shunsuke Shibayama
64497663cd Update trait.er 2022-09-18 00:45:34 +09:00