Language based on Java?

I am completely new to this, and the is the most relevant forum I could find...
Anyway, I am interested in writing a new language based on Java. Basically, it will just be a different programming paradigm than OOP, but be Java.
Therefore, I would like to be able to use all of Java code AND use my own custom code syntax (for paradigm specific features).
If some people could maybe just point me in the right direction?
Thanks,
Bigologn

bigOlogN wrote:
I am completely new to this, [...]Well, if you are serious about this, it's probably advisable to study some programming language theory: http://en.wikipedia.org/wiki/Programming_language_theory
Personally, I found the book Programming Language Pragmatics (2nd ed., see: http://www.cs.rochester.edu/~scott/pragmatics/ ) very informative, and fun to read.
omcgovern wrote:
Eg. https://javacc.dev.java.net/ has a Java syntax parser. In fact, you can probably google the
syntax rules for the java language itself, and write a syntax parser of Java, in Java, then work
from there onwards.The ANTLR project might be intersting, too (see e.g.: http://blogs.sun.com/sundararajan/entry/antlrworks_and_fun_with_asts ) -- it has Java 1.5 grammar available to experiment with... Another parser generator is CUP ( http://www2.cs.tum.edu/projects/cup/ ).
Visiting Languages for the Java VM ( http://www.robert-tolksdorf.de/vmlanguages.html ) might also be worth your while. Maybe one of the precompilers there is able to help you in achieving your goals (e.g. The Java Syntactic Extender). Even if this is not the case, it can be quite entertaining (and possibly inspiring) to see what can be done (and what people have done) on top of the Java VM...
And last but not least, Sun's javac itself was GPL'ed: http://openjdk.java.net/groups/compiler/

Similar Messages

  • Are there any other languages based on the JVM?

    are there any other languages based on the java virtual machine? woud sun allow/support that? are there any projects on this from sun or other enterprises? or some openssource projects from some enthusiastic people?

    the list counts 160 languages!Ah well... looks like I was rather wrong then :-(I'm not so sure you were. When I first started with Java I expected a number of other languages to appear that would compile to Java byte code. To me it seemed an obvious way for toolmakers such as Powersoft (PowerBuilder) to get into the Java market yet still keep customers tied to their toolset but this hasn't seemed to happen.
    There may be 160 languages/tools on that page but how many are in widespread use?
    Col

  • Webdynpro Appl screens in different languages based on the browsers languag

    Hello Everybody,
    In Java Webdynpro, how to get the screen elements in different languages, based on the browser language selected.  It means.. for instance, we have the requirement to show the application in two languages, based on the language setting(language selected in the browser) of the users browsers.
    We have to read the  browser language selected and based on that value, we have to get the screens to come in that language. 
    Is that only through the Internationalisation process or is there any other way to do this.
    Please help us by posting your concerns....
    Thanks & Regards,
    Ravi
    Edited by: ravi shankar on Apr 28, 2009 6:36 AM

    Hi Ravi,
    Probably the following topics on SAP help could provide the solution you need:
    http://help.sap.com/saphelp_nw04s/helpdata/en/2d/e7381138a8d2458f1f4fac32614f71/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/EN/db/f2674039c6c549e10000000a1550b0/frameset.htm

  • How to Change the default format for differnt language both in java and SQL

    Hello,
    I am using SQL Anywhere in my application.And in my java client application user can log in with their preferred language like English,French,German,Chinese,etc....When even the user log in to the application the data from the database will be displayed with respective to the language.But when i tried to see the dates in Interactive SQL all the dates r in the format of '2008-12-5 16:44:10:673' but say for example for Chinese it will be displayed as '08-12-5 16.44.10' and for some other language it will come in some other format(which is standard format for those language).
    Mean while i am using java client.When ever i am displaying a date it will be with respective to the language using Locale and date format classes.When i am displaying the date for Chinese in GUI it will show the date as '08-12-5 下午4:44'. In summary
    1. For Chinese,the default date pattern from SQL Anywhere date base is '08-12-5 16.44.10'
    2. For the same language date using java code is displaying as '08-12-5 下午4:44'. and i am getting the time format pattern as 'ah:mm'.I tried to change the display format in regional settings but no change in display.
    Is there any way to make both the time format as same?
    Please help me to solve this issue!!!
    Thanks in Advance!
    Arun

    pon_arun wrote:
    Hello masijade,
    I did as u said but still the date display is not the same......And I'm telling you that it doesn't matter. What "format" the DB likes to display a Date in when it displays it, is completely irrelevant to how you display it in your GUI.
    A Date does not have a format. A String representation of a Date does.
    As long as you use getDate from ResultSet and setDate from PreparedStatement you do not have to worry about this. Those methods will handle dates to and from the DB themselves. You can then use SimpleDateFormat to display the Date anyway you want to.
    Just because you show the Date one way, and the DB shows it another, does not mean that it is not the same date. Don't get hung up on how the String representation of the Date looks.
    Edit: If you simply want to be able to do "Human Comparisons" then look at the SQL TO_CHAR function (for Oracle, for other DBs the function name may vary). And for Java, read the API docs for SimpleDateFormat (as already intimated above).

  • Compile other languages in a Java program

    Hi all,
    Is it possible to compile and run other programming languages in a java program?
    Thx in advanced!

    I suppose it's possible, using [url http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Runtime.html]Runtime.getRuntime().exec("gcc ... MyProg.c");

  • How to enable multi-language support in JAVA

    i want to make an application whose language will be URDU but how to enablw urdu or any non-english language characters in java.plz help.i am an SCJP.

    The partial answer is that you use fonts that can display those characters. But you may also have to address how to enter them from the keyboard, how to store them in databases, how to transmit them via HTTP... depending on your actual requirements.
    Start with the "Internationalization" tutorial that is referenced here: http://java.sun.com/docs/books/tutorial/

  • Using Decision Service for existing  rules based on Java Fact

    Hello
    According The BPEL Process Manager developers guid (10.1.3.1) page 18-28 if we want to call existing ruleset from BPEL that it's based on java facts . We should write RL function and convert xml data into java and assert the facts and after retrieving the result we should set the data from java types into xml types. From BPEL we should call this function
    But I have question : We know that rules based on java facts has better performance than xml facts , Instead of Using Decicion Service , we have writen java function and run ruleset and then we have exposed this as a webservice and invoke it from BPEL.
    What is the performance difference if we use this way instead of Decision Services?

    Thank you ralf
    So I want to write an RL Function and call my ruleset (based on my Java facts) from this RL Function and then Call this RL Function from BPEL decicion services.
    I have problem : I want to generate XSD that match with my JavaFact A . How can I easily create XSD from my java fact class.? I saw http://technology.amis.nl/blog/?p=3221 that shows how we can create xsd from Java classes . I could generate XSD from Java class A by the recommended method.
    I have Class A that contains member B as an array of objects (C) , My problem is that When I import generated xsd into rule Author it's generated JAXB class does not generate member B as an array of class(C)
    Is there any way that I can modify class A into JAXB compatible class and generate xsd file from it's JAXB class .
    I don't know JAXB specification and I do not know how JAXB works.I want easily generate JAXB class form my java class A and then retrieve corresponding xsd from it .
    Can I do such thing?

  • How to get check value in DB based on java

    hi,
    anybody know how to get check value in DB based on java?
    TQ

    This should be a custom java class containing that method.
    Try on java or jdbc forum - Java Database Connectivity (JDBC) , Java Programming

  • HTMLViewer for based on java.awt.*

    Who knows a simple implementation of a HTML viewer component (no need for complete HTML standard) based on java awt without use of Swing?
    Karl

    no - I searched some time ago but theres nothing useful for free.
    for money you get all you want!

  • Text/expression-language-based paradigma continues?

    i've been working with jsp and struts for a while. the most significant drawback of jsp, custom tags/jstl and struts is its "runtime" binding caused by the heavy use of string-attributes and interpreted expressions.
    it makes the coding itself harder (loss of compiler support and strong typing), it increases the amount of testing (automated tests, regression tests) extremely, it makes jsp-apps very hard to mantain, it is error-prone when changed or refactored, it is slower in execution and last but not james requires extra developement tools (such as struts-editors) to effectively maintain the applications.
    but i like the paradigma of a web application that keeps a view state, handles "events" etc.
    the only thing i can't understand is why jsf builds on the error-prone jsp/custom tag paradigma instead of compiled server side ui components. it obviuosly still tries to follow the myth, that web-designers and application developers can share their source (i.e. js-pages) by using tags. imo this is a degeneration of the good idea to leverage html by some custom tags. these tags empower designers to make their pages dynamic. (enterprise) software developement ist very different: complex use cases, business logic and often ui-"logic", integration issues etc...
    the life cycle of a jsp with custom tags is weird (even more in struts):
    - objects (variables in scriptlets) already existing in the scope of the jsp-execute-method are wrapped into attributes of page, request or application scope.
    - tags are defined using string-based attributs, such as <html:write name="pinky" property="brain" />
    - the implementation of the tag tries to look up the object in any of the scopes, starting with page scope
    - if the object exists, it tries to read/set its property via reflection
    so you lose strong typing, compile time checks and performance.
    there are several frameworks that do not build upon jsp and tags but put in an extra layer. this layer is similar to a rich client "form" and renders the output into html or any other format.
    so i'm not preferring any framework, just looking around and curious why this architecture has been chosen for jsf.
    thanks
    tom

    the most significant drawback of jsp, custom tags/jstl and struts is its "runtime" binding
    caused by the heavy use of string-attributes and interpreted expressions.I second this heartily.
    but i like the paradigma of a web application that keeps a view state, handles "events" etc.
    the only thing i can't understand is why jsf builds on the error-prone jsp/custom tag
    paradigma instead of compiled server side ui components. The JSF - JSP connection is a major problem. More and more developers are starting to express reservations about it, because the two technologies don't play well together. But I think you've hit on an even deeper fundamental flaw in the equation -- the evils of runtime binding. The heavy JSF/JSP reliance on runtime evaluation is a reliability nightmare. Developers choose Java, in part, because of the robustness provided by compile-time checking. We give that up when it comes to JSF/JSP or Struts web applications, and that's an unacceptable state of affairs.
    Winer says that "JSF has taken a major step in the right direction with the <managed-bean> and <referenced-bean> configuration elements. These give some hope for development tools to finally provide real code insight (and even error reporting) for EL expressions, because they define both what keys are used in the expression language and what types of objects may be at those keys." However, this will help with only the simplest EL expressions. As soon as an EL expression reaches into nested properties and maps that aren't defined in the config file, we're back to runtime binding and error reporting. The addition of generics to the language with 1.5 might have made it possible to introduce strong EL type checking at page compile time, but Sun's short-sighted type-erasure implementation of generics rules this out permanently.
    Look at what Microsoft is doing with ASP.NET. It's not perfect, but the fundamental technology is based on compiled server side ui components. There are places in that framework where you can write expressions aren't evaluated until runtime, but it's certainly not the fundamental basis of the model as it is with JSF/JSP. And the .NET implementation of generics may make it possible to have these dynamic expressions type-checked at page compile time in a future implementation of .NET.
    I keep reading comments from the JSF proponents who say things to the effect of "yes, we know JSP doesn't play well with JSF, but JSF allows you to plug in a different rendering technology." Well, we need one, and we need it urgently. ASP.NET has been out for two years now, and was far more polished and useable at its release than JSF is now after a very long development cycle.
    Rightly or wrongly, people will judge JSF on the merits of the reference implementation. And I fear that a lot of developers are going to throw up their hands after a taste of the JSF/JSP world and move to .NET.
    Stephen Schaub

  • To display chinese/japanese language Character filename - Java Programming

    In Our application supports to upload a file with name in chinese/japanese language Character. When user tries to download filedownload dialog box is appearing with the filename as junk characters.
    How to solve this issue to display the filename as uploaded.

    Have your tried googling your problem?
    I found this article: [http://www.chinesecomputing.com/programming/java.html|http://www.chinesecomputing.com/programming/java.html] That seems promising, but ofcourse I cant tell if it will work on your application without seeing a shred of code.
    Im certain there is others that has had the same problem before, and put up their solutions on the net.

  • Using a foreign language with the Java I/O, and saving to flat file.

    I want to use a foreign language in my program, in particular, russian. I want to be able to input the russian text into a GUI and then save the data in a flat file as well as retrieve it again. I am able to save some type of data to the flat file but it is unreadable. Question marks or some other unreadable characters appear instead.
    I am also not able to write in a foreign font. Can someone give me some advice for how to input a foreign language into with a GUI, save the information in a flat file, and retrieve it again.

    If you have got a String in Java somehow regardless of interior encoding mode, you can write it in a text file with an encoding you would like (e.g., UTF8).
    //import java.io.*;
    String str = "ABCEDFG";
    try{
       BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream("out.txt"),"UTF8"));
       bw.write(str);
       bw.close();
    }catch(IOException ioe){
        //process
    }

  • Arranging data in excel by using any scripting language like VB, Java \

    I need a help in arranging the data in first column into different columns according to equivalent row value.
    for example.
    Time        
    Name Class
    Activity Subject
    12 Feb 2014 10:00 AM Robert
     5th School started
    12 Feb 2014 10:30 AM Robert
     5th Break
    12 Feb 2014 11:00 AM Robert
     5th Session Started
    Science
    12 Feb 2014 11:30 AM Edwin
     5th School Started
    12 Feb 2014 12:00 AM Edwin
     5th Break
    12 Feb 2014 01:00 PM Edwin
     5th Session Started
    Maths
    Above Data to be arranged as mentioned below
    Time A Time B
    Time C        
    Name Class
    Subject
    12 Feb 2014 10:00 AM 12 Feb 2014 10:30 AM 12 Feb 2014 11:00 AM
    Robert 5th
    Science
    12 Feb 2014 11:30 AM 12 Feb 2014 12:00 AM 12 Feb 2014 01:00 PM
    Edwin 5th
    Maths
    As actual data is different and i cannot share the data here.. but i need to create a VB or Java or any language script for n number of above mentioned data to bring out the data into below format.. 
    Please help me in finding out solution

    Data from A1
    VVBA Code:
    Sub lk()
    Dim wks As Worksheet: Set wks = ActiveSheet
    Dim x&, y&: y = 2 '1st data row
    Dim max_row&: max_row = wks.Cells(wks.Rows.Count, "a").End(xlUp).Row
    Dim n_wks As Worksheet: Set n_wks = ActiveWorkbook.Worksheets.Add
    'Headers
    With n_wks.Cells(1, 1)
    .Value = "Time A"
    .Offset(, 1) = "Time B"
    .Offset(, 2) = "Time C"
    .Offset(, 3) = "Name"
    .Offset(, 4) = "Class"
    .Offset(, 5) = "Subject"
    End With
    'Pull datas i step
    For x = 2 To max_row Step 3 'rows 2|5|8...
    n_wks.Cells(y, 1).Value = wks.Cells(x, 1).Value
    n_wks.Cells(y, 2).Value = wks.Cells(x + 1, 1).Value
    n_wks.Cells(y, 3).Value = wks.Cells(x + 2, 1).Value
    n_wks.Cells(y, 4).Value = wks.Cells(x, 2).Value
    n_wks.Cells(y, 5).Value = wks.Cells(x, 3).Value
    n_wks.Cells(y, 6).Value = wks.Cells(x + 2, 5).Value
    y = y + 1
    Next
    End Sub
    p.s.
    Gallery is not for that ;] - use OneDrv, Dropbox, Or other
    Oskar Shon, Office System MVP - www.VBATools.pl
    if Helpful; Answer when a problem solved

  • Return national language strings from java stored procedures

    Hi, all.
    How does i can return String which contains national characters from java stored procedure? I.e. convert UTF java string to national language of database. It's does not processing automatically (why?).
    declaration of procedure:
    CREATE OR REPLACE FUNCTION TestNLSString RETURN VARCHAR2
    AS
    LANGUAGE JAVA
    NAME 'test.SomeClass.getNLSString() return java.lang.String';
    SELECT TestNLSString AS X FROM DUAL;
    X
    iiiii
    OS: Windows 2000 Server
    Oracle Server version: Oracle 8.1.7.1.4

    Ok. I had a specific problem.
    I want to use java stored procedure (function) to make a connection to remote db using supplied connection parameters make some quieries there end return results in a form of structured data - object.
    I have defined an object type in a database where the function will reside. I granted execute privilege to public user on this type, made public synonyms to both, the object type and the function, so anybody connected to the same database would have an access to this functionality.
    I supposed that if I supply connection parameters for some other user but the same database when running the function, everything should go smooth. Yeah.
    My java code executed ok: it made a connection to the db with some x user, it resolved object type descriptor given (oracle.sql.StructDescriptor), but pl/sql wrapper function reported the error I've mentioned. If I executed the function giving it the connection parameters for same account as where object type was declared, everything went fine.
    My final solution is:
    Make TWO! connection in java code: 1st for ("jdbc:default:connection:"), 2nd for remote database account.
    Use first connection to construct oracle.sql.StructDescriptor
    Use second connection to retreive data from remote db

  • Dynamically refresh jspx component(i.e af:outputText) based on Java

    Scenario : To update my marquee OutputText value based on Table value change
    I have a requirement like, based on db table value change one of my component has to be refreshed from my server program(i.e java).
    I got the event using DataUpdateEventListener from DB that some changed has been occurred on my table, and the value is set to true on my java class...
    Problem
    Using that true value i have to get the component(i.e af:outputText) from jspx (note: which is not in the region) and refresh the component so that my output value will be updated.
    Any one of you have any idea abut this problem please suggest
    Thanks in advance
    Karthik

    Check my blog http://tompeez.wordpress.com/2013/03/24/jdeveloper-11-1-1-6-0-self-closing-popup/ which shows how to use a poll component on a page. As the use case is to only call hte bean methos once you have to change the implementation in a way that you don't reset the timeout, but leave is as is so that the poll listener is called periodically.
    Timo
    Edited by: Timo Hahn on 13.05.2013 09:23
    I found this video from Shay Shmeltzer showing how to use the poll component: https://blogs.oracle.com/shay/entry/using_the_afpoll_to_refresh_pa

Maybe you are looking for

  • Adobe photoshop album starter edition 3.0 shutting down when importing from iphone 4

    adobe photoshop album starter edition 3.0 keeps shutting down when I try to import photos from my iphone 4 - it works fine with my wife's iphone 3!  Any suggestions? The follwoing messages appear: Adobe Photoshop Album Starter Edition 3.0 (Viewer) ha

  • ISight works fine in iChat but doesn't show up in Yahoo Messenger nor Skype

    Hello, I was given an iSight webcam that works fine in iChat, but doesn't show up in Yahoo Messenger nor Skype, which are the IM programs I use- I search on the Apple Support site a driver to download, but there is only an updater (iSight Updater 1.0

  • Messages Problem MacBook Air 11

    I sent a ton of emoji, like 20,000, to a friend, and now Messages lags and wont open. I've tried rebooting it many times and holding Command + Option + P + R upon startup, but none of this works. I can't use Messages at all, and also I currently have

  • Is the upgrade to the 2.33 Ghz Intel chip worth it?

    I am going to be buying my first Mac very soon. It will be an iMac and I will use it primarily to power a digital darkroom using PhotoShop initially. Later I may use either Apeture or LightRoom, once they get past version 1 and up to version 2. (I do

  • PI_BASIS 7.02 compatiblity

    Hi Experts! We are in the process of Netweaver 7.0 upgrade to EHP2 which includes plugin PI_BASIS with min. required 7.02 SP07 level. Do you know what restrictions apply or where to get information about the minimum version/patch level for the connec