Skip to content

refactor: turn demo repository into KingSejong learning examples - #1

Merged
0xmhha merged 3 commits into
mainfrom
refactor/kingsejong-examples
Nov 3, 2026
Merged

0xmhha merged 3 commits into
mainfrom
refactor/kingsejong-examples

Conversation

@0xmhha

@0xmhha 0xmhha commented Nov 3, 2026

Copy link
Copy Markdown
Member

Summary

Replaces the GitHub onboarding template with KingSejong learning examples, ordered like a traditional language tutorial.

  • lessons/01..16: hello world, variables, operators, strings, conditionals, loops, functions, arrays, dictionaries, josa expressions, higher-order functions and closures, recursion, classes, exceptions, modules, async
  • projects/: FizzBuzz, multiplication table, sieve of Eratosthenes, bubble sort
  • Each example has main.ksj, expected.out and a README.md with exercises

CI

  • New Examples workflow builds kingsejong v0.6.0 (must pass) and main (allowed to fail, early warning) and runs scripts/check.sh; runs on push, PR, weekly and on demand
  • scripts/check.sh runs every example, diffs with expected.out and fails on lint errors (warnings allowed)

Dependencies

  • pozil/auto-assign-issue v1 (node16, unsupported runtime) -> v4.1.0 (node24), pinned by commit SHA; trigger changed to pull_request_target so PRs from forks can be assigned (no PR code is checked out)
  • Removed index.html, package.json (@primer/css 17.0.1) and the proof-html workflow (v1.1.0 on Ruby 2.7, and it checked 0 files)
  • Added Dependabot for GitHub Actions

Test

  • KSJ=<kingsejong main build> scripts/check.sh: 20/20 passed locally
  • Verified the script fails when expected.out differs

Replace the GitHub onboarding template with step-by-step KingSejong
examples in the traditional lesson order (hello world, variables,
control flow, functions, data structures, then language features).

- Add 16 lessons and 4 practice programs, each with main.ksj,
  expected.out and a README with exercises
- Add scripts/check.sh to run every example, diff against expected.out
  and fail on lint errors
- Add an Examples workflow that builds kingsejong v0.6.0 (required) and
  main (allowed to fail) and runs the check, weekly as well
- Update pozil/auto-assign-issue from v1 (node16) to v4.1.0 pinned by
  commit, and use pull_request_target so fork PRs can be assigned
- Remove index.html, package.json (@primer/css) and the proof-html
  workflow, which checked no files
- Add MIT LICENSE, .ksjlint.json and Dependabot for GitHub Actions
Counting down with 이상 is not in kingsejong v0.6.0, so the lesson
printed nothing for it on the latest release.
@0xmhha
0xmhha merged commit 8650888 into main Nov 3, 2026
2 checks passed
@0xmhha
0xmhha deleted the refactor/kingsejong-examples branch November 3, 2026 03:07
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