Skip to content

Commit

Permalink
misc: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
redocmath committed Oct 19, 2023
1 parent 14d3dd5 commit 45bee27
Show file tree
Hide file tree
Showing 24 changed files with 2,247 additions and 2,353 deletions.
2 changes: 1 addition & 1 deletion .clang-format
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
BasedOnStyle: Google
ColumnLimit: 100
ColumnLimit: 400
---
Language: Cpp
DerivePointerAlignment: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/trunk-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
uses: actions/checkout@v3

- name: Trunk Check
uses: trunk-io/trunk-action@v1
uses: trunk-io/trunk-action@v1
53 changes: 27 additions & 26 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,51 +9,52 @@ name: CI - Ubuntu OS

on:
push:
branches: [ main, lab ]
branches: [main, lab]
pull_request:
branches: [ main, lab ]
branches: [main, lab]

permissions: read-all

jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: make
run: mkdir sample/lib; make CI-TEST-Wopslang;
- uses: actions/checkout@v2
- name: make
run: mkdir sample/lib; make CI-TEST-Wopslang;
Fizzbuzz:
needs: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: make
run: mkdir sample/lib; make CI-TEST-Wopslang; mv Wopslang sample/;
- name: run
run: cd sample; ./Wopslang fizzbuzz.wops debug > out;
- uses: actions/checkout@v2
- name: make
run: mkdir sample/lib; make CI-TEST-Wopslang; mv Wopslang sample/;
- name: run
run: cd sample; ./Wopslang fizzbuzz.wops debug > out;
Hailstone_Sequence:
needs: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: make
run: mkdir sample/lib; make CI-TEST-Wopslang; mv Wopslang sample/;
- name: run
run: cd sample; tree; ./Wopslang hailstone_sequence.wops debug > out;
- uses: actions/checkout@v2
- name: make
run: mkdir sample/lib; make CI-TEST-Wopslang; mv Wopslang sample/;
- name: run
run: cd sample; tree; ./Wopslang hailstone_sequence.wops debug > out;
Hello_Wopslang:
needs: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: make
run: mkdir sample/lib; make CI-TEST-Wopslang; mv Wopslang sample/;
- name: run
run: cd sample; tree; ./Wopslang hello_wopslang.wops debug > out;
- uses: actions/checkout@v2
- name: make
run: mkdir sample/lib; make CI-TEST-Wopslang; mv Wopslang sample/;
- name: run
run: cd sample; tree; ./Wopslang hello_wopslang.wops debug > out;
Multiline:
needs: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: make
run: mkdir sample/lib; make CI-TEST-Wopslang; mv Wopslang sample/;
- name: run
run: cd sample; echo "1" > input; tree; ./Wopslang multiline.wops debug < input > out;

- uses: actions/checkout@v2
- name: make
run: mkdir sample/lib; make CI-TEST-Wopslang; mv Wopslang sample/;
- name: run
run: cd sample; echo "1" > input; tree; ./Wopslang multiline.wops debug < input > out;
29 changes: 15 additions & 14 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<!--
CONTRIBUTING.md
Wopslang Contribute guide
2023, Wops Team
-->

# :page_with_curl: Contribute Guideline

## :wave: Welcome, new Wopers
## :wave: Welcome, new Wopers

First off, thank you for considering contributing to Wopslang. Wopslang could be existed because of many devoted Wopers like you.

Expand All @@ -30,13 +30,13 @@ If you already have a solution for it, please make a PR.
If you already have a solution for it, PR suits you.
Code style should satisfy these checklist.

