1. Home
  2. /
  3. Snobol
  4. /
  5. Sum of Array

Sum of Array - Snobol Typing CST Test

Loading…

Sum of Array — Snobol Code

Calculates the sum of a list of numbers.

ARR = 1 2 3 4 5
SUM = 0
I = 1
SUMLOOP :I <= 5
SUM = SUM + ARR(I)
I = I + 1
:(SUMLOOP)
OUTPUT = SUM

Snobol Language Guide

SNOBOL (StriNg Oriented and symBOlic Language) is a high-level programming language designed for text and pattern processing. It emphasizes string manipulation, pattern matching, and symbolic computation, making it particularly suited for language processing, compilers, and data extraction tasks.

Primary Use Cases

  • ▸Text parsing and manipulation
  • ▸Pattern matching and substitution
  • ▸Compiler and interpreter development
  • ▸Symbolic computation
  • ▸Educational purposes for string algorithms

Notable Features

  • ▸Advanced pattern matching
  • ▸Dynamic typing
  • ▸Flexible string operations
  • ▸Procedural and symbolic programming
  • ▸Integrated string substitution

Origin & Creator

SNOBOL was created in the early 1960s by David J. Farber, Ralph E. Griswold, and Ivan P. Polonsky at Bell Labs for text processing research.

Industrial Note

SNOBOL was historically used in early AI, linguistics, compiler construction, and text-processing pipelines. While largely historical now, its concepts influenced later scripting and pattern-matching languages.

More Snobol Typing Exercises

SNOBOL Counter and Theme ToggleSNOBOL Fibonacci SequenceSNOBOL Factorial CalculatorSNOBOL Prime CheckerSNOBOL Reverse StringSNOBOL Multiplication TableSNOBOL Temperature ConverterSNOBOL Simple Alarm SimulationSNOBOL Random Walk Simulation

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher