Small/toy language compiler/interpreter implemented in Java [closed] - java

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I'm looking for a small/toy programming language that is implemented in Java. The implementation should preferably not be much more than around a 1000 lines or so. It might e.g. be a simple imperative language, an expression parser/interpreter or something similar. The intention is to use it as an example for a paper I'm writing, and while I could mock up something myself, it would be better to be able to refer to something that already exists. Thanks!

It's not so small as to be called a "toy" but Andrew Appel's Tiger language (from the book Modern Compiler Implementation in Java was designed to teach the basics and has a reference implementation:
http://www.cs.princeton.edu/~appel/modern/java/project.html

If a Lexical Analyzer is okay for you, check JLex

not sure if my suggestion is on time. In Russian we say 'spoon is worth during lunch time only'.
But anyway, if you still interested you might consider IUMLS.
Thanks.

Related

I am in a Intro to Java Programming class this semester in school. I am wanting to further my knowledge in the field [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I have used http://www.codecademy.com in the past to learn other programs. However, codeacademy does not provide a Java tutorial. Does anyone know another website out there that could further my knowledge in the Java field?
Thanks
If you want something to really further your knowledge here is a book that I used to study and practice JAVA.
https://www.dropbox.com/s/gxcpyl686r8fg5r/Prentice.Hall.Introduction.to.Java.Programming.Comprehensive.8th.Edition.Jan.2010.pdf
It's a pretty good book in my opinion and I would consider reading the book in its entirety. Coding competition sites like http://codechef.com are good places to build up your knowledge.
Read from Headfirst Java 2nd edition, best book for Java beginners.
For Online study, go to: http://docs.oracle.com/javase/tutorial/

OCaml to Java translation [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I have nice OCaml code (30000 lines apox). I want to port it to Java. So Is there any free OCaml to Java translator?
I need it as my own project is in Java and i'm also comfortable with java, but in project I've to use the OCaml code, i don't want to reinvent the wheel ... I just want to modify that code(OCaml) and use it..
I've seen the OCaml to Java , but it just make possible to call ocaml code from Java code that is good but i need complete translation.. A source code(OCaml) to source code(Java) compiler..
No, this does not exist. Very few source-to-source compilers exist (I believe some have been tried to port old COBOL codebases to Java). If you want to maintain and modify an OCaml program, your best bet is to learn some OCaml.

Java Learning Tasks + Solution (mini project) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I'm currently reading Head First Java, and I am wondering if there any websites or books? that I could go to that would set out some sort of task or assignment for me to practice on. In order to gain a better practical understanding of java. Even something like a mini project and then at the end I could see a completed solution that would show me areas I could of improved my code.
Even a Step by Step project tutorial for creating a game perhaps?
Has anyone got any resources like this?
Thanks
Code Kata is a good place to find various programming assignments, and those are not language-specific. So, there's no real "one solution" to them, but they are a good way to get you thinking about different classes of problems.
I'm pretty sure I've seen another site much like that, but can't seem to think of which one it might have been right now.
Or, if you are mthematical inclined, try Project Euler.
take a look at this site it has lots of mini project related to java
http://www.1000projects.com/new/java/mini/main.html
Java Student Projects
http://mindprod.com/project/projects.html
Example Depot is a great place for real-life java examples. Try looking at examples and combining them to create a real application.
If you want more theoretical assignments: http://www.psc-consulting.ca/fenske/cpjava.htm

DiveIntoPython like for Java? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Any Java tutorial that resembles Mark Pilgrim's approach for DiveIntoPython?
What about the official Java Tutorial? I found it pretty helpful to get started with the language.
I haven't read Dive Into Python but I do know that Bruce Eckels Thinking In Java is an excellent book and well worth a look.
Be warned though - it's monster size and not easy to carry around!
I don't think there is anything like Dive into Python in the Java world. The Java language doesn't lend itself to the model of 'Check out what we can do with these 15 lines of code!'
Best approach would be to dive in yourself, pick a project, and use the tutorial and the docs. Many people will recommend Eckel's Thinking in Java but know that it is the polar opposite of Dive into Python -- it is slow, methodical, and thorough.

Simplest Java chart library? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Could someone please recommend a simple (as in very easy to understand) charting library for Java?
I just want to add a simple chart into my program and figured I might save some time by learning a library.
JFreeChart is one of the best open source charting packages for java.
A litte outdated, but still working and with free documentation (JFreeChart has just the API for free, the devguide is saled) is jCharts.
A sample code for Swing is available here, if you don't need anything fancy or special it may be easier than JFreeChart because of the direct available documentation.
JFreeChart is definitely the way to go. Although the (for-sale) manual is useful if you're doing a huge amount of work using this, it's instructive in the first instance to check out this huge selection of examples (screenshots and code). That will get you 90% of what you need.

Categories

Resources