breck7 / research

I moved this folder. Keeping this repo up for archival purposes only.
https://github.com/breck7/breckyunits.com/tree/main/research
17 stars 0 forks source link

LanguageIdea: TRON #30

Open breck7 opened 4 years ago

breck7 commented 4 years ago

Tree Object Notation.

Dug is a demo Tree Language showing one approach to a JSON isomorphism (https://jtree.treenotation.org/designer/#standard%20dug).

Another approach would be to create a keyword + suffix based language where the type comes from the suffix. For example:

resultMap
 nameString jtree
 versionString 30.0.0
 descriptionBlockString
  Simplify your code with Tree Notation. This jtree package
  includes a Tree Notation parser, compiler-compiler, and virtual
  machine for Tree Languages, as well as sample languages, implemented
  in TypeScript.
 prettierMap
  useTabsBoolean false
  tabWidthInt 2
  semisBoolean false
  printWidthInt 160