GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - jarble/EngScript: This project is now obsolete. Some alternatives can be found here: https://github.com/pannous/english-script and also here: https://github.com/percyliang/sempre

BranchesTags
Open more actions menu

Latest commit

 

History

11 Commits
11 Commits

Folders and files

NameName
Last commit message
Last commit date
libraries
libraries
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
ExampleText.txt
ExampleText.txt
 
 
LICENSE
LICENSE
 
 
MacroDemo.py
MacroDemo.py
 
 
README.md
README.md
 
 
SpeakingCountdownTimer.py
SpeakingCountdownTimer.py
 
 
checkerboardPattern.png
checkerboardPattern.png
 
 
empty_file.txt
empty_file.txt
 
 
englishToPython.py
englishToPython.py
 
 
exampleFile.txt
exampleFile.txt
 
 
exampleOfSomeStuff.txt
exampleOfSomeStuff.txt
 
 
exampleOfSomeStuff_1.txt
exampleOfSomeStuff_1.txt
 
 
image.png
image.png
 
 
main.py
main.py
 
 
my_image.png
my_image.png
 
 
my_image1.png
my_image1.png
 
 
pillowDemo.py
pillowDemo.py
 
 
pythonFunctions.py
pythonFunctions.py
 
 
theSampleCopy.txt
theSampleCopy.txt
 
 

Repository files navigation

EngScript is an intuitive and extensible English-like programming language.

EngScript is a dialect of the English language that can be automatically translated into Python code. In other words, you can write programs in plain English and automatically compile them to Python code.

It's MIT-licensed, so it can be used in open-source software projects as well as commercial ones.

For a working demo of EngScript, see main.py.

The language's grammar is defined in englishToPython.py.

Some useful code samples:

#Print the first 3 letters of a word
print (the first 3 letters of "Hello")

#Repeat an action a certain number of times.
repeat 3 times:
	print "Hello!"

#Check whether a number is prime
x = 15

if ((x is a prime number) or (x is divisible by 5)) :
	print x

#Create a string from a file
print{create a string from the file called "README.txt"}

#Save a string as a file
print{save the string "Woohoo!" to a file called "ExampleText.txt"}

#Get the first few letters of a string
print{the first 3 letters of "EngScript"}
#This prints "Eng".

About

This project is now obsolete. Some alternatives can be found here: https://github.com/pannous/english-script and also here: https://github.com/percyliang/sempre

Resources

Readme
MIT license
Activity

Stars

11 stars

Watchers

1 watching

Forks

3 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.