https://github.com/petabyt/corescript-editor-legacy
The Classic CoreScript Editor and Interpreter
https://github.com/petabyt/corescript-editor-legacy
corescript javascript language programming
Last synced: 5 months ago
JSON representation
The Classic CoreScript Editor and Interpreter
- Host: GitHub
- URL: https://github.com/petabyt/corescript-editor-legacy
- Owner: petabyt
- License: mit
- Created: 2018-01-06T02:41:08.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-05-14T21:35:25.000Z (over 5 years ago)
- Last Synced: 2025-07-29T08:10:59.531Z (5 months ago)
- Topics: corescript, javascript, language, programming
- Language: JavaScript
- Homepage: http://danielc.dev/corescript-editor-legacy/
- Size: 438 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Corescript
The source code behind the brand new CoreScript.
---
### Custom Commands
Use this code to create custom commands. (run it in the console)
newCommand("say ","alert('#result#');");
The code `say Hello, World` will make a alert box saying that.
\#result# will be replaced with the text after `say`.
---
### New Features
- Syntax Highlighter
- Improved variables
- Better GUI
---
### Syntax
**Print**: Print text on the screen. To insert variables, insert them in wrapped around in round brackets.
print Hello, World!
print Hello, (name)!
**Note**: Only the coder will see these notes.
// This is a test.
**Variable**: Create a variable and set its value.
var name=John Doe
**Input**: Asks the user for info and stores it in a variable.
input name=What’s your name?
**Clear Screen**: Clears the screen of any text.
cls
**Message**: Creates a browser message box.
msg Hello!
**Set**: Set a variable to a specified value.
set name=Jane Doe
**If**: Checks if a variable equals something. If true, then the program will go to a specific line or label.
if name=Johnny:4
**Goto**: Changes current line Corescript is reading.
goto 3
**Not**: Checks if a variable does not equal something. If true, then the program will go to a specific line.
not name=Johnny:5
**Stop**: Stops the program
stop
**:**: Define a label, so you can later visit it.
:start
**Increase/Decrease**: Write a variable, then ++ to increase or -- to decrease it.
var str = 0
str++
str--
---
### Examples
input choice = Which is better: Microsoft(m) or Apple?(a)
if choice = m:m
if choice = a:a
:m
print Good choice!
stop
:a
// :
print eh
stop