Permalink
Switch branches/tags
Nothing to show
Commits on Jan 14, 2014
  1. ...

    eudisd committed Jan 14, 2014
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

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

    eudisd committed May 21, 2011
    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.
  2. Fixed a bug where I was not incrementing the data pointer.

    eudisd committed May 21, 2011
    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).
Commits on May 19, 2011
  1. I made some good progress.

    eudisd committed May 19, 2011
    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!
  2. Fixed an error with the assignment production.

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

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

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

    eudisd committed May 14, 2011
    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.
Commits on May 4, 2011
  1. Did some more work on integer declarations. Made is so that

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

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

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

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

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

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

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

    eudisd committed Apr 25, 2011
    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.
  6. This is unbelievable. It works so beautifully. I am done

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

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

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

    eudisd committed Apr 21, 2011
    printing variables after the transition to the scoped system.
    
    I had to fix the underlining F() production to fix this.