GO-V.ORG
As seen in

PCASTL

The PCASTL (an acronym for by Parent and Childset Accessible Syntax Tree Language) is an interpreted high-level programming language.[src] It was created in 2008 by Philippe Choquette.[src] The PCASTL is designed to ease the writing of self-modifying code.[src] The language has reserved words parent and childset to access the nodes of the syntax tree of the currently written code.[src]

The PCASTL (an acronym for by Parent and Childset Accessible Syntax Tree Language) is an interpreted high-level programming language.[src] It was created in 2008 by Philippe Choquette.[src] The PCASTL is designed to ease the writing of self-modifying code.[src] The language has reserved words parent and childset to access the nodes of the syntax tree of the currently written code.[src] ==Hello world== The "Hello world program" is quite simple: "Hello, world!" or print("Hello, world!") will do the same.[src] ==Syntax== The syntax of PCASTL is derived from programming languages C and R.[src] The source of R version 2.5.1 has been studied to write the grammar and the lexer used in the PCASTL interpreter.[src] ===Influences=== Like in R, statements can, but do not have to, be separated by semicolons.[src] Like in R, a variable can change type in a session.[src] Like in C and R, PCASTL uses balanced brackets ({ and }) to make blocks.[src] Operators found in PCASTL have the same precedence and associativity as their counterparts in C.[src] for loops are defined like in C.[src] ++ and -- operators are used like in C to increment or decrement a variable before or after it is used in its expression.[src] An example of PCASTL using the for reserved word and the ++ operator: for (i = 1; i Functions and comments in PCASTL are defined like in R: function definition (comment) a = function() { print("Hello, world!") } function call a() ===parent and childset reserved words=== Those reserved words can only be written lowercase and will not be recognized otherwise.[src] The parent reserved word gives a reference to the parent node in the syntax tree of the code where the word is placed.[src] In the following code, the parent node is the operator = .[src] a = parent The variable "a" will hold a reference to the = node.[src] The following code shows how to get references to the two child nodes of the operator = with the childset reserved word.[src] a.childset[0] a.childset[1] To display the value of "a", some ways are given in this example: a a.childset[0].parent a.childset[1].parent a.childset[0].parent.childset[0].parent # and so on...[src] In the following code: we assign a code segment to the right child of the = node, we execute the = node a second time and we call the newly defined function.[src] a.childset[1] = `function() print("hello")' execute(a) a() ==See also== Abstract syntax tree Self-modifying code ==References== ==External links== PCASTL: by Parent and Childset Accessible Syntax Tree Language[src]

25 sentences · 25 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"PCASTL." encyclopegia.org, 2026, https://encyclopegia.org/wiki/pcastl. Accessed 05 December 2026.

Chicago

"PCASTL." encyclopegia.org. Accessed December 5, 2026. https://encyclopegia.org/wiki/pcastl.

APA

encyclopegia.org. (2026). PCASTL. Retrieved December 5, 2026, from https://encyclopegia.org/wiki/pcastl

Accessed December 5, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1345498684 · 0.5 · snapshot enwiki-001345498684

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.