- [ ] [Google C++ Coding Style Guide #General Naming Rules](https://google.github.io/styleguide/cppguide.html#General_Naming_Rules)
- [ ] K&R Indentation Style
- [ ] Use Boilerplate Code :
- [ ] [Google C++ Coding Style Guide #General Naming Rules](https://google.github.io/styleguide/cppguide.html#General_Naming_Rules)
- [ ] K&R Indentation Style
- [ ] Use Boilerplate Code :

```c++
/*
* <file path>
* <file path>
* <file description><Headerfile/Sourcefile>
*
* <year>, Wops Team
Expand All @@ -52,11 +52,12 @@ Code style should satisfy these checklist.
```

All commit messages should satisfy these checklist.

- [ ] Description Starts with Lowercase Character
- [ ] No Emoji
- [ ] Use Boilerplate Code :

```
```text
<file name/path>: <description>
```

Expand All @@ -69,21 +70,21 @@ Also, your PR can be rejected by these reasons:
Finally, your PR branch's name should be in one of these forms:

- `patch-[username]-[number]`
- *`dev-[username]-[number]`: only for inside Wopers*
- _`dev-[username]-[number]`: only for inside Wopers_
- `docs-[username]-[number]`

### :speech_balloon: Being the Wopslang Manager

Wopslang managers mediate the overheated community, review the issues and pull requests, and lead the development of Wopslang. Of course, this job requires not only deep knowledge of Wopslang, but also conversation skill. Also, Wopslang managers should be in Wops team; Wopslang managers should be inside Wopers.
Wopslang managers mediate the overheated community, review the issues and pull requests, and lead the development of Wopslang. Of course, this job requires not only deep knowledge of Wopslang, but also conversation skill. Also, Wopslang managers should be in Wops team; Wopslang managers should be inside Wopers.

We're not recruiting the Wopslang manager for now.

#### Wopslang manager list

|Github Username|Slack Username|
|---|---|
|@RedoC-github|@RedoC-github|
|@rdxxer|@codenstory|
|@pokmui|@pokmui|
| Github Username | Slack Username |
| --------------- | -------------- |
| @RedoC-github | @RedoC-github |
| @rdxxer | @codenstory |
| @pokmui | @pokmui |

2023, Wops Team
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ func<people WholeNewWorld> Wopslang = {contributors, {
```

### `#LanguageForAlgorithm` `#WorkingPseudo`

_**Wopslang**_ is for every computer scientist who needs a **pseudocode-like**, but **working** programming language.
_**Simple grammar**_ will highlight your logical ideas. _**Fast-runtime**_ will give you immediate feedback to forward.
_Be with our project, using ⭐_


## Infomation

Version: **Wopslang v0.1 alpha**
Expand Down Expand Up @@ -54,16 +54,16 @@ Check [howto.md](doc/howto.md) for more detail

See [sample folder](./sample) :sparkles:

## Credit
## Credit

|Github Username|Slack Username|Role|
|---|---|---|
|**@RedoC-github**|**@RedoC**|**Lead Programmer of Interpreter**|
|**@pokmui**|**@pokmui**|**Programmer of Interpreter, Admin of Slack**|
|@byunjaewoo|@byunjaewoo|Lead Programmer of Data Structure
|@happybean4|@khanjhy|Planner of Grammar|
|**@rdxxer**|**@codenstory**|**Programmer of Interpreter**|
|@dddddd1234-creator|@dddddd|Lead Programmer of Builtin Function|
| Github Username | Slack Username | Role |
| ------------------- | --------------- | --------------------------------------------- |
| **@RedoC-github** | **@RedoC** | **Lead Programmer of Interpreter** |
| **@pokmui** | **@pokmui** | **Programmer of Interpreter, Admin of Slack** |
| @byunjaewoo | @byunjaewoo | Lead Programmer of Data Structure |
| @happybean4 | @khanjhy | Planner of Grammar |
| **@rdxxer** | **@codenstory** | **Programmer of Interpreter** |
| @dddddd1234-creator | @dddddd | Lead Programmer of Builtin Function |

**Bold user** is the Wopslang manager.
Special Thanks to @jhhan128
Expand Down
33 changes: 16 additions & 17 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,20 @@ echo -e "✨ \033[1mWopslang v0.1 alpha Builder\033[m"
echo -e "\033[91mWarning: This is alpha version. Some critical issues might be appeared.\033[m"
echo -e -n "- make install..."
make clean
LOG=`make`
RESULT=`echo $?`
LOG=$(make)
RESULT=$(echo $?)

if [ $RESULT -ne 0 ]
then
echo -e "\033[91mError occured while building Wopslang.\033[m"
echo -e "\033[91m┌─────────────── How to Fix ───────────────┐\033[m"
echo -e "\033[91m│ │\033[m"
echo -e "\033[91m│ 1. Check the error message fix your │\033[m"
echo -e "\033[91m│ environment setting (or installation) │\033[m"
echo -e "\033[91m│ │\033[m"
echo -e "\033[91m│ 2. Ask help to the Wops Community │\033[m"
echo -e "\033[91m│ - github.com/Wopslang/Wops/discussions │\033[m"
echo -e "\033[91m│ │\033[m"
echo -e "\033[91m└──────────────────────────────────────────┘\033[m"
else
echo -e "\033[94mDone! Happy coding with Wopslang :)\033[m"
fi
if [[ ${RESULT} -ne 0 ]]; then
echo -e "\033[91mError occured while building Wopslang.\033[m"
echo -e "\033[91m┌─────────────── How to Fix ───────────────┐\033[m"
echo -e "\033[91m│ │\033[m"
echo -e "\033[91m│ 1. Check the error message fix your │\033[m"
echo -e "\033[91m│ environment setting (or installation) │\033[m"
echo -e "\033[91m│ │\033[m"
echo -e "\033[91m│ 2. Ask help to the Wops Community │\033[m"
echo -e "\033[91m│ - github.com/Wopslang/Wops/discussions │\033[m"
echo -e "\033[91m│ │\033[m"
echo -e "\033[91m└──────────────────────────────────────────┘\033[m"
else
echo -e "\033[94mDone! Happy coding with Wopslang :)\033[m"
fi
6 changes: 3 additions & 3 deletions doc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ func<Question Answer> Documentation = {question, {

## 📜 Language Reference

*[Official Reference for v0.1](grammar.md)*
_[Official Reference for v0.1](grammar.md)_

## ⚡️ Built-in Function

*[Wopslang Builtin Functions for v0.1](../lib/functions.md)*
_[Wopslang Builtin Functions for v0.1](../lib/functions.md)_

## 📓 Guidebook

*[How to install and launch Wopslang](howto.md)*
_[How to install and launch Wopslang](howto.md)_

2023, Wops Team
Loading

0 comments on commit 45bee27

Please sign in to comment.