Home > English, Jeez, Programming > Compiler issues 1

Compiler issues 1

Faced some problems with the construction of the compiler today.
The main one was: how to deal with code that may have backwards or cross-references, something like:

class A {
    def method1() {
        method2() // method2 hasn't been declared yet...

    def method2(){
        // where's self.x?
        // Down there, yeah, you know
        // but the compiler doesn't!
        print self.x 

        print B()
    def x

class B {
    def B() {
        print "inside B"

I looked for documentation and then remembered that there’s a lot of articles and documents about the Green Language, by Professor José Guimarães that should be useful, and really was.
This one in particular is exactly what I was looking for.

Basically, there’s more than one way to solve the above issue. And I chose to follow Guimarães’ advice and use the same method as him. Got interested in more details? Take a look at his articles or contact me.

It’s 2:00 AM and I’ve gotta work tomorrow today! Better take a rest and sleep a little! Cya!

Categories: English, Jeez, Programming
  1. manuela
    May 28, 2007 at 18:13

    go 2 sleep little baby

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: