10 Replies - 617 Views - Last Post: 09 December 2011 - 02:11 AM

#1 CreaturGames  Icon User is offline

  • D.I.C Regular

Reputation: 30
  • View blog
  • Posts: 290
  • Joined: 29-December 09

PUL - Programming Utility Langauge

Posted 27 November 2011 - 05:44 PM

After researching programming langauges and reading a lot of books, and I mean tons of them, I decided to develop something similar to a programming language. It is what I call PUL, or the Programming Utility Language. Here is a snapshot of the GUI. It isn't much, but it is consistent with what I want.

Posted Image

Pretty much, there are a set of functions, or methods, to choose from and you can create programs that can fulfill the daily tasks you want to perform on your computer. For example, if you wanted to change the settings of your server every day to make sure everything runs smooth, and you don't want to deal with changing the settings manually, PUL can be run in the background and change the settings without you even noticing.
There is the window of the application and there is the console. The console is meant for inputing values for the readInput method, and such.

These are the types of symbols that will be valuable during using this program:

d% - This gets the input value from the readInput method.

n% - This makes a new line in the text.

So far, this is still in the development and needs a lot of work, but I want some advice on what I should add.
Suggestions and bug posts are wanted, so I can fix them.

Here is the download: http://pul.codeplex....ases/view/77669

Is This A Good Question/Topic? 1
  • +

Replies To: PUL - Programming Utility Langauge

#2 CreaturGames  Icon User is offline

  • D.I.C Regular

Reputation: 30
  • View blog
  • Posts: 290
  • Joined: 29-December 09

Re: PUL - Programming Utility Langauge

Posted 28 November 2011 - 03:51 PM

