Skip to content
This repository was archived by the owner on Nov 9, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: C/C++ CI

on:
push:
branches: [ "development" ]
branches: [ "development", "master" ]
pull_request:
branches: [ "development", "master" ]
workflow_dispatch:
Expand Down
14 changes: 7 additions & 7 deletions src/identifiers/output.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ void output(vector<string>::iterator it, ifstream &file) {
}
// If the next token is a string, print the string
else {
string result = string(_this.substr(1, strlen(_this.c_str()) - 2));
// Replace underscores with spaces
for (int i = 0; i <= result.size(); i++) {
if (result[i] == '_') {
cout << ' ';
continue;
string result = _this;
for (int index = 2; ; index++) {
if (result[result.length() - 1] == '"') {
cout << result.substr(1, result.length() - 2);
return;
}
cout << result[i];
string __this = *(it + index);
result += (" " + __this);
}
}
}
2 changes: 1 addition & 1 deletion src/init.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
using namespace std;
#pragma GCC std("c++11")
// Version of the program
const string _VERSION_ = "b1.15.00";
const string _VERSION_ = "v1.16.00";
// Buffer size
const int _BUFFER_SIZE_ = 1024;
// split function
Expand Down
4 changes: 2 additions & 2 deletions src/update.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ string execute(const char *command) {
// update function
void update() {
// get version number from https://junlang.imjcj.eu.org/VERSION
string result = execute("curl -s https://junlang.imjcj.eu.org/VERSION_DEVE");
result = result.substr(49);
string result = execute("curl -s https://junlang.imjcj.eu.org/VERSION");
result = result.substr(44);
// compare version number with _VERSION_
if (result != _VERSION_) {
cout << "Warning: Please update: \"https://junlang.imjcj.eu.org\"" << endl;
Expand Down
6 changes: 3 additions & 3 deletions tests/test1/test.jun
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
output "Hello_world!"
output "Hello_world!"
output "Hello world!"
output "Hello world!"
wrap
output "Hello_world!"
output "Hello world!"
set a 50
set a 50
output a
Expand Down