9 Replies - 1170 Views - Last Post: 22 September 2011 - 03:01 PM Rate Topic: -----

#1 Laycay27  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 27-August 11

I'm trying to make a simple programing language

Posted 27 August 2011 - 07:45 PM

I need help :helpsmilie: but not too much :rolleyes: . I'll add new posts with updates. I have no code but I got an idea. Any help would be good. I'm still a beginner so keep that in mind. Also I'll post a textbox-to-integer(.FromString) code :turned: and other useful codes. :turned:

so :rockon:

Is This A Good Question/Topic? 0
  • +

Replies To: I'm trying to make a simple programing language

#2 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10649
  • View blog
  • Posts: 39,548
  • Joined: 27-December 08

Re: I'm trying to make a simple programing language

Posted 27 August 2011 - 07:47 PM

I highly recommend checking out some resources on natural languages. Be familiar with parsers, grammars, and trees at the very least. This isn't a beginner-level topic, and I would strongly advocate for gaining more experience (much more) before delving headfirst into this topic. You'll probably find yourself biting off too much. I don't mean to be discouraging, but I want to be realistic about it.
Was This Post Helpful? 3
  • +
  • -

#3 Laycay27  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 27-August 11

Re: I'm trying to make a simple programing language

Posted 28 August 2011 - 08:13 AM

I am still working on it but does anyone know how classes can comunicate?(in vb.net 2010 express) That would help alot.
Was This Post Helpful? 0
  • +
  • -

#4 Laycay27  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 27-August 11

Re: I'm trying to make a simple programing language

Posted 28 August 2011 - 08:48 AM

View PostLaycay27, on 28 August 2011 - 08:13 AM, said:

I am still working on it but does anyone know how classes can comunicate?(in vb.net 2010 express) That would help alot.

Here is the .FromString/text-to-integer:(I'm still working on it so theres glitches)
   Dim txt1 As Integer
    Private Sub TextBox1_Keyup(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.KeyUp
        If TextBox1.Text <> "" Then
            If txt1.ToString <> TextBox1.Text Then
                Do While txt1 < 100 And txt1.ToString <> TextBox1.Text
                    txt1 = txt1 + 1
                    Label1.Text = txt1.ToString
                Loop
                If txt1.ToString <> TextBox1.Text Then
                    Do While txt1 > 0 And txt1.ToString <> TextBox1.Text
                        txt1 = txt1 - 1
                        Label1.Text = txt1.ToString
                    Loop
                    If txt1.ToString <> TextBox1.Text Then
                        MsgBox("Error")
                    End If
                    Label1.Text = txt1.ToString
                End If
            End If
        End If
        Label1.Text = txt1.ToString
    End Sub

I couldn't get the only number keys thing to work so if you press a letter MsgBox("Error") appears. It works otherwise. :) :) :) ^^
Was This Post Helpful? 0
  • +
  • -

#5 Laycay27  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 27-August 11

Re: I'm trying to make a simple programing language

Posted 29 August 2011 - 08:09 PM

View PostLaycay27, on 28 August 2011 - 08:13 AM, said:

I am still working on it but does anyone know how classes can comunicate?(in vb.net 2010 express) That would help alot.

I've gotten a little more good at it but siriosly does anyone know how classes can comunicate?

This post has been edited by Laycay27: 29 August 2011 - 08:09 PM

Was This Post Helpful? 0
  • +
  • -

#6 CodingSup3rnatur@l-360  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 992
  • View blog
  • Posts: 972
  • Joined: 30-September 10

Re: I'm trying to make a simple programing language

Posted 30 August 2011 - 12:50 AM

Classes communicate in two ways:

1) Methods - One class calls the method on another class (passing in any input data), and the method in returns data to the calling class.

2) Events - One class raises an event (placing any data it wants to communicate in the event arguments), another subscribes to the event and handles it; accessing any event argument data it needs.

This post has been edited by CodingSup3rnatur@l-360: 30 August 2011 - 12:53 AM

Was This Post Helpful? 2
  • +
  • -

#7 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10649
  • View blog
  • Posts: 39,548
  • Joined: 27-December 08

Re: I'm trying to make a simple programing language

Posted 31 August 2011 - 06:35 PM

AdamSpeight2008 also has a tutorial on OOP you may find helpful.
Was This Post Helpful? 0
  • +
  • -

#8 Laycay27  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 27-August 11

Re: I'm trying to make a simple programing language

Posted 11 September 2011 - 06:14 AM

Oopps! I forgot that they made ".fromstring" already. Now I'm going to come up with some actaully useful code! :)
Was This Post Helpful? 0
  • +
  • -

#9 TehNetJob  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 12-September 11

Re: I'm trying to make a simple programing language

Posted 12 September 2011 - 05:39 PM

Okay, I get what you want to do, but why? There is already plenty of programming languages out there. Why do we need another one? Also, you really can't write a programming language in VB.NET. Learn native C and Assembly, then see if you really want to do it.

(Good luck on learning assembly, its damn crazy)

Also, it's going to take years for one person to make a programming language. It would probably take a year or two to make a programming language with a whole team. It's not a simple thing, you know. It's like making your own operating system.
Was This Post Helpful? 0
  • +
  • -

#10 Laycay27  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 27-August 11

Re: I'm trying to make a simple programing language

Posted 22 September 2011 - 03:01 PM

I know! I'm callenging myself! who cares if theres a million programing lanauges out there!
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1