Thread: New Lang!

  1. #1
    Registered User minime6696's Avatar
    Join Date
    Aug 2001
    Posts
    267

    Smile New Lang!

    I am makking a new language, and I would liek to know iff anyone here wants to help with import libz or anything, I dont know the name yet, might be 'cppapplet' becouse of hte mix between c++ syntax and BASIC/Java syntax. The code archetecture is a lot like C, but the variables are like VB, its like this:

    IMPORT ilang.dll'

    function _MAIN(cmdline)
    PRINTF s This is a demonstration!~'
    GETCH s NULL
    PRINTF s Here is the command line!~'
    PRINTF d cmdline
    PRINTF s ~Enter a string and I will repeat it: '
    VAR s String
    STRGET s String
    PRINTF s ~You Entered: '
    PRINTF d String
    GETCH s NULL
    }

    It may change over time, but this is what I have so far, its only been 2 days, so ive only just started with import libz, I had to get the interpreter and precompiler up and running first, "ilang.dll" includes Variables and console, each import lib for this language is a dll, you can also have multiple source files. Also everything declaired is global, and paramiters only exist as variables while the function is opened, but they too are global. If you're wondering what the 's' and 'd' mean, they let you be very elastic when it comes to variables. You can specify to use one variable with another, and the 'VAR' type is universal for anything, any type.

    So if you're interested in helping develope libz or learning it to try it email me or reply!

    SPH

    P.S. I am creating a C++ lbirary, prolly "cpplib.dll", that will let you paste C++ code into cppapplet with little trouble, a lib can do a lot in this, it can change syntax, pretty much anything.
    Last edited by minime6696; 08-25-2001 at 12:55 PM.

  2. #2
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,227

    ewww...

    No Offense, but that is one UGLY language. And what advantage does it have over C or BASIC or anything else I can throw at you? It looks like something you'd wind up calling BATRAN-C (BASIC + FORTRAN + C). I see no distinct advantage there, besides confusability...

  3. #3
    Registered User minime6696's Avatar
    Join Date
    Aug 2001
    Posts
    267

    Lightbulb lolz

    Yeah... Its for portabuility, and its better than java for web stuff, its basically something that can be used for anything...
    The lang has changed, and it is continuing to be better, here is a sample so far...

    IMPORT ilang.dll'

    function _MAIN cmdline ?
    PRINT d cmdline'
    }

    SPH

    P.S. it also has new data structures and some features that are more elastic than C++. Like a var being able to do anything using the mutation operator (*).

  4. #4
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,823
    A var being able to do anything? You mean like casting? Also - it does look a lot like BASIC...

  5. #5
    Registered User
    Join Date
    Aug 2001
    Posts
    47
    Hey it can't be any uglier than Perl!

  6. #6
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,227
    even uglier than perl. it's sickeningly ugly. puke-o-rama!

    what's whith needing a single-quote after the print command? and why have a single control (or chicken-lip ) "}" at the end of the program? what about one at the start?

  7. #7
    C > C++ duders ggs's Avatar
    Join Date
    Aug 2001
    Posts
    435
    What about arithmetic? Won't be very good for speed if you have to handle variables changing their types in the middle of equations...
    .sect signature

  8. #8
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,227
    And how is this a web language? and how is it OS-independant? Doesn't look like either to me. I'd like to see you compile and run that on a *nix platform.

  9. #9
    Registered User
    Join Date
    Aug 2001
    Posts
    47
    As for the "automatic casting," it could just do things standard BASIC style and make everything a float!! (that IS QBasic's default behavior. People who need speed, for obvious reasons, override that) Or, what the hell, make your own "triple" or "quadruple" data type, for extra accuracy! Finally, something for the Itanium and it's 64 bits of uselessness!

  10. #10
    C > C++ duders ggs's Avatar
    Join Date
    Aug 2001
    Posts
    435
    I wouldn't trash talk the itanium. It may not be super speedy at first, but it's 64 bits are useful in some places...

    The instruction set has a ton of registers, and you can control which code will be run with specific registers... it's very interesting, and offers a lot of speed improvement if compilers are made to take advantage of it.
    .sect signature

  11. #11
    Registered User
    Join Date
    Aug 2001
    Posts
    47
    The high-end (1.1 Ghz) PIII Xeon Coppermines seem to be the most useful Intel CPUs. Once 64-bit operating systems become common, the Itanium will gain it's usefullness. But not for a while.

    Of course, if you're a gamer, then the PIV is a good choice. That's one of the few areas where the PIV beats the lower-latency Athlon. I assume the Itanium would too, if Q3 were the kind of thing that they'd use in benchmarks of something destined for workstations!

    But ANYWAY, back on topic. The language. What exactly is it's purpose? Are you writing a prowser plug-in to act as an interpreter for it? What is it's niche, exactly?

  12. #12
    Registered User minime6696's Avatar
    Join Date
    Aug 2001
    Posts
    267

    Exclamation okay...

    The reason for this is becouse it offers the first real C style approach for things on the net (instead of java where its all 'onMouseClick' and such). and this does not auto-cast... the var is actually everything, its hard to explain but it stores anything, I didnt give the example of the mutation operator, basically the interpreter stores wut it is usign the '*'. Lolz once its done peeps can read the tutorial .

    SPH

    P.S. Its not ugly, just the console lib is, the rest looks a lot like C++.

  13. #13
    Xterria
    Guest

    Question

    Anyone here gotz a BASIC Compiler source code for VB...I want to make a new pointless language

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Tip for a C lang Beginner
    By ph071 in forum C Programming
    Replies: 13
    Last Post: 12-06-2008, 01:42 AM
  2. Shadow of the beast lang
    By swgh in forum Game Programming
    Replies: 4
    Last Post: 09-21-2006, 05:17 AM
  3. HELP: which lang to learn for embedded device?
    By hkuser2001 in forum Networking/Device Communication
    Replies: 1
    Last Post: 04-08-2006, 12:11 AM
  4. isvowel() included in ctype for C lang?
    By nizbit in forum C Programming
    Replies: 30
    Last Post: 11-21-2004, 08:09 AM
  5. Common lang runtime debugging service giving me problems
    By datainjector in forum C# Programming
    Replies: 3
    Last Post: 08-04-2003, 06:03 AM