this post was submitted on 05 Jul 2024
864 points (97.9% liked)

Programmer Humor

32203 readers
476 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] manucode@infosec.pub 119 points 3 months ago (29 children)

It uses XML-like syntax:

<fun>
  <name>sum</name>
  <in>
    <int>foo</int>
    <int>bar=0</int>
  </in>
  <out><int>foo+bar</int></out>
</fun>
[–] JackbyDev@programming.dev 9 points 3 months ago (4 children)

Make sure to make ample use of mixed content elements.

<statement><var>bar</var> = <int>0</int></statement>
[–] aphlamingphoenix@lemm.ee 4 points 3 months ago (1 children)
statement: 
  comparison:
    - kind: libcompare.EQUALS
      comparators:
        - foo
        - bar
      whentrue:
        statement: 
          streaming: 
            - kind: libstreams.PRINT
               content: foo equals bar
      whenfalse:
        statement: 
          streaming: 
            - kind: libstreams.PRINT
               content: foo does not equal bar
[–] JackbyDev@programming.dev 2 points 3 months ago (1 children)
[–] aphlamingphoenix@lemm.ee 2 points 3 months ago (1 children)
[–] JackbyDev@programming.dev 3 points 3 months ago

Don't apologize, it's beautiful in its horribleness

load more comments (2 replies)
load more comments (26 replies)