Giter Club home page Giter Club logo

tekkom18's Introduction

Make sure you have all the source code completely.
Here's the list of the files you'll need:
1. Scanner.lex
2. Parser.cup
3. Context.java
4. Hash.java
5. Bucket.java
6. Generate.java
7. HMachine.java
8. Machine.java

Also, make sure you have the libraries needed and have set
the classpath. (JLex & java_cup)
You'll need it to compile the first two source codes.

To run the program properly, compile all the source codes.
If you have no idea how to do it, type in every single step
of the following:

1. If you have the 'compile.bat' file and are using 
   Windows/MS-DOS
> compile

2. If you're using Windows/MS-DOS
> java JLex.Main Scanner.lex
> java java_cup.Main Parser.cup
> ren Scanner.lex.java Yylex.java
> javac *.java

3. If you're using Linux
> java JLex.Main Scanner.lex
> java java_cup.Main Parser.cup
> mv Scanner.lex.java Yylex.java
> javac *.java

Now, you're ready to give the compiler a try.
To use it, type in:
> java parser < [input_file]

If there's no error occured in the compilation,
you'll see the target code printed.
Else you'll get error messages.

You would like to save the target code to a file,
once you're sure it's error-free. Then, you can
try to execute the target code.
To save and execute the target code, type in:
> java parser < [input_file] > [target_file]
> java Machine [target_file]

Well, that's all about it. It's up to you now.
Have fun!

tekkom18's People

Contributors

aldifahrezi avatar stephenjaya99 avatar ivanaairenee avatar

Watchers

James Cloos avatar  avatar Ricky Putra avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.