Skip to content

Commit

Permalink
Generated Sample Programs website automatically
Browse files Browse the repository at this point in the history
on-behalf-of: @TheRenegadeCoder <jeremy.grifski@therenegadecoder.com>
  • Loading branch information
actions-user committed Dec 24, 2024
1 parent 75fa42f commit 9b885b4
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ layout: default
title: Sample Programs in Every Language
---

Welcome to Sample Programs in Every Language, a collection of code snippets in as many languages as possible. Thanks for taking an interest in our collection which currently contains 1161 articles written by 260 authors.
Welcome to Sample Programs in Every Language, a collection of code snippets in as many languages as possible. Thanks for taking an interest in our collection which currently contains 1162 articles written by 260 authors.

If you'd like to contribute to this growing collection, check out our [contributing document](https://github.com/TheRenegadeCoder/sample-programs/blob/master/.github/CONTRIBUTING.md) for more information. In addition, you can explore our documentation which is organized by [project](/projects) and by [language](/languages). If you don't find what you're look for, check out our list of related [open-source projects](/related). Finally, if code isn't your thing but you'd still like to help, there are plenty of other ways to [support the project](https://therenegadecoder.com/updates/5-ways-you-can-support-the-renegade-coder/).
6 changes: 3 additions & 3 deletions docs/languages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ layout: default
title: Programming Languages
---

Welcome to the Languages page! Here, you'll find a list of all of the languages represented in the collection. At this time, there are 154 languages, of which 153 are tested, 1 is untestable, and 970 code snippets.
Welcome to the Languages page! Here, you'll find a list of all of the languages represented in the collection. At this time, there are 154 languages, of which 153 are tested, 1 is untestable, and 971 code snippets.

## Language Collections by Letter

Expand Down Expand Up @@ -216,12 +216,12 @@ The 'L' collection contains 9 languages, of which 9 are tested, and 31 code snip

### M

The 'M' collection contains 6 languages, of which 5 are tested, 1 is untestable, and 44 code snippets.
The 'M' collection contains 6 languages, of which 5 are tested, 1 is untestable, and 45 code snippets.

- [Malbolge](https://sampleprograms.io/languages/malbolge) (2 code snippets)
- [Mathematica](https://sampleprograms.io/languages/mathematica) (36 code snippets, [untestabled](https://github.com/TheRenegadeCoder/sample-programs/blob/main/archive/m/mathematica/untestable.yml))
- [Mirth](https://sampleprograms.io/languages/mirth) (1 code snippet)
- [Modula2](https://sampleprograms.io/languages/modula2) (1 code snippet)
- [Modula2](https://sampleprograms.io/languages/modula2) (2 code snippets)
- [Mojiscript](https://sampleprograms.io/languages/mojiscript) (1 code snippet)
- [Moonscript](https://sampleprograms.io/languages/moonscript) (3 code snippets)

Expand Down
5 changes: 3 additions & 2 deletions docs/languages/modula2/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
date: 2023-08-14
featured-image: programming-languages.jpg
last-modified: 2023-08-14
last-modified: 2024-12-23
layout: default
tags:
- modula2
Expand All @@ -26,6 +26,7 @@ No 'Description' section available. [Please consider contributing](https://githu

## Articles

There is 1 article:
There are 2 articles:

- [Baklava in Modula2](https://sampleprograms.io/projects/baklava/modula2)
- [Hello World in Modula2](https://sampleprograms.io/projects/hello-world/modula2)
3 changes: 2 additions & 1 deletion docs/projects/baklava/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Verify that the actual output matches the expected output

## Articles

There are 89 articles:
There are 90 articles:

- [Baklava in Ada](https://sampleprograms.io/projects/baklava/ada)
- [Baklava in Algol68](https://sampleprograms.io/projects/baklava/algol68)
Expand Down Expand Up @@ -112,6 +112,7 @@ There are 89 articles:
- [Baklava in Lua](https://sampleprograms.io/projects/baklava/lua)
- [Baklava in Malbolge](https://sampleprograms.io/projects/baklava/malbolge)
- [Baklava in Mathematica](https://sampleprograms.io/projects/baklava/mathematica)
- [Baklava in Modula2](https://sampleprograms.io/projects/baklava/modula2)
- [Baklava in Never](https://sampleprograms.io/projects/baklava/never)
- [Baklava in Nim](https://sampleprograms.io/projects/baklava/nim)
- [Baklava in Nit](https://sampleprograms.io/projects/baklava/nit)
Expand Down
75 changes: 75 additions & 0 deletions docs/projects/baklava/modula2/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
---
authors:
- rzuckerm
date: 2024-12-23
featured-image: baklava-in-every-language.jpg
last-modified: 2024-12-23
layout: default
tags:
- baklava
- modula2
title: Baklava in Modula2
---

<!--
AUTO-GENERATED -- PLEASE DO NOT EDIT!
Instead, please edit the following:
- sources/programs/baklava/modula2/how-to-implement-the-solution.md
- sources/programs/baklava/modula2/how-to-run-the-solution.md
See .github/CONTRIBUTING.md for further details.
-->

Welcome to the [Baklava](https://sampleprograms.io/projects/baklava) in [Modula2](https://sampleprograms.io/languages/modula2) page! Here, you'll find the source code for this program as well as a description of how the program works.

## Current Solution

{% raw %}

```modula2
MODULE Baklava;
FROM StrIO IMPORT WriteString, WriteLn;
PROCEDURE WriteRepeatString(s: ARRAY OF CHAR; n: CARDINAL);
VAR i: CARDINAL;
BEGIN
FOR i := 1 TO n DO
WriteString(s);
END
END WriteRepeatString;
VAR
n: INTEGER;
numSpaces: CARDINAL;
numStars: CARDINAL;
BEGIN
FOR n := -10 TO 10 DO
numSpaces := ABS(n);
numStars := 21 - 2 * numSpaces;
WriteRepeatString(' ', numSpaces);
WriteRepeatString('*', numStars);
WriteLn;
END;
END Baklava.
```

{% endraw %}

Baklava in [Modula2](https://sampleprograms.io/languages/modula2) was written by:

- rzuckerm

If you see anything you'd like to change or update, [please consider contributing](https://github.com/TheRenegadeCoder/sample-programs).

## How to Implement the Solution

No 'How to Implement the Solution' section available. [Please consider contributing](https://github.com/TheRenegadeCoder/sample-programs-website).

## How to Run the Solution

No 'How to Run the Solution' section available. [Please consider contributing](https://github.com/TheRenegadeCoder/sample-programs-website).

0 comments on commit 9b885b4

Please sign in to comment.