Questions tagged [s-expression]

S-expressions are a notation for nested list or tree-structured data, popularized by the Lisp programming language.

In computing, s-expressions, sexprs or sexps (for "symbolic expression") are a notation for nested list (tree-structured) data, invented for and popularized by the programming language which uses them for source code as well as data.

Source: Wikipedia

138 questions
-1
votes
1 answer

Custom pattern-matching facility for Chez Scheme

I am trying to make my own pattern-matching system in Scheme. To begin I am making a parser for s-expressions that divides them into tokens like this: '(1 2 b (3 4)) => '(number number symbol (number number)) It should be noted that I have not used…
-1
votes
1 answer

Python - Longest substring having only matched parentheses

For interactive parsing purposes, given an input string I need to extract the longest possible substring starting at index 0 and having only matched parentheses. Example (LISP-like s-expressions) Input string: (print "hello") (assign a (+ c d))…
-1
votes
1 answer

Is the array structure redundant in json?

In https://www.json.org/, it said: JSON is built on two structures: A collection of name/value pairs. In various languages, this is realized as an object, record, struct, dictionary, hash table, keyed list, or associative array. An ordered list of…
chansey
  • 1,266
  • 9
  • 20
1 2 3
9
10