Skip to content

Commit 1a42d58

Browse files
committed
chore: fix grammar and formatting
1 parent 85e4edf commit 1a42d58

11 files changed

Lines changed: 38 additions & 31 deletions

File tree

Installer.iss.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[Setup]
22
AppName=ArkScript
33
AppVersion=@ARK_VERSION_MAJOR@.@ARK_VERSION_MINOR@.@ARK_VERSION_PATCH@
4-
AppPublisher=Lex Plateau
4+
AppPublisher=Lexy Plateau
55
AppPublisherURL=https://arkscript-lang.dev
66
DefaultDirName={autopf}\ArkScript
77
DefaultGroupName=ArkScript

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,6 @@ Copyright (c) 2019-2026 Lexy Plateau. All rights reserved.
310310

311311
### Using ArkScript in your company
312312

313-
I (Lex Plateau) am working pretty much alone on this project, and I try to do my best to leave it as bug free and as performant as possible. However, this is a side project for which I'm currently **not paid** to work on, thus I can't fix every bug or address every feature request in a timely manner.
313+
I (Lexy Plateau) am working pretty much alone on this project, and I try to do my best to leave it as bug free and as performant as possible. However, this is a side project for which I'm currently **not paid** to work on, thus I can't fix every bug or address every feature request in a timely manner.
314314

315315
Please reach out either by email (lexplt.dev@gmail.com) or via a [discussion](https://github.com/orgs/ArkScript-lang/discussions) before using the language in a company project, so that we can set up a support contract. If you don't want to set up a contract, your issues and support requests won't be prioritized (and possibly left unanswered).

docs/arkdoc/Macros.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* =begin
66
* (macro a 5)
77
* ($undef a)
8-
* (print a) # will fail, as 'a' doesn't exist anymore
8+
* (print a) # will fail, as 'a' doesn't exist any more
99
* =end
1010
#--
1111

examples/calendar.ark

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,18 @@
77
(let startOfMonth (datetime:toUTCTimestamp (dict:update (datetime:asUTCDate today) (dict "day" 1))))
88
(let months ["January" "February" "March" "April" "May" "June" "July" "August" "September" "October" "November" "December"])
99
(let day (datetime:day today))
10-
(let suffix (switch day 1 "st" 2 "nd" 3 "rd" _ "th"))
10+
(let suffix (switch day
11+
1 "st"
12+
2 "nd"
13+
3 "rd"
14+
_ "th"))
1115

1216
(print (format "{} {}{}, {}\n" (@ months (- (datetime:month today) 1)) day suffix (datetime:year today)))
1317
(print "Mo Tu We Th Fr Sa Su")
1418
(list:map
1519
(list:chunkBy (concat (list:fill (datetime:dayOfWeek startOfMonth) "") (list:iota 1 (datetime:monthLength today))) 7)
16-
(fun (week) (print
20+
(fun (week)
21+
(print
1722
(format
1823
"{:n}"
1924
(list:map

examples/games/game_of_life.ark

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,15 @@
3535
indices
3636
(fun (i) {
3737
(let neighs (neigh board i))
38-
(switch neighs 2 (@= copy i (@ board i)) 3 (@= copy i alive) _ (@= copy i dead)) }))
38+
(switch neighs
39+
2 (@= copy i (@ board i))
40+
3 (@= copy i alive)
41+
_ (@= copy i dead)) }))
3942

4043
copy }))
4144

42-
(let display (fun (board width height) (print
45+
(let display (fun (board width height)
46+
(print
4347
(string:join
4448
(list:map
4549
(list:chunkBy

examples/games/snake/snake.ark

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -169,26 +169,24 @@
169169
(snake.reset_auto_move)
170170
(mut event (sf:pollEvent))
171171

172-
(switch
173-
event
172+
(switch event [
173+
[(sf:event "quit") (fun () (sf:window:close))]
174174
[
175-
[(sf:event "quit") (fun () (sf:window:close))]
176-
[
177-
(sf:event "keyup" "up")
178-
(fun ()
179-
(snake.move 0 -1 board))]
180-
[
181-
(sf:event "keyup" "down")
182-
(fun ()
183-
(snake.move 0 1 board))]
184-
[
185-
(sf:event "keyup" "right")
186-
(fun ()
187-
(snake.move 1 0 board))]
188-
[
189-
(sf:event "keyup" "left")
190-
(fun ()
191-
(snake.move -1 0 board))]])
175+
(sf:event "keyup" "up")
176+
(fun ()
177+
(snake.move 0 -1 board))]
178+
[
179+
(sf:event "keyup" "down")
180+
(fun ()
181+
(snake.move 0 1 board))]
182+
[
183+
(sf:event "keyup" "right")
184+
(fun ()
185+
(snake.move 1 0 board))]
186+
[
187+
(sf:event "keyup" "left")
188+
(fun ()
189+
(snake.move -1 0 board))]])
192190

193191
# update
194192
(if (= 0 (board.has_apple_left?))

include/Ark/Compiler/Macros/Executor.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @file Executor.hpp
3-
* @author Ray John Alovera (rakista112@gmail.com), Lex Plateau (lexplt.dev@gmail.com)
3+
* @author Ray John Alovera (rakista112@gmail.com), Lexy Plateau (lexplt.dev@gmail.com)
44
* @brief The base class for all MacroExecutors
55
* @date 2024-03-03
66
*

include/Ark/Compiler/Macros/Executors/Conditional.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @file Conditional.hpp
3-
* @author Ray John Alovera (rakista112@gmail.com), Lex Plateau (lexplt.dev@gmail.com)
3+
* @author Ray John Alovera (rakista112@gmail.com), Lexy Plateau (lexplt.dev@gmail.com)
44
* @brief Executor for Conditional Macros
55
* @date 2021-05-04
66
*

include/Ark/Compiler/Macros/Executors/Function.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @file Function.hpp
3-
* @author Ray John Alovera (rakista112@gmail.com), Lex Plateau (lexplt.dev@gmail.com)
3+
* @author Ray John Alovera (rakista112@gmail.com), Lexy Plateau (lexplt.dev@gmail.com)
44
* @brief Executor for List Macros
55
* @date 2021-05-04
66
*

include/Ark/Compiler/Macros/Executors/Symbol.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @file Symbol.hpp
3-
* @author Ray John Alovera (rakista112@gmail.com), Lex Plateau (lexplt.dev@gmail.com)
3+
* @author Ray John Alovera (rakista112@gmail.com), Lexy Plateau (lexplt.dev@gmail.com)
44
* @brief Executor for Symbol Macros
55
* @date 2021-05-04
66
*

0 commit comments

Comments
 (0)