Skip to content

seanpm2001/AGRAN-Programming-language

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Top

/AngryGran.png

GRANNY (Programming language)

GRANNY is an esotoric filter programming language. It was originally named AGRAN until 2022 August 3rd, when the project was renamed to have a better name. The repository name will remain the same.

GRANNY has syntax with elements of FORTRAN, Python, Java, Visual Basic Script, and HTML5. It is also implemented in these languages. As a filter language, it is designed to filter out keywords from programs that are deemed inappropriate.

It currently has the logo for the mobile game Angry Gran as its logo. This is a placeholder.

Old description:

AGRAN-Programming-language

Another old draft for a programming language, as I love playing with languges and syntax, whether it be human-spoken, or computer generated. I don't know if I will continue this project.


README Index

00.0 - Top

00.1 - GRANNY (Programming language)

00.2 - Old description

01.0 - README Index

02.0 - About

03.0 - Project Wiki

04.0 - Syntax

04.1 - Hello World

04.2 - Comments

04.2.1 - Single line

04.2.2 - Multi-line

05.0 - Name change

06.0 - Version history

07.0 - Contributers

08.0 - Contributing

09.0 - README info

10.0 - Footer


About

See above


Project Wiki

Click/tap here to view this projects Wiki

If the project has been forked, the Wiki was likely removed. Luckily, I include an embedded version. You can view it here.


Syntax

GRANNY shares syntax with 5 languages:

  • FORTRAN
  • HTML5
  • Java
  • Python
  • Visual Basic Script (VBS, not to be confused with VB.NET)

A demo program that filters out symbols illegal in Germany looks like this:

progName = Androids.txt
program|start:
C: Start of script
D:--
ANDROIDS.TXT
ALGORITHM SOURCES
D:/end--<

android.output.printBox("Androids.txt")

D:--
android.output.printBox("Hello World!")
D:/end--<

{ Def Section badStuffRedAlert C: Flag as dangerous content
	C: BAD STUFF {RED ALERT}
	{ def HammerAndSickle
		☭ = Hammer and Sickle | contentStatus: [BAD] }
	{ def Swastika
		卍 = Swastika | contentStatus: [BAD] {
		RestrictIn State
		{ Germany ' No_more }
}
C: End of script
C: This is my web-based algorithm language called <currently unnamed>
end program|://terminate(Androids.txt);

This was the first program made with the language.

Hello World

The classic Hello World program in GRANNY.

android.output.printBox("Hello World!")

Comments

Single line

Single line comments in GRANNY look like this:

C: This is a single line comment in GRANNY
Multi-line

Multi-line (block) comments in GRANNY look like this:

D:--
This is a multi-line
comment in GRANNY
D:/end--<

Block comments are nestable.


Name change

On 2022, Wednesday, August 3rd, the project was renamed from AGRAN to GRANNY as AGRAN just didn't work as a name. The repository will still be called AGRAN-Programming-Language

Version history

Unavailable

More versions coming soon


Contributers

Currently, I am the only contributer, but if you follow ther CONTRIBUTING rules, you can contribute as well.

  1. seanpm2001 - 71 commits (As of 2022, Wednesday, August 3rd at 3:23 pm PST)

  2. No other contributers at the moment


Contributing

Please abide by the contributing rules for this project. They are listed here.


README info

File type: Markdown document (*.md *.mkd *.mdown *.markdown)

Line count (including blank lines and compiler line): 241

File version: 2 (2022, Wednesday, August 3rd at 3:23 pm PST)

Article language: English (USA)


File history

Version 1 (2020, Wednesday, July 8th at 5:36 pm PST)

Changes:

  • Started the file
  • Added the title section
  • Added the index
  • Added the about section
  • Added the project Wiki section
  • Added the Version history section
  • Added the Contributors section
  • Added the Contributing section
  • Added the README info section
  • Added the Footer section
  • No other changes in version 1

Version 2 (2022, Wednesday, August 3rd at 3:23 pm PST)

Changes:

  • Updated the title section
  • Updated the index
  • Added the placeholder project logo
  • Added the syntax section
    • Added the hello world subsection
    • Added the comments subsection
      • Added the single line subsubsection
      • Added the multi-line subsubsection
  • Added the name change section
  • Updated the project Wiki section
  • Updated the Contributors section
  • Updated the README info section
  • Updated the footer
  • No other changes in version 2

Footer

( Back to top | Exit to GitHub | Exit to Bing | Exit to DuckDuckGo | Exit to DuckDuckGo (Safe browsing mode) | Exit to Ecosia | Exit to Swisscows )

EOF