Author Topic: A New Programming Language  (Read 12062 times)

0 Members and 1 Guest are viewing this topic.

Offline cyanophycean314

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 363
  • Rating: +43/-1
  • It's You!
    • View Profile
Re: A New Programming Language
« Reply #15 on: March 06, 2012, 08:08:01 pm »
If > and < are input and output, what would the greater and less than signs be? << and >>? I guess that would work.

Naming suggestions... Idk

Nice project though!  :D

Offline Ki1o

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 119
  • Rating: +5/-2
  • Doing my best...
    • View Profile
Re: A New Programming Language
« Reply #16 on: March 06, 2012, 08:17:13 pm »
@cyanophycean314, no it check to see if its the beginning of a line if so then it is read as input or output.  If not then it is comparison operation.

Offline williamvanr

  • LV0 Newcomer (Next: 5)
  • Posts: 3
  • Rating: +0/-0
    • View Profile
Re: A New Programming Language
« Reply #17 on: March 06, 2012, 08:26:23 pm »
Hello, I am working with Ki1o on the programming language, and I am posting to clarify our intentions for the programming language. We were eventually going to implement the lexer, parser, and interpreter in C++. However, we decided we wanted the language to be more portable, so we decided to implement the lexer and parser in Java and the interpreter in C++ (for performance reasons). Now we are just going to implement the whole project in Java and compile directly to Java bytecode. We plan to create a dynamically typed and easy to use (and eventually object oriented) programming language. We hope to reduce the verbosity of some other programming languages languages. Our reasoning for implementing the whole project in Java is that Java is easier to use (in my opinion) than C++, more portable, and more secure. We are still deciding on a name and would love any suggestions.

Just to show the simplicity of this language, Ki1o has already posted the methods for input/output.
< "Output"; // output
> variable;  // input
< "You entered " + variable; // Output expression

@cyanophycean314 you raise a good point and the way we will differentiate between these and the greater than and less than operators is by the context. If > or < is used by itself on a line, it implies input/output, if used as an operator (2 < 3) then it will be treated as a greater or less than operator.

Offline cyanophycean314

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 363
  • Rating: +43/-1
  • It's You!
    • View Profile
Re: A New Programming Language
« Reply #18 on: March 06, 2012, 08:29:07 pm »
Ok, that works too. Once again, keep up the good work!  :D

Edit:  :ninja:
« Last Edit: March 06, 2012, 08:30:41 pm by cyanophycean314 »

Offline BlakPilar

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 734
  • Rating: +44/-1
    • View Profile
Re: A New Programming Language
« Reply #19 on: March 06, 2012, 08:29:11 pm »
Sorry I didn't reply before, I didn't get an email for some reason.

As for names, I prefer colors for some reason lol. I have a sort of VM I'm writing called Red, and I was thinking about changing my .NET language to Blue. I also think things dealing physics have cool names, like quasars and novas.

Now for bytecode, do you mean actual Java bytecode, or your own implementation of it?

Offline Ki1o

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 119
  • Rating: +5/-2
  • Doing my best...
    • View Profile
Re: A New Programming Language
« Reply #20 on: March 06, 2012, 08:36:33 pm »
Java bytecode.

Offline BlakPilar

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 734
  • Rating: +44/-1
    • View Profile
Re: A New Programming Language
« Reply #21 on: March 06, 2012, 08:37:49 pm »
So literally the same byte structure as a .class file?

Offline williamvanr

  • LV0 Newcomer (Next: 5)
  • Posts: 3
  • Rating: +0/-0
    • View Profile
Re: A New Programming Language
« Reply #22 on: March 06, 2012, 08:43:14 pm »
@BlakPilar Yes, the bytecode structure of a .class file following the Oracle JVM spec: http://docs.oracle.com/javase/specs/

Offline BlakPilar

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 734
  • Rating: +44/-1
    • View Profile
Re: A New Programming Language
« Reply #23 on: March 06, 2012, 08:55:13 pm »
So essentially programs written in your language will be able to be run on any computer with a Java VM on it. Very nice. Are you going to support classes, enums, methods, etc.?

Offline williamvanr

  • LV0 Newcomer (Next: 5)
  • Posts: 3
  • Rating: +0/-0
    • View Profile
Re: A New Programming Language
« Reply #24 on: March 06, 2012, 09:04:20 pm »
Yes, it will be able to run on any computer with a JVM. We are still learning, so we are going to start with basic features such as input, output, variables, and arithmetic. We will later add support for functions, if/else if/else statements, loops, arrays, and eventually classes and objects.

Offline Ki1o

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 119
  • Rating: +5/-2
  • Doing my best...
    • View Profile
Re: A New Programming Language
« Reply #25 on: March 06, 2012, 09:09:50 pm »
Yes, right now we are studying the JVM specs so we can interpret and compile the instrctions.