I am playing with the parser for a toy programming language inspired by Japanese grammar, syntax and vocabulary. Soon, I hope to be able to parse the following code, and maybe even run it:

ใ€€โ€‰ใ“โ€‰ใƒŽโ€‰ใ‚ทโ€‰ใ‚‚โ€‰ใโ€‰ใ‚ตโ€‰ใ‚ซโ€‰ใ‚ซโ€‰ๅŠ 
ใ€€โ€‰ใจโ€‰ใ‚ณโ€‰ใƒณโ€‰ใ—โ€‰ใ†โ€‰ใƒ โ€‰ใ‚บโ€‰ใ‚บโ€‰ใˆ
ใ€€โ€‰ใงโ€‰ใ‚ซโ€‰ใ‚ตโ€‰ใ‚ซโ€‰ใงโ€‰ใงโ€‰้”โ€‰้”โ€‰ใ‚‹
ใ€€โ€‰ใ™โ€‰ใ‚บโ€‰ใƒ โ€‰ใ‚บโ€‰ใชโ€‰ใ™โ€‰ใฎโ€‰ใจโ€‰ใจ
ใ€€โ€‰ใ€‚โ€‰้”โ€‰ใฏโ€‰ใƒปโ€‰ใ„โ€‰ใ‘โ€‰้•ทโ€‰ใ‚ตโ€‰ใฏ
ใ€€โ€‰ใ€€โ€‰ใจโ€‰ใ‚ตโ€‰ใƒŽโ€‰ๅ ดโ€‰ใ‚Œโ€‰ใ•โ€‰ใƒ 
ใ€€โ€‰ใ€€โ€‰ใ‚ทโ€‰ใƒ โ€‰ใ‚ณโ€‰ๅˆโ€‰ใฉโ€‰ใŒโ€‰ใง
ใ€€โ€‰ใ€€โ€‰ใƒณโ€‰ใซโ€‰ใ‚ซโ€‰ใฏโ€‰ใ€โ€‰้›ถ
ใ€€โ€‰ใ€€โ€‰ใ‚ตโ€‰ใ‚ซโ€‰ใ‚บโ€‰ใ€โ€‰ใ€€โ€‰ใซ
ใ€€โ€‰ใ€€โ€‰ใƒ โ€‰ใ‚บโ€‰้”โ€‰ใ€€โ€‰ใ€€โ€‰็ญ‰
ใ€€โ€‰ใ€€โ€‰ใ‚’โ€‰ใ‚’โ€‰ใฏโ€‰ใ€€โ€‰ใ€€โ€‰ใ—
ใ€€โ€‰ใ€€โ€‰ๅŠ โ€‰่ถณโ€‰ใ‚ซโ€‰ใ€€โ€‰ใ€€โ€‰ใ„
ใ€€โ€‰ใ€€โ€‰ใˆโ€‰ใ—โ€‰ใ‚บโ€‰ใ€€โ€‰ใ€€โ€‰ๅ ด
ใ€€โ€‰ใ€€โ€‰ใ‚‹โ€‰ใŸโ€‰้”โ€‰ใ€€โ€‰ใ€€โ€‰ๅˆ
ใ€€โ€‰ใ€€โ€‰ใ€€โ€‰ใ‚‰โ€‰ใ โ€‰ใ€€โ€‰ใ€€โ€‰ใฏ
ใ€€โ€‰ใ€€โ€‰ใ€€โ€‰ใ€โ€‰ใฃ
ใ€€โ€‰ใ€€โ€‰ใ€€โ€‰ใ€€โ€‰ใŸ
ใ€€โ€‰ใ€€โ€‰ใ€€โ€‰ใ€€โ€‰ใ‚‰
ใ€€โ€‰ใ€€โ€‰ใ€€โ€‰ใ€€โ€‰ใ€

Follow

[The Wikipedia page on Non-English-based programming languages](en.wikipedia.org/wiki/Non-Engl) lists eight different languages based on Japanese.

So why make a ninth one? The short answer is, to see what I end up with.
The slightly longer answer is that these other eight languages serve a practical purpose: they want to make programming easier for Japanese native speakers, and most of them target education.

My motivation is very different. I don't want to create a practical language.

ยท ยท Web ยท 1 ยท 4 ยท 4

I want to explore the consequences of creating a natural language programming language based on a non-English and more generally non-Indo-European language, in terms of syntax, grammar and vocabulary. I also want to give the programmer some degree of control over the register of the language. And I want the language to be at least visually close to literary Japanese, ideally supporting vertical writing.

Sign in to participate in the conversation
Octodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!