View Full Version : FaabScript. A Programming Language Created in Java.
Faab234
June 23rd, 2010, 14:00
I'm Trying to learn Something.
Fenway`
June 23rd, 2010, 14:19
now download now :s
Faab234
June 23rd, 2010, 14:32
now download now :s
Huh, "Downloads:" Means Downloads of the beta version.
Edit; Sorry, I mean "No Downloads now".
samuraiblood2
June 23rd, 2010, 15:17
Why would anyone use this with all the JSR 223 compliant languages? Not only that, but your probably just parsing each line as its being read, which is very inefficient.
Only the registered members can see the link.
Faab234
June 23rd, 2010, 15:38
Why would anyone use this with all the JSR 223 compliant languages? Not only that, but your probably just parsing each line as its being read, which is very inefficient.
Only the registered members can see the link.
This is just for the fun.
@ Thread:
Released Version 1.0.0
The Soul
June 23rd, 2010, 15:41
So your "programming language" has its own interpreter?
Faab234
June 23rd, 2010, 15:50
Please don't flame, this project is only because i want to learn somethings, not to get money or reputation.
So your "programming language" has its own interpreter?
Nah, It's a Script Engine, You can create Scripts with it.
Mish
June 23rd, 2010, 15:52
Haha epic, good name also ;)
Faab234
June 23rd, 2010, 16:13
Working on Version 1.0.1.
samuraiblood2
June 23rd, 2010, 17:01
People, It's a Script Engine.
Don't make up terms on your own.
Faab234
June 23rd, 2010, 18:01
Don't make up terms on your own.
Sorry?
samuraiblood2
June 23rd, 2010, 18:08
Sorry?
You made your own term, but your really doing one of a few things. One being interpreting the script during runtime, and another being compiling the scripts and parsing the compiled copies. Obviously there are others but the above are probably what your doing.
Faab234
June 23rd, 2010, 18:14
You made your own term, but your really doing one of a few things. One being interpreting the script during runtime, and another being compiling the scripts and parsing the compiled copies. Obviously there are others but the above are probably what your doing.
No, It's already used by a other guy.
Edit; Working on Socket.
Superaust
June 23rd, 2010, 18:55
You made your own term, but your really doing one of a few things. One being interpreting the script during runtime, and another being compiling the scripts and parsing the compiled copies. Obviously there are others but the above are probably what your doing.
He obviously doesn't care what you think so just leave him alone.
@topic
Nice project faab :) I don't see the purpose but of-course you just said its for fun lol.
Faab234
June 23rd, 2010, 19:06
He obviously doesn't care what you think so just leave him alone.
@topic
Nice project faab :) I don't see the purpose but of-course you just said its for fun lol.
Thanks, Yes, I wan't to learn more.
The Soul
June 23rd, 2010, 19:12
No, It's already used by a other guy.
Edit; Working on Socket.
What? That made no sense...
Canownueasy`
June 23rd, 2010, 19:13
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: Only the registered members can see the link.
// Decompiler options: packimports(3)
// Source File Name: Main.java
import java.awt.FlowLayout;
import java.io.*;
import javax.swing.JFrame;
public class Main
{
public Main()
{
}
public static void Logger(String s)
{
System.out.println(s);
}
public static void main(String args[])
{
try
{
Start(args[0]);
}
catch(Exception exception)
{
Logger("No Input File");
}
}
public static void Start(String s)
{
try
{
BufferedReader bufferedreader = new BufferedReader(new FileReader(new File((new StringBuilder()).append("").append(s).append(".fs").toString())));
String s1 = "";
String s2;
while((s2 = bufferedreader.readLine()) != null)
{
s2 = s2.replaceAll("\t", "");
if(runNextRow)
handleStatement(s2);
else
if(s2.contains("}"))
{
newIf = (new StringBuilder()).append(newIf).append(s2).toString ();
runNextRow = true;
String as[] = newIf.split("\\{");
as[0] = as[0].replaceAll(" ", "");
as[0] = as[0].replace("if(", "");
String as1[] = as[0].split("\\(");
System.out.println(as1[0]);
} else
{
newIf = (new StringBuilder()).append(newIf).append(s2).toString ();
}
}
}
catch(IOException ioexception)
{
Logger((new StringBuilder()).append("Error: ").append(ioexception).toString());
}
}
public static void handleStatement(String s)
{
String as[] = s.split("\"");
String as1[] = s.split("'");
if(s.startsWith("Write"))
Logger(as[1]);
if(s.startsWith("Exit"))
System.exit(Integer.parseInt(as1[1]));
if(s.startsWith("Frame.New"))
JFrame.setLayout(new FlowLayout());
if(s.startsWith("Frame.CloseOperation"))
if(as1[1].equals("DO_NOTHING_ON_CLOSE"))
JFrame.setDefaultCloseOperation(0);
else
if(as1[1].equals("EXIT_ON_CLOSE"))
{
JFrame jframe = JFrame;
JFrame.setDefaultCloseOperation(3);
}
if(s.startsWith("Frame.LookAndFeelDecorated"))
{
JFrame jframe1 = JFrame;
javax.swing.JFrame.setDefaultLookAndFeelDecorated( Boolean.parseBoolean(as1[1]));
}
if(s.startsWith("Frame.setVisible"))
{
JFrame.setLayout(new FlowLayout());
JFrame.setVisible(Boolean.parseBoolean(as1[1]));
}
if(s.startsWith("Frame.setTitle"))
JFrame.setTitle(as[1]);
if(s.startsWith("Frame.setSize"))
{
as1[1] = as1[1].replaceAll(" ", "");
String as2[] = as1[1].split(",");
as1[2] = as1[2].replaceAll(" ", "");
as1 = as1[2].split(",");
JFrame.setSize(Integer.valueOf(as2[0]).intValue(), Integer.valueOf(as2[1]).intValue());
}
if(s.startsWith("Frame.setLocation"))
{
as1[1] = as1[1].replaceAll(" ", "");
String as3[] = as1[1].split(",");
as1[2] = as1[2].replaceAll(" ", "");
as1 = as1[2].split(",");
JFrame.setLocation(Integer.valueOf(as3[0]).intValue(), Integer.valueOf(as3[1]).intValue());
}
if(s.startsWith("if"))
{
runNextRow = false;
newIf = s;
}
}
public static JFrame JFrame = new JFrame();
static boolean runNextRow = true;
static String newIf = "";
}
Sucks.
samuraiblood2
June 23rd, 2010, 19:22
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: Only the registered members can see the link.
// Decompiler options: packimports(3)
// Source File Name: Main.java
import java.awt.FlowLayout;
import java.io.*;
import javax.swing.JFrame;
public class Main
{
public Main()
{
}
public static void Logger(String s)
{
System.out.println(s);
}
public static void main(String args[])
{
try
{
Start(args[0]);
}
catch(Exception exception)
{
Logger("No Input File");
}
}
public static void Start(String s)
{
try
{
BufferedReader bufferedreader = new BufferedReader(new FileReader(new File((new StringBuilder()).append("").append(s).append(".fs").toString())));
String s1 = "";
String s2;
while((s2 = bufferedreader.readLine()) != null)
{
s2 = s2.replaceAll("\t", "");
if(runNextRow)
handleStatement(s2);
else
if(s2.contains("}"))
{
newIf = (new StringBuilder()).append(newIf).append(s2).toString ();
runNextRow = true;
String as[] = newIf.split("\\{");
as[0] = as[0].replaceAll(" ", "");
as[0] = as[0].replace("if(", "");
String as1[] = as[0].split("\\(");
System.out.println(as1[0]);
} else
{
newIf = (new StringBuilder()).append(newIf).append(s2).toString ();
}
}
}
catch(IOException ioexception)
{
Logger((new StringBuilder()).append("Error: ").append(ioexception).toString());
}
}
public static void handleStatement(String s)
{
String as[] = s.split("\"");
String as1[] = s.split("'");
if(s.startsWith("Write"))
Logger(as[1]);
if(s.startsWith("Exit"))
System.exit(Integer.parseInt(as1[1]));
if(s.startsWith("Frame.New"))
JFrame.setLayout(new FlowLayout());
if(s.startsWith("Frame.CloseOperation"))
if(as1[1].equals("DO_NOTHING_ON_CLOSE"))
JFrame.setDefaultCloseOperation(0);
else
if(as1[1].equals("EXIT_ON_CLOSE"))
{
JFrame jframe = JFrame;
JFrame.setDefaultCloseOperation(3);
}
if(s.startsWith("Frame.LookAndFeelDecorated"))
{
JFrame jframe1 = JFrame;
javax.swing.JFrame.setDefaultLookAndFeelDecorated( Boolean.parseBoolean(as1[1]));
}
if(s.startsWith("Frame.setVisible"))
{
JFrame.setLayout(new FlowLayout());
JFrame.setVisible(Boolean.parseBoolean(as1[1]));
}
if(s.startsWith("Frame.setTitle"))
JFrame.setTitle(as[1]);
if(s.startsWith("Frame.setSize"))
{
as1[1] = as1[1].replaceAll(" ", "");
String as2[] = as1[1].split(",");
as1[2] = as1[2].replaceAll(" ", "");
as1 = as1[2].split(",");
JFrame.setSize(Integer.valueOf(as2[0]).intValue(), Integer.valueOf(as2[1]).intValue());
}
if(s.startsWith("Frame.setLocation"))
{
as1[1] = as1[1].replaceAll(" ", "");
String as3[] = as1[1].split(",");
as1[2] = as1[2].replaceAll(" ", "");
as1 = as1[2].split(",");
JFrame.setLocation(Integer.valueOf(as3[0]).intValue(), Integer.valueOf(as3[1]).intValue());
}
if(s.startsWith("if"))
{
runNextRow = false;
newIf = s;
}
}
public static JFrame JFrame = new JFrame();
static boolean runNextRow = true;
static String newIf = "";
}
Sucks.
What the fuck is that? Don't tell me that's this script thing.
Pie`
June 23rd, 2010, 20:06
Excuse the language here but;
ARE YOU FUCKIN' SERIOUS????
public static void handleStatement(String s)
{
String as[] = s.split("\"");
String as1[] = s.split("'");
if(s.startsWith("Write"))
{
Logger(as[1]);
}
if(s.startsWith("Exit"))
{
System.exit(Integer.parseInt(as1[1]));
}
if(s.startsWith("Frame.New"))
{
JFrame.setLayout(new FlowLayout());
}
if(s.startsWith("Frame.CloseOperation"))
{
if(as1[1].equals("DO_NOTHING_ON_CLOSE"))
{
JFrame.setDefaultCloseOperation(0);
} else
if(as1[1].equals("EXIT_ON_CLOSE"))
{
JFrame jframe = JFrame;
JFrame.setDefaultCloseOperation(3);
}
}
if(s.startsWith("Frame.LookAndFeelDecorated"))
{
JFrame jframe1 = JFrame;
javax.swing.JFrame.setDefaultLookAndFeelDecorated( Boolean.parseBoolean(as1[1]));
}
if(s.startsWith("Frame.setVisible"))
{
JFrame.setLayout(new FlowLayout());
JFrame.setVisible(Boolean.parseBoolean(as1[1]));
}
if(s.startsWith("Frame.setTitle"))
{
JFrame.setTitle(as[1]);
}
if(s.startsWith("Frame.setSize"))
{
as1[1] = as1[1].replaceAll(" ", "");
String as2[] = as1[1].split(",");
as1[2] = as1[2].replaceAll(" ", "");
as1 = as1[2].split(",");
JFrame.setSize(Integer.valueOf(as2[0]).intValue(), Integer.valueOf(as2[1]).intValue());
}
if(s.startsWith("Frame.setLocation"))
{
as1[1] = as1[1].replaceAll(" ", "");
String as3[] = as1[1].split(",");
as1[2] = as1[2].replaceAll(" ", "");
as1 = as1[2].split(",");
JFrame.setLocation(Integer.valueOf(as3[0]).intValue(), Integer.valueOf(as3[1]).intValue());
}
if(s.startsWith("if"))
{
runNextRow = false;
newIf = s;
}
}
Anthony`
June 23rd, 2010, 20:08
Ouchhhh.
Thats a lot of String objects..
Shaft
June 23rd, 2010, 20:25
good luck Faab234 all the best.
Canownueasy`
June 23rd, 2010, 21:19
What the fuck is that? Don't tell me that's this script thing.
It is rofl
cboy676
June 23rd, 2010, 21:51
Hey mayne, howd u make this comntact me @ cginbarrhaven@hotmail.com (msn/email)
Faab234
June 24th, 2010, 11:27
Please don't flame, I'm trying to learn something.
teemuzz
June 24th, 2010, 11:59
Don't make up terms on your own.
ever heard of a scripting engine faggot?
Only the registered members can see the link.
gtfo fag.
@ot good job faab,could you work on this with me?
i need a proper script system for fortrey :P
Potastic
June 24th, 2010, 13:12
Locked by request.
Powered by vBulletin® Version 4.1.9 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.