Note that there are some explanatory texts on larger screens.

plurals
  1. USweltraumpirat
    primarykey
    data
    text
    plurals
    1. COFrom a fundamental point of view, you are both right, of course. I was being pragmatic - there just isn't an XML compiler yet. But even if you wrote your program in XML, it would still have to have a syntax and semantics - you would have to define a schema to make sure your program is valid and can be compiled, which is pretty much the same thing: A set of conventions + rules that specifies in which way any piece of information written in your language should be interpreted. You would get rid of points and braces and trade them for angle brackets and a large description of what means what.
      singulars
    2. CO@Greg: Well, yeah, but you can compile it. Now you say: But you could compile an XML file if you have the right compiler. And then I say: go ahead and write one. ;) Are we splitting hairs?
      singulars
    3. CO@Mitro: What the other comments mean is that you simply cannot RUN an XML file. It is used to describe data, not to provide an executable piece of machine code. In other words: XML is like the music coming from your iPod - without the machine around it, you won't hear a thing. Having said that: You can use XML to model an abstract syntax tree (AST) representing your program, which could later be parsed and translated into actual C. That would still require in-depth knowledge of the C language, though, at least for whoever has to do the translation.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload