DZone
Java Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Java Zone > Introduce variables on EDDI

Introduce variables on EDDI

Baptiste Wicht user avatar by
Baptiste Wicht
·
Jun. 17, 11 · Java Zone · Interview
Like (0)
Save
Tweet
3.41K Views

Join the DZone community and get the full member experience.

Join For Free

The version 0.1.1 of EDDI is now available.

This new version introduce the feature to put variable on the code. You can now write things like that :

a = "Variable a";
b = "Variable b";
Print(a);
Print(b);

And you can also reassign value to a variable and assign the value of a variable to another :

a = b;
b = "New variable b"; 

Nothing extraordinary, but it’s a start. The variable name are compiled into integers and a table of variable has been made on the virtual machine.

The last step will be to introduce a new type : the integers. But for this integration, I’m not exactly sure on how to do that. I will certainly create a string pool and put only references to the strings on the stack, but it’s not clearly defined. Don’t hesitate if you have any comment :)

The project is available on Github :

  • The compiler, eddic : https://github.com/wichtounet/eddic/
  • The virtual machine, eddivm : https://github.com/wichtounet/eddivm/
  • A commons library used by the two projects : https://github.com/wichtounet/eddi-commons/

If you want to see the exact version reffered to in this subject, you can select the tag v0.1.1

 

From http://www.baptiste-wicht.com/2011/06/introduce-variables-on-eddi/

Database code style Strings IT Machine GitHub Integration Library Data Types

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • MEAN vs MERN Stack: Which One Is Better?
  • ETL/ELT on Kubernetes With Airbyte
  • Progressive Delivery With Argo Rollouts: Blue-Green Deployment
  • What Are the Best Performance Tuning Strategies for Your SQL Server Indexes?

Comments

Java Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo