Author Topic: The dawn of a new OOPL  (Read 23256 times)

0 Members and 1 Guest are viewing this topic.

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: The dawn of a new OOPL
« Reply #45 on: August 17, 2011, 07:23:11 pm »
It would make it so that 2 threads couldn't access the same resource at the same time, as that would mean that each thread could have the possibility of accessing some part of the object while the other thread is changing that part. That would be BAD.

EDIT: Btw, I am almost done with an awesome Command Line Parser (CmdLineParser is the actual class name). It's highly customizable and supports flags, options, and args. After that, I'll come up with something else to work on.
« Last Edit: August 17, 2011, 07:26:04 pm by Binder News »
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results:





Offline BlakPilar

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 734
  • Rating: +44/-1
    • View Profile
Re: The dawn of a new OOPL
« Reply #46 on: August 17, 2011, 07:55:45 pm »
Do we need a sync, or can we just implement that at compile time?
« Last Edit: August 17, 2011, 07:55:55 pm by BlakPilar »

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: The dawn of a new OOPL
« Reply #47 on: August 17, 2011, 08:08:43 pm »
It's basically the same thing as C#'s lock keyword.
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results:





Offline BlakPilar

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 734
  • Rating: +44/-1
    • View Profile
Re: The dawn of a new OOPL
« Reply #48 on: August 17, 2011, 08:20:57 pm »
Alright, sure, if it'll help.
« Last Edit: August 17, 2011, 08:21:56 pm by BlakPilar »

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: The dawn of a new OOPL
« Reply #49 on: August 17, 2011, 10:59:54 pm »
Status update:
The command line parser is DONE!
I am working on a tokenizer.
Also working on a regex handler.
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results:





Offline BlakPilar

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 734
  • Rating: +44/-1
    • View Profile
Re: The dawn of a new OOPL
« Reply #50 on: August 18, 2011, 07:12:53 am »
EDIT: Nvm, I'm thinking of a scanner ;D
« Last Edit: August 18, 2011, 07:26:04 am by BlakPilar »

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: The dawn of a new OOPL
« Reply #51 on: August 18, 2011, 08:52:34 am »
What? So I shouldn't do the regex handler? Or the Tokenizer? Or both?
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results:





Offline BlakPilar

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 734
  • Rating: +44/-1
    • View Profile
Re: The dawn of a new OOPL
« Reply #52 on: August 18, 2011, 09:13:19 am »
No, you can keep them, I was just thinking of something completely different. So the command line parser is kind of like what Python does?

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: The dawn of a new OOPL
« Reply #53 on: August 18, 2011, 09:16:15 am »
I don't know. But this allows you to set up a bunch of possible flags, options(flags with values), and the number of params allowed. Then give it the array of strings you receive as the only arg to the Main() method. It will parse them, and you can query it for stuff lie to see if a certain flag was passed on the command line.
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results:





Offline BlakPilar

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 734
  • Rating: +44/-1
    • View Profile
Re: The dawn of a new OOPL
« Reply #54 on: August 18, 2011, 09:21:18 am »
Oooohh, okay. Nifty! :D

Anyway, the way I learned/understand it, a compiler has four main parts: the AST, the scanner, the parser, and the code generator. The code generator will take the longest, but should be fairly easy if we break it down into separate classes (which I plan to do). I've gotten the scanner and AST done as far as the language goes (by that I mean "the completeness of the language"), and the parser can parse expressions and I'll be working on the statements part today. Then we only need to make the code generator :D
« Last Edit: August 18, 2011, 09:21:42 am by BlakPilar »

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: The dawn of a new OOPL
« Reply #55 on: August 18, 2011, 09:25:14 am »
Okey dokey. What does AST stand for anyways?
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results:





Offline Scipi

  • Omni Kitten Meow~ =^ω^=
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1547
  • Rating: +192/-3
  • Meow :3
    • View Profile
    • ScipiSoftware
Re: The dawn of a new OOPL
« Reply #56 on: August 18, 2011, 09:36:14 am »
So what is the ETA of when the first iteration of this language going to be finished? Or is it still too early to tell?

Imma Cat! =^_^= :3 (It's an emoticon now!)
Spoiler For Things I find interesting:
Spoiler For AI Programming:
Spoiler For Shameless advertising:

Spoiler For OldSig:





Spoiler For IMPORTANT NEWS!:
Late last night, Quebec was invaded by a group calling themselves, "Omnimaga". Not much is known about these mysterious people except that they all carried calculators of some kind and they all seemed to converge on one house in particular. Experts estimate that the combined power of their fabled calculators is greater than all the worlds super computers put together. The group seems to be holding out in the home of a certain DJ_O, who the Omnimagians claim to be their founder. Such power has put the world at a standstill with everyone waiting to see what the Omnimagians will do...

Wait... This just in, the Omnimagians have sent the UN a list of demands that must be met or else the world will be "submitted to the wrath of Netham45's Lobster Army". Such demands include >9001 crates of peanuts, sacrificial blue lobsters, and a wide assortment of cherry flavored items. With such computing power stored in the hands of such people, we can only hope these demands are met.

In the wake of these events, we can only ask, Why? Why do these people make these demands, what caused them to gather, and what are their future plans...

Offline BlakPilar

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 734
  • Rating: +44/-1
    • View Profile
Re: The dawn of a new OOPL
« Reply #57 on: August 18, 2011, 10:01:08 am »
@Binder, it stands for "Abstract Syntax Tree", which is why in my sig I say that it's progress is the same as the syntax's.

@HOMER, um... Well... I'll say that the first version will be out by Christmas at the latest (sound good, Binder?). Though, I'm not sure how many controls it will be able to support on first release. Labels, textboxes, and buttons at least.

EDIT: Also, Binder, I have a little UI for the console because I got bored last night and I was too tired to work on the scanner. I'll send you the project so far.
« Last Edit: August 18, 2011, 10:02:35 am by BlakPilar »

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: The dawn of a new OOPL
« Reply #58 on: August 18, 2011, 11:02:09 am »
Agreed. First version out by Christmas at the LATEST. I'm really thinking more like 2 months if we keep it up at this rate.
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results:





Offline BlakPilar

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 734
  • Rating: +44/-1
    • View Profile
Re: The dawn of a new OOPL
« Reply #59 on: August 18, 2011, 12:13:19 pm »
Agreed. First version out by Christmas at the LATEST. I'm really thinking more like 2 months if we keep it up at this rate.
Yay :) and yeah, we're doing pretty good so far progress wise.