/* 
 * Start of main function for ECE 209 Homework 7: countreal.h
 * 
 *
 * YOUR NAME HERE!
 *
 */

#include <stdio.h>
#include <stdlib.h>

#include "chartypes.h"

/* Here are the eight states I used in my solution
 * However you don't have to use a state machine.
 */
enum myStates {
    INSPACE,
    READINGWORD,
    LEADINGDIGITS,
    AFTERDOT,
    TRAILINGDIGITS,
    AFTERE,
    AFTERSIGN,
    READINGEXPONENT
};

int main(int argc, char** argv) {
    int lineCount = 0 ;
    int wordCount = 0 ;
    int realCount = 0 ;
    /* Add other initialization here */
    while (1) {
        switch (char2rctype(getchar())) {
        /* Add the seven others cases in here */
       case RCEOF:
	    return (EXIT_SUCCESS);
       }
   }
}

