Skip to content

Conversation

@yusuf601
Copy link
Member

@yusuf601 yusuf601 commented Sep 3, 2025

feat: Judul Perubahan

feat: add error message

Deskripsi (Description)

Perubahan yang diberikan

  1. **Memperbaiki Implementasi parses **
  • menambahkan method is_bracket
  • jika true maka parses char tersebut
  1. Menambahkan error message jika bracket tidak valid
  • menambahkan struct untuk menyimpan error
struct validation_result{
    bool is_valid;
    char found;
    char expected;
    int index_error;
};
  • menambakan error message like this
Input: ([)]
Error: expected ']' but found ')', at index 3

Checklist

Umum:
  • [x ] Saya menambah algoritma terbaru.
  • [ x] Saya menambah dokumentasi.
Contributor Requirements (Syarat Kontributor) dan Lain-Lain:
  • [ x] Saya telah menambahkan komentar kode yang memberikan penjelasan maksud dari kode yang saya buat.
  • [ x] Saya menggunakan bahasa Indonesia untuk memberikan penjelasan dari kode yang saya buat.

Environment

Saya menggunakan (I'm using):

  • OS = Linux
  • g++ = 15.2.1

Link Issues

Issues: #


License

This Commit License
https://github.com/Build-X-From-Scratch/Stack_Scratch/blob/main/LICENSE

@yusuf601
Copy link
Member Author

yusuf601 commented Sep 3, 2025

@aaaskyyyy Hi can you review this pr
#17

@yusuf601 yusuf601 merged commit 9bc9bb8 into Build-X-From-Scratch:main Sep 3, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant