Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

XML, how does it work!?

Name: Anonymous 2010-11-22 19:41

How do i use it to mix C++, Java, C# & CSound?

Go.

Name: Anonymous 2010-11-22 19:55

XML
mix C++, Java, C# & CSound
Brilliant idea!

Name: Anonymous 2010-11-22 20:00

Name: Anonymous 2010-11-22 21:38

XML files hold data formatted by tags.

<example>
  <data>
    hello
  </data>
</example>


You can name the tags anything you want, but some programs(like CSound) only read specific names.

Programming languages that have an XML parser can load XML files.  You can program it to except any tags you want.

If you want to mix these languages and program together, you can make an XML parser in each language that uses the same tags CSound does, that way they will all be compatible with each other.

Name: Anonymous 2010-11-22 22:36

>>4
Don't feed him.

Name: Anonymous 2010-11-23 1:01

>>4
So 'write the parsers' for C++ to take Csound tags & AIML tags, and i have those languages incorperated? that doesn't seem right? too easy?

Name: Anonymous 2010-11-23 1:19

I'm not sure what you'd get if you mixed C++, Java and C#, but it sounds highly incestuous and more than a little repulsive.

Name: Anonymous 2010-11-23 6:34

>>6
It is that easy.  There are probably even parsers already written for you to use in all the languages you mentioned.  XML is a very common and widely used way of storing data.

Name: Anonymous 2010-11-23 7:00

XMLisp should be fun.

(define op/ faggot/ /define)
(map op/ (faggot /faggot) /map)

Name: Anonymous 2010-11-23 7:20

>>9
You have no idea what you're talking about. I suggest you look up the phrase ``sexp''.

Name: Anonymous 2010-11-23 8:21

>>10
sexp my anus

Name: Anonymous 2010-11-23 9:08

>>10
Sexp uses ugly ) to end list. Instead of glorius /SOMETHING)

Name: Anonymous 2010-11-23 12:26

How about a reader macro to parse any single token preceded by a slash as a comment?

Name: Anonymous 2010-11-23 12:34

>>13
/prog

Name: Anonymous 2010-11-23 13:00

>>14
Would only work if prog is a token in its own right.

Name: Anonymous 2010-11-24 5:01

>>15
This new syntax rule would render all tokens containing a / effectively invalid.

Name: Anonymous 2010-11-24 8:56

>>16
No, it wouldn't. Only existing tokens preceded by a slash would be interpreted as comments. That is, since let is valid, /let would be interpreted as a comment. But if there's nothing called dicks in scope, /dicks would still be interpreted as normal, and in no case would dicks/balls be discarded in whole or part (but assuming it was defined at some point, /dicks/balls would).

Don't change these.
Name: Email:
Entire Thread Thread List