From 136a024dbe3eed2e8acacddd7944c16aad9be878 Mon Sep 17 00:00:00 2001 From: "W. Cho" Date: Fri, 22 Dec 2023 16:16:21 +0900 Subject: [PATCH] introduce how to install using cdn --- README.md | 39 +++++++++++++++++++-------------------- docs/README_KR.md | 38 ++++++++++++++++++++------------------ 2 files changed, 39 insertions(+), 38 deletions(-) diff --git a/README.md b/README.md index 2c542d9..ac4213a 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,24 @@ Try _KAL_ at [KAL Playground][playground]. +## πŸ—‘οΈ Installation + +Load the interpreter script in HTML as follows: + +```HTML + +``` + +After that, you can execute _KAL_ code with `kal.execute(code-to-execute)` as follows: + +```HTML + +``` + + + ## πŸ—‘οΈ Examples ### Statements and expressions @@ -91,9 +109,8 @@ _Boolean type_: `μ°Έ`, `거짓` ``` -## πŸ—‘οΈ Manual building and installation -### How to build +## πŸ—‘οΈ Building Note that building process is based on [Node.js][node]. @@ -103,21 +120,3 @@ The output will be in the directory `/bundle/index.js`. [pnpm]: https://pnpm.io/ [node]: https://nodejs.org/ - - - -### How to use in browsers - -Put the bundled file `index.js` (see above) in your directory, and load the file in HTML as following: - -```HTML - -``` - -After that, you can execute _KAL_ code with `kal.execute(code-to-execute)` as follows: - -```HTML - -``` diff --git a/docs/README_KR.md b/docs/README_KR.md index 6c9f8aa..7231a0d 100644 --- a/docs/README_KR.md +++ b/docs/README_KR.md @@ -22,6 +22,24 @@ _KAL_ 을 [ν”Œλ ˆμ΄κ·ΈλΌμš΄λ“œ][playground]μ—μ„œ μ²΄ν—˜ν•΄λ³΄μ„Έμš”. +## λΈŒλΌμš°μ €μ—μ„œ μ‚¬μš©ν•˜κΈ° + +λ‹€μŒκ³Ό 같이 인터프리터 슀크립트λ₯Ό HTML μƒμ—μ„œ λ‘œλ“œν•©λ‹ˆλ‹€. + +```HTML + +``` + +이후, _KAL_ μ½”λ“œλŠ” λ‹€μŒκ³Ό 같이 `kal.execute(code-to-execute)`둜 μ‹€ν–‰ν•©λ‹ˆλ‹€. + +```HTML + +``` + + + ## πŸ—‘οΈ μ˜ˆμ‹œ ### 문법듀 @@ -91,6 +109,7 @@ _λΆˆλ¦¬μ–Έ νƒ€μž…_: `μ°Έ`, `거짓` ``` + ## πŸ—‘οΈ λΉŒλ“œμ™€ μ„€μΉ˜ ### λΉŒλ“œν•˜κΈ° @@ -104,25 +123,8 @@ pnpm install && pnpm build && pnpm bundle` ``` + κ²°κ³ΌλŠ” `/bundle/index.js` 디렉토리에 μœ„μΉ˜ν•©λ‹ˆλ‹€. [pnpm]: https://pnpm.io/ [node]: https://nodejs.org/ - - - -### λΈŒλΌμš°μ €μ—μ„œ μ‚¬μš©ν•˜κΈ° - -λΉŒλ“œν•œ 파일 `index.js`λ₯Ό μ›ν•˜λŠ” 디렉토리에 놓고, λ‹€μŒκ³Ό 같이 HTML μƒμ—μ„œ λ‘œλ“œν•©λ‹ˆλ‹€. - -```HTML - -``` - -이후, _KAL_ μ½”λ“œλŠ” λ‹€μŒκ³Ό 같이 `kal.execute(code-to-execute)`둜 μ‹€ν–‰ν•©λ‹ˆλ‹€. - -```HTML - -```