Well, I need testers. :(
Was This Post Helpful? 0
  • +
  • -

#3 CreaturGames  Icon User is offline

  • D.I.C Regular

Reputation: 30
  • View blog
  • Posts: 290
  • Joined: 29-December 09

Re: PUL - Programming Utility Langauge

Posted 29 November 2011 - 04:37 PM

Please, someone give their thoughts about this. I am still working on this, but it is stable enough to be tested.
Was This Post Helpful? 0
  • +
  • -

#4 Amrykid  Icon User is offline

  • 4+1=Moo
  • member icon

Reputation: 148
  • View blog
  • Posts: 1,589
  • Joined: 16-December 08

Re: PUL - Programming Utility Langauge

Posted 29 November 2011 - 07:11 PM

Sorry, don't visit D.I.C. much anymore.

If you're really interested in creating programming/scripting languages, you need to invest in building a lexer(scanner)/parser combo. It can either be hand built or auto-generated from grammar. May I suggest TinyPG which generates VB or C# code for parsing your custom language.

Then, you should invest time in studying the DLR (Dynamic Language Runtime) which allows dynamic languages to run on top of the CLR, the core of .NET.

At this time, I am working on Mizu Concept 3 which runs on the DLR and is going nicely. If you are still working on this project, I wish you good luck and maybe later this week, I will test your project.
Was This Post Helpful? 1
  • +
  • -

#5 AdamSpeight2008  Icon User is offline

  • MrCupOfT
  • member icon


Reputation: 2241
  • View blog
  • Posts: 9,412
  • Joined: 29-May 08

Re: PUL - Programming Utility Langauge

Posted 29 November 2011 - 09:04 PM

May be because the lack of a primer to the language?
Wouldn't it be helpful to post / create a description of the grammar of your language?

Here are the keywords, and how to use them.
Was This Post Helpful? 2
  • +
  • -

#6 CreaturGames  Icon User is offline

  • D.I.C Regular

Reputation: 30
  • View blog
  • Posts: 290
  • Joined: 29-December 09

Re: PUL - Programming Utility Langauge

Posted 29 November 2011 - 09:17 PM

Well, thank you for the advice. I guess I got ahead of my self.
I am working on more syntax right now. An update shall be coming here soon. I am still learning on how programming languages are built, so I am currently in progress of learning the full potential.

Also, thank you for the replys.
Was This Post Helpful? 0
  • +
  • -

#7 CreaturGames  Icon User is offline

  • D.I.C Regular

Reputation: 30
  • View blog
  • Posts: 290
  • Joined: 29-December 09

Re: PUL - Programming Utility Langauge

Posted 01 December 2011 - 03:53 PM

I cannot, for some reason, find the edit button, but could a moderator please combine this post with the above one?

Anyways, my language is basically a DLR. My language basically uses the C# compiler to build the actual executable, and soon I am going to add an add-on to it that makes it a stand-alone. Also, there is another update to the language coming.

Here are the new features of the new update:

  • A new debug button
  • A new printVar function
  • A new deleteFile function
  • Ability to define integers/strings and change them(you change them using $ varname = number, no semicolon needed)
  • A new while loop
  • New if/then/else statements


More coming, and I will be releasing the update here soon, being more of a fix than an update.
Was This Post Helpful? 0
  • +
  • -

#8 CreaturGames  Icon User is offline

  • D.I.C Regular

Reputation: 30
  • View blog
  • Posts: 290
  • Joined: 29-December 09

Re: PUL - Programming Utility Langauge

Posted 03 December 2011 - 11:21 PM

There is a new update I just released.

Posted Image

Here are the changes and fixes I made:

  • A better GUI(of course)
  • More syntax added to the parser
  • The code is compiled into an EXE(I will be adding a feature to make stand-alone EXEs if there are more than one file(s) you need to add to the application)
  • Syntax highlighting
  • Documentation(on the website): http://pul.codeplex.com/


Here is the things-to-do list:

  • Add ability to compile more than one file
  • Ability to add files to the project
  • Ability to compile DLLs(may take a while, or not)
  • Ability to define your own methods(syntax wise)
  • An actual error(s) window(for debug purposes)
  • Ability to convert code into PUL
  • Ability to open new tabs for new projects
  • Ability to detect variable changes during run-time


Here are the things I need to fix:

  • Exceptions with parsing(they only happen sometimes, but are very rare)
  • The command window


That is, so far, my progress on PUL. To download the latest release, go to here. To see the documentation, go here. Also, post bugs here and on the CodePlex website, just in case I am accessing one at different times.

This post has been edited by CreaturGames: 03 December 2011 - 11:22 PM

Was This Post Helpful? 1
  • +
  • -

#9 Amrykid  Icon User is offline

  • 4+1=Moo
  • member icon

Reputation: 148
  • View blog
  • Posts: 1,589
  • Joined: 16-December 08

Re: PUL - Programming Utility Langauge

Posted 04 December 2011 - 07:51 AM

Heh, if you want, heres the DLR. http://dlr.codeplex.com

IronPython and IronRuby are based on it (if you plan on interfacing directly with .NET stuff, I recommend it.)

Now, to your IDE. Does it offer debugging of some sort?
Was This Post Helpful? 0
  • +
  • -

#10 CreaturGames  Icon User is offline

  • D.I.C Regular

Reputation: 30
  • View blog
  • Posts: 290
  • Joined: 29-December 09

Re: PUL - Programming Utility Langauge

Posted 04 December 2011 - 04:32 PM

View PostAmrykid, on 04 December 2011 - 07:51 AM, said:

Heh, if you want, heres the DLR. http://dlr.codeplex.com

IronPython and IronRuby are based on it (if you plan on interfacing directly with .NET stuff, I recommend it.)

Now, to your IDE. Does it offer debugging of some sort?

You can compile your code by clicking on the green arrow or going to Compile | Debug.

Also, thank you for the link. It looks great, but I have already established an engine already, so I will stick with the engine.

EDIT: Also, here is an example of a Simple Calculator:

//////////////////////////////////////////////////////////////////////////////////
//
//
//       Author: Gregg Shaffter
//       Tutorial: Simple Calculator
//       Description: This is showing how to make a simple calculator in PUL.
//
//
//
//////////////////////////////////////////////////////////////////////////////////

//Define the variables
int cases = 1
int num1 = 0
int num2 = 0
int sum = 0
string type = ""
print "Enter_a_number:_";

while cases == 1
{
$#> num1 = 0
$#> num2 = 0
$#> sum = 0
//Begine the program, get inputs
$#> num1 = d%
print "Enter_a_number:_";
$#> num2 = d%
//Get the sumQ
print "What_operation:_";
$-> type = d%
if type == "*"
{
//Show the sum
print "The_sum_is:_";
$#> sum = num1*num2
printVar sum;
}
else if type == "+"
{
//Show the sum
print "The_sum_is:_";
$#> sum = num1+num2
printVar sum;
readInput;
exit;
}
}

This post has been edited by CreaturGames: 04 December 2011 - 07:34 PM

Was This Post Helpful? 0
  • +
  • -

#11 CreaturGames  Icon User is offline

  • D.I.C Regular

Reputation: 30
  • View blog
  • Posts: 290
  • Joined: 29-December 09

Re: PUL - Programming Utility Langauge

Posted 09 December 2011 - 02:11 AM

Is anybody going to test my language?

Sorry for not updating for a long time. I have had work to do, and it takes up all my free time, but I will have an update shortly.

One thing I forgot to mention. When debugging, it will debug in the console emulator first, where in order to put input, you use the console that appears. After that, it will debug the actual application.

This post has been edited by CreaturGames: 09 December 2011 - 02:20 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1