seng v1.1.0 Documentation

Documentation

The complete reference for seng — the programming language that speaks your language. Designed by NOCORPS.org and built by KANAGARAJ-M.

Use at Your Own Riskseng is provided "as is" without any warranty. NOCORPS.org & KANAGARAJ-M are not responsible for any damage, data loss, or system failure arising from use of this software.

Installation

seng is currently available for Windows 10 & 11. Linux and macOS support is coming in v1.2.0. Advanced users can build from source using GCC.

Windows — Installer (Recommended)

1

Download the installer from nocorps.org/seng

2

Run seng-setup-1.1.0-windows-x64.exe as Administrator

3

Read and accept the License Agreement

4

Choose your install directory (default: C:\Program Files\seng)

5

Click Install — seng is added to your system PATH automatically

6

Open a new terminal and verify: seng help

Your First Program

Create a file called hello.se and type:

hello.se
# My first seng program
say "Hello, World!"

set name to "Alice"
say "Hello, " + name + "!"

Run it from your terminal:

$ seng hello.se
Output
Hello, World! Hello, Alice!

How to Run

Run source file directly

$ seng yourfile.se

Interprets and executes the code immediately.

Run compiled bytecode

$ seng run yourfile.sec

Executes the compiled version using the seng Virtual Machine.

How to Compile

seng can compile your source into high-performance bytecode.

$ seng compile hello.se
Performance TipCompiled bytecode (.sec) runs significantly faster than interpreting source files directly, especially for complex loops or large lists.

Variables

Use set … to … to store values. seng is dynamically typed.

set name to "Alice" # text set age to 25 # number set active to true # boolean set data to nothing # null

To update a variable:

set age to age plus 1

Arithmetic

set a to 10 set b to 3 set sum to a plus b # 13 set diff to a minus b # 7 set prod to a times b # 30 set quot to a divided by b # 3.33 set rem to a mod b # 1

Strings

Concatenate strings and variables using the + operator.

set s1 to "Hello" set s2 to "World" say s1 + ", " + s2 + "!"

Conditions

set score to 85 if score is greater than or equal to 90 then say "Grade A" else if score is greater than or equal to 75 then say "Grade B" else say "Keep trying!" end

Comparison Operators

is equal to
Maps to ==
is not equal to
Maps to !=
is greater than
Maps to >
is less than
Maps to <
is greater than or equal to
Maps to >=
is less than or equal to
Maps to <=

Loops

Repeat Fixed Times

repeat 5 times
  say "Hello!"
end

While Condition

while count is less than 10
  set count to count + 1
end
Flow ControlUse stop to break out of a loop and skip to continue to the next iteration.

Functions

Functions allow you to encapsulate logic and reuse it throughout your code.

define addNumbers with a and b give back a plus b end set total to result of addNumbers with 10 and 25

Lists

make list fruits add "Apple" to fruits add "Banana" to fruits say item 1 of fruits # Apple say length of fruits # 2

User Input

ask name for "What is your name? " say "Welcome, " + name

Imports

Organize your code into multiple files. seng will execute the imported file and make its definitions available.

import "math_utils.se" set x to result of square with 5

All Keywords

KeywordCategoryDescription
set … to …VariablesAssign value to variable
say …OutputPrint to screen
ask … for …InputRead user input
if … thenConditionsStart conditional
elseConditionsFallback branch
repeat … timesLoopsFixed count loop
while …LoopsConditional loop
stop / skipLoopsBreak / Continue
define … with …FunctionsDefine function
give back …FunctionsReturn value
import …ModulesInclude file

CLI Reference

seng file.seRun a source file directly
seng compile file.seCompile source to .sec bytecode
seng run file.secExecute compiled bytecode
seng helpDisplay version and help information

FAQ

Is seng free?

Yes. seng is completely free and open-source under the EULA provided by NOCORPS.org.

Can I use seng to teach kids?

Absolutely! Its natural language syntax makes it perfect for educational environments.

Is seng available on Mac or Linux?

Currently, v1.1.0 is Windows-only. Linux and macOS support is planned for v1.2.0.

How do I report a bug?

Please email hello@nocorps.org or open an issue on our GitHub repository.

Still have questions?

Reach out to us directly or join the community on GitHub. We're here to help you get started with seng.