Making A Programming Language With Efficiency And Success

Jun 7
08:29

2013

Roberta Barrow

Roberta Barrow

  • Share this article on Facebook
  • Share this article on Twitter
  • Share this article on Linkedin

The process of making a programming language could be taxing and difficult. However, learn of the steps in efficiently making it so you will not be taken over by your overwhelming thoughts.

mediaimage
Making a programming language might seem too overwhelming to some people. This is to be expected because a programming language obviously requires some technical knowledge and skills. Nonetheless,Making A Programming Language With Efficiency And Success Articles there are ways to make the process easier.  Familiarize Yourself With The TerminologyTerms and words used in this field are not that simple and common. In fact, hearing these words for the first time would make it seem like the language is from another world or dimension.  To become a successful programmer, you need to get to know what words and terms are used often. Educate yourself by reading about compilers. You have to learn everything needed to be known before you even make a single step in the language creation.Know The Problem Your Language Is Supposed To SolveThis means that you have to find out or settle on the purpose of your project.  A programming language could be made for a variety of purposes.  It could be to solve specific domain issues or it could also be to handle other general program issues.  Decide On The SemanticsYour next step is to decide about the concepts of your language's semantics.  You have to decide whether or not pointer direct access is allowed. Whether your work will be a dynamic or static type of program must also be decided upon.  In terms of memory model, you must settle on using manual memory or a garbage collector type of management. Handling concurrency is also another semantic concept you must decide on.  You could use simple threading and locking or you could also decide to use other complex models.  Choose whether the primitive functions will originate from a library or otherwise be embedded into the language. The standard or archetype of the program must also be settled on; if it will be object-oriented, functional, aspect-oriented, template-oriented or a prototype.  The interface between your work and other languages or existing library must also be known if you are creating a domain-specific program.  Consider What Other People Would Want With Your WorkThink about certain tasks that another person might think when he/she wants to use the program.  Perhaps, that user would want to use it in directing a robot to follow a particular line.  He/she could also wish to incorporate some convenient desktop programs in your work or probably make web applications using it.  Try Different SyntaxesSyntax refers to the text of your language.  You need to try various ideas so you can find what will be best to use.  You must ensure that your work will be within the category of a context-free language.  Afterward, write down the grammar for your chosen syntax.Decide If It Will Be Compiled Or InterpretedIf you decide that it will be compiled, it means that the user will compile the program after he has edited it and then save the executable program to be run somewhere.  If it will be interpreted, the user will first edit it and then directly run it using the interpreter.  Think about how the interpreter/compiler will give warnings to the user about errors; as well as how he will be able to debug it.Write The Program's ExecutorThe executor or a code generator will be for binding all of the components together.  Test The LanguageVarious test programs are required to ensure that your work is functioning well.  Once everything is ironed out, you could already publish your program.

Article "tagged" as:

Categories: