Repository navigation
refactor: turn demo repository into KingSejong learning examples - #1
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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, asyncprojects/: FizzBuzz, multiplication table, sieve of Eratosthenes, bubble sortmain.ksj,expected.outand aREADME.mdwith exercisesCI
Examplesworkflow builds kingsejongv0.6.0(must pass) andmain(allowed to fail, early warning) and runsscripts/check.sh; runs on push, PR, weekly and on demandscripts/check.shruns every example, diffs withexpected.outand fails on lint errors (warnings allowed)Dependencies
pozil/auto-assign-issuev1 (node16, unsupported runtime) -> v4.1.0 (node24), pinned by commit SHA; trigger changed topull_request_targetso PRs from forks can be assigned (no PR code is checked out)index.html,package.json(@primer/css17.0.1) and theproof-htmlworkflow (v1.1.0 on Ruby 2.7, and it checked 0 files)Test
KSJ=<kingsejong main build> scripts/check.sh: 20/20 passed locallyexpected.outdiffers