Click here to Skip to main content
15,884,425 members
Articles / Programming Languages / Java

Create Your Own Programming Language

Rate me:
Please Sign up or sign in to vote.
4.87/5 (53 votes)
21 Jan 2010CPOL12 min read 486.4K   15.4K   87  
I've created my own programming language called Alef++ for fun, and for better understanding: What is a programing language? How does it work? Can I can create my own?
/**
 * The Code Project Open License (CPOL) 1.02
 * 		see : http://www.codeproject.com/info/cpol10.aspx
 * 
 * Author	: Adrabi Abderrahim
 * Mail		: adrabi[at]gmail[dot]com
 * Year		: 2009
 * Discrip	: this code a part of "Create Your Own Programming Language, just game ?" 
 * 			  and code using is from Alef++ project
 * 			  https://sourceforge.net/projects/alefpp/
 */

package st4tic.core;

/**
 * Class base for St4tic language variables
 * 
 * @author Adrabi Abderrahim
 *
 */
public class St4ticVariable extends St4ticObject {

	private String variableName = null;
	private St4ticValue	variableValue = null;
	
	/**
	 * Get a variable name
	 * @return String
	 */
	public String getVariableName() {
		return variableName;
	}
	
	/**
	 * Set a name for variable
	 * @param variableName
	 */
	public void setVariableName(String variableName) {
		this.variableName = variableName;
	}
	
	/**
	 * Get a variable value
	 * @return St4ticValue
	 */
	public St4ticValue getVariableValue() {
		return variableValue;
	}
	
	/**
	 * Set a value to variable
	 * @param variableValue
	 */
	public void setVariableValue(St4ticValue variableValue) {
		this.variableValue = variableValue;
	}
	
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Technical Lead
Morocco Morocco
Adrabi!, Just another Ghost in the Shell =)

Comments and Discussions