Permalink
Switch branches/tags
Nothing to show
Commits on Dec 26, 2011
  1. Added spec

    eudisd committed Dec 26, 2011
  2. ...

    eudisd committed Dec 26, 2011
  3. Added a spec for the subset

    eudisd committed Dec 26, 2011
  4. Cleanup#6

    eudisd committed Dec 26, 2011
  5. Cleanup#5

    eudisd committed Dec 26, 2011
  6. Cleanup#4

    eudisd committed Dec 26, 2011
  7. Cleanup#3

    eudisd committed Dec 26, 2011
  8. Cleanup#2

    eudisd committed Dec 26, 2011
  9. Cleanup#1

    eudisd committed Dec 26, 2011
  10. Stub

    eudisd committed Dec 26, 2011
Commits on Jun 2, 2011
  1. Added the documentation file.

    eudisd committed Jun 2, 2011
  2. commit the latest changes...

    eudisd committed Jun 2, 2011
Commits on May 25, 2011
  1. Commiting last ex6.c changes...

    eudisd committed May 25, 2011
Commits on May 22, 2011
  1. Added two more examples to drive the compiler and virtual

    machine.  I think I will add one more test, namely bubble
    sort and call it done for this compiler (semester wise).
    eudisd committed May 22, 2011
Commits on May 21, 2011
  1. Fixed a bug where the labels/gotos crashed. It occured because

    I was calling Assignment() right after Label(), which
    inevitably calls get_token_value().  This particular function
    expects that the token have 2 parameters.  I should have checks for
    that right in the get_toke_* functions, but I messed up.
    eudisd committed May 21, 2011
  2. Fixed a bug where I was not incrementing the data pointer.

    Arrays work now (without range checking) for both RHS
    and LHS.  During array declaration I needed to increment
    the data pointer by array_size * sizeof(type).
    eudisd committed May 21, 2011
Commits on May 19, 2011
  1. I made some good progress.

    So far:
    
    I'm implemented the LHS of the array part of the compiler.
    
    The RHS is a bit more complex, and I ran into a bug.  I will
    try to solve this bug by this weekend.
    
    NOTE TO SELF: There is no range checking!  Try to do this
    at some point!
    eudisd committed May 19, 2011
  2. Fixed an error with the assignment production.

    I was not matching properly for the RHS case.
    
    e.g. (x = y[0]) for instance
    eudisd committed May 19, 2011
  3. I think I've completed the assigmnet of integer arrays!

    Now to the getting of integer array element values!
    eudisd committed May 19, 2011
Commits on May 18, 2011
  1. Fixed a bug in the printing of instructions to handle arrays.

    I was not incrementing the code_count for mul operations!
    eudisd committed May 18, 2011
Commits on May 14, 2011
  1. Started work on implementing the left hand side of arrays.

    Last time I finished array declarations. However, making a note
    here that possible bugs may break the builds from now on.
    
    I need to make sure that I run my example drivers often after
    changes.
    eudisd committed May 14, 2011
Commits on May 4, 2011
  1. Did some more work on integer declarations. Made is so that

    array declarations of the form, int x[1], y[2]; work.
    eudisd committed May 4, 2011
Commits on Apr 30, 2011
  1. Finished the declaration part for integer arrays.

    I still need to do char and floats.
    eudisd committed Apr 30, 2011
  2. A few random changes.

    I WILL START on arrays on this comming commit.
    eudisd committed Apr 30, 2011
Commits on Apr 25, 2011
  1. Alright, completed example programs 1 - 4, and figured out

    a small but (yeah another one) with the compiler.
    eudisd committed Apr 25, 2011
  2. There appears to be a bug with the printf

    function again.  If I supply a string without
    parenthesis, do whiles don't work!  What is this?
    eudisd committed Apr 25, 2011
  3. Printf bug fixed.

    eudisd committed Apr 25, 2011
  4. Included the preprocessor into the mix. Now we have the

    ability to remove comments again.  I had log ago
    removed it for various bugs.  For now, it only removes
    c style comments (/* */).
    eudisd committed Apr 25, 2011
  5. I believe this is a buggy commit. I will

    see if I have to fix bugs later, but for now
    it looks pretty good.  Here are some update:
    
    Two major parser bugs discovered and fixed.
    
    First, the declarations we messed up because of a simple scope_ptr
    problem.  I had it set to -1;
    
    Second, I fixed the issue with assignment.  I have it so that the variable
    is searched starting from the
    outermost scope to the current scope.
    
    Fixed this for both printf(x) and printf x, and  also x = 1, for instance.
    eudisd committed Apr 25, 2011
  6. This is unbelievable. It works so beautifully. I am done

    with switch!
    eudisd committed Apr 25, 2011
  7. Some progress with the case() production.

    managed to finish the holes part.
    eudisd committed Apr 25, 2011
Commits on Apr 21, 2011
  1. Made it so that if a variable is not declared, the compiler

    throws and error.
    eudisd committed Apr 21, 2011
  2. Fixed a few more scope cases. Notably, there were issues

    printing variables after the transition to the scoped system.
    
    I had to fix the underlining F() production to fix this.
    eudisd committed Apr 21, 2011
  3. I believe I'm done with the scoping stuff. It seems that the

    only thing left is to implement this very weird dp
    increase and decrease which I dreamt about.  Lets see
    if code that you dream is correct :D
    
    Before that however, I think I'll try to test all the cases
    first, to make sure that everything works beautifully.
    eudisd committed Apr 21, 2011