Token colors
#EAF2FF#83BFA8#FF6BCB#B7F774#FFE27A#64D8FF#FFD166#52E0D0#C7A6FF#5CE1E6#8FC7FF#FFB86C#FF9F68#A9B8D0#F6A6FF
Explore the greenServeFE language, learn its syntax and modules, and get started with practical programs. Download the complete PDF documentation or install the command-line tools through MacoraOne.
The official greenServeFE syntax extension uses the greenServeFE Aurora dark theme. The color samples below are rendered with their actual hexadecimal values, not just color names. Use these token categories when implementing GSVE highlighting in an editor, IDE, website, or documentation tool.
Each token is displayed using the same foreground color defined by the Aurora theme.
# Aurora syntax demonstration
import gs_math;
define temperature = 36.5;
define message = "Hello, greenServeFE!";
func describe(value) {
print("Reading:", value);
print(gs_math.round(value));
}
if (true && temperature > 0) {
describe(temperature + 1);
}
config = { mode: "demo", enabled: false };
The sample is illustrative syntax highlighting; use only language constructs and APIs supported by the installed greenServeFE runtime.
#EAF2FF#83BFA8#FF6BCB#B7F774#FFE27A#64D8FF#FFD166#52E0D0#C7A6FF#5CE1E6#8FC7FF#FFB86C#FF9F68#A9B8D0#F6A6FF# and continue to the end of the line.define, if, else, for, in, while, func, return, break, continue, from, import.true, false, null.print, interact, len, str, num, type, range, push, pop, keys, values, contains, clone, merge, has, class, new, instanceof.server, construct, gsnum, gs_table, gs_compute, gs_string, gs_json, gs_csv, gs_path, gs_time, gs_random, gs_uuid, gs_validate, gs_env, gs_hash, gs_base64, gs_math, gs_url, gs_file, gs_http, gs_crypto, gs_db, gs_log, gs_form, gs_object, gs_plot, gs_regex, gs_statistics, gs_test, gs_brain, gs_physics, gs_chemistry, gs_signal, gs_xml, gs_yaml, gs_compat.A compatible highlighter should tokenize GSVE source first, then map each token category to the exact Aurora foreground value. Do not color tokens using substring matching alone: comments and quoted strings must be recognized before identifiers, keywords, and operators so their contents are not recolored accidentally.
/* Example CSS token mapping */
.gsve-comment { color: #83BFA8; font-style: italic; }
.gsve-keyword { color: #FF6BCB; font-weight: 700; }
.gsve-string { color: #B7F774; }
.gsve-escape { color: #FFE27A; font-weight: 700; }
.gsve-number { color: #64D8FF; font-weight: 700; }
.gsve-function { color: #FFD166; font-weight: 700; }
.gsve-member { color: #52E0D0; font-weight: 700; }
.gsve-builtin { color: #C7A6FF; font-weight: 700; }
.gsve-module { color: #5CE1E6; font-weight: 700; }
.gsve-property { color: #8FC7FF; }
.gsve-constant { color: #FFB86C; font-weight: 700; }
.gsve-operator { color: #FF9F68; font-weight: 700; }
.gsve-punctuation { color: #A9B8D0; }
The authoritative grammar scopes and theme are maintained in the greenServeFE syntax extension. Refer to its TextMate grammar and Aurora color-theme JSON when building an editor integration.
PDF editions from the greenServeFE language guide release.
A detailed reference for learning the language and its programming concepts.
Download PDFAn introductory overview of greenServeFE and its core language concepts.
Download PDFLearn how to import and use the available greenServeFE modules.
Download PDFStudy practical program examples and patterns.
Download PDFInstall MacoraOne first. The installer places the executable at /usr/local/bin/one.
Run this complete command in a Linux terminal. It downloads the v1.0.2 release, extracts the executable, and installs it as one.
set -eu
URL="https://github.com/MacoraOne/MacoraOne/releases/download/one-v1.0.2/macoraone-linux-x86_64.zip"
TMP_DIR="$(mktemp -d)"
trap 'rm -rf "$TMP_DIR"' EXIT
curl -fL "$URL" -o "$TMP_DIR/macoraone-linux-x86_64.zip"
unzip -q "$TMP_DIR/macoraone-linux-x86_64.zip" -d "$TMP_DIR/extracted"
# Locate the executable inside the archive.
BIN="$(find "$TMP_DIR/extracted" -type f \( -name 'macoraone' -o -name 'macoraone-linux-x86_64' -o -name 'one' \) -print -quit)"
if [ -z "$BIN" ]; then
echo "Error: could not find the MacoraOne executable in the release archive." >&2
echo "Archive contents:" >&2
find "$TMP_DIR/extracted" -maxdepth 3 -type f -print >&2
exit 1
fi
chmod +x "$BIN"
sudo install -m 0755 "$BIN" /usr/local/bin/one
echo "MacoraOne installed as the 'one' command at /usr/local/bin/one"
one --help
Use MacoraOne to install or remove the language package.
# Install the greenServeFE language package
one install greenServeFE
# Check the command
greenServeFE --help
# Remove the greenServeFE language package
one uninstall greenServeFE
Install and uninstall packages individually. Use the exact package name and version published in the MacoraOne catalogue.
Install a module by its package name, optionally with a published version.
one install server
one install server@1.0.0Run a separate command for each additional module.
one install gs_regex
one install gs_jsonRemove an individual module by package name.
one uninstall server
one uninstall gs_regexUse the catalogue-wide commands when you intend to manage all available packages.
one install all
one uninstall allMacoraOne is the unified project for package and tool management. For predictable results, install one package per command; repeat the command for each module you need. The availability of a package depends on the published catalogue.
Project: MacoraOne on GitHub
Create a file named hello.gsve, then run it with the greenServeFE command.
print("Hello, greenServeFE!");
print("Welcome to programming.");
greenServeFE hello.gsve
After installing the corresponding module, import it in your program and call its functions.
import gs_regex;
define email_shape = "^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,}$";
print(gs_regex.match("ada@example.com", email_shape));
print(gs_regex.test("order-2048", "^order-[0-9]+$"));
print(gs_regex.replace_first("green green", "green", "blue"));
Save source files with the .gsve extension. The command-line form is greenServeFE filename.gsve. Consult the detailed guide and module-usage PDF for the language reference and supported module APIs.
Each guide has its own searchable page with SEO metadata, API exports, usage examples and implementation notes. XML and YAML module references are intentionally not modified or included in this update.
Syntax, values, operators, functions, iteration and class-like objects.
Open documentationCompiler pipeline, stack frames, environments and native calls.
Open documentationOutput, input, collections, conversions and class helpers.
Open documentationAll currently implemented VM opcodes and disassembly.
Open documentationC API, ownership, callbacks and module loading.
Open documentationOpcode counts, hot lines, function timing and stack peaks.
Open documentationBrowse all native module API pages.
Open documentationRouting, request/response objects, serving and TLS options.
Open documentationHTML documents, safe elements, metadata and templates
Open documentationNumerical arrays, reductions, linear algebra and statistics.
Open documentationFormatted tables, CSV and Markdown output.
Open documentationFinancial, scientific, vector, matrix and numerical computation.
Open documentationScalar math functions and constants.
Open documentationString conversion and predicate helpers.
Open documentationJSON parse, validate, serialize, pretty-print and query.
Open documentationCSV parsing and serialization.
Open documentationPath joining and path component inspection.
Open documentationTimestamp retrieval and UTC/local formatting.
Open documentationSeeded pseudo-random integer and fraction helpers.
Open documentationUUID v4 helper.
Open documentationEmail-like, integer, numeric and nonempty validation.
Open documentationProcess environment variable operations.
Open documentationFNV-1a and DJB2 non-cryptographic hashes.
Open documentationBase64 text encoding and decoding.
Open documentationURL component and query-string encoding.
Open documentationText file reading, writing, appending and size.
Open documentationSHA-2 digests and cryptographic random bytes.
Open documentationSQLite database connections and parameterized queries.
Open documentationOutbound HTTP requests using libcurl.
Open documentationStructured JSON-lines logging.
Open documentationForm validation and conversion helpers.
Open documentationObject/data read, parse, write and format helpers.
Open documentationSVG plot helper exports.
Open documentationRegular expression match, test and replace.
Open documentationDescriptive statistics.
Open documentationNative assertion and test result helpers.
Open documentationUnified CPU-first AI and machine-learning workspace.
Open documentationSource-grounded API references for physics, chemistry and digital signal processing.
Mechanics, energy, fluids, thermodynamics, waves and gravitation.
Open API referenceMoles, concentrations, pH, gas laws, reaction energy and kinetics.
Open API referenceWaveforms, measurements, convolution, DFT, spectrum and filtering.
Open API referencegreenServeFE is developed by Dominex Macedon. Universities, schools, educators, and programming communities can use the language and these learning materials freely for learning, teaching, and educational activities.
MacoraOne is the unified project supporting package and tool management.
Copyright © Dominex Macedon. All rights reserved.