Skip to content
This repository was archived by the owner on Nov 9, 2025. It is now read-only.

Commit d4a5b3f

Browse files
Merge pull request #32 from Jun-Software/master
v1.16.00分支进度同步
2 parents 045892b + f3c40be commit d4a5b3f

5 files changed

Lines changed: 14 additions & 14 deletions

File tree

.github/workflows/c-cpp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: C/C++ CI
22

33
on:
44
push:
5-
branches: [ "development" ]
5+
branches: [ "development", "master" ]
66
pull_request:
77
branches: [ "development", "master" ]
88
workflow_dispatch:

src/identifiers/output.hpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ void output(vector<string>::iterator it, ifstream &file) {
1010
}
1111
// If the next token is a string, print the string
1212
else {
13-
string result = string(_this.substr(1, strlen(_this.c_str()) - 2));
14-
// Replace underscores with spaces
15-
for (int i = 0; i <= result.size(); i++) {
16-
if (result[i] == '_') {
17-
cout << ' ';
18-
continue;
13+
string result = _this;
14+
for (int index = 2; ; index++) {
15+
if (result[result.length() - 1] == '"') {
16+
cout << result.substr(1, result.length() - 2);
17+
return;
1918
}
20-
cout << result[i];
19+
string __this = *(it + index);
20+
result += (" " + __this);
2121
}
2222
}
2323
}

src/init.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
using namespace std;
1717
#pragma GCC std("c++11")
1818
// Version of the program
19-
const string _VERSION_ = "b1.15.00";
19+
const string _VERSION_ = "v1.16.00";
2020
// Buffer size
2121
const int _BUFFER_SIZE_ = 1024;
2222
// split function

src/update.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ string execute(const char *command) {
2727
// update function
2828
void update() {
2929
// get version number from https://junlang.imjcj.eu.org/VERSION
30-
string result = execute("curl -s https://junlang.imjcj.eu.org/VERSION_DEVE");
31-
result = result.substr(49);
30+
string result = execute("curl -s https://junlang.imjcj.eu.org/VERSION");
31+
result = result.substr(44);
3232
// compare version number with _VERSION_
3333
if (result != _VERSION_) {
3434
cout << "Warning: Please update: \"https://junlang.imjcj.eu.org\"" << endl;

tests/test1/test.jun

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
output "Hello_world!"
2-
output "Hello_world!"
1+
output "Hello world!"
2+
output "Hello world!"
33
wrap
4-
output "Hello_world!"
4+
output "Hello world!"
55
set a 50
66
set a 50
77
output a

0 commit comments

Comments
 (0)