Arithmetic evaluation/C: Difference between revisions

Content added Content deleted
m (Comments)
No edit summary
Line 2: Line 2:


This is a LL(1) recursive descent parser. Only performs integer division. There is a function for every non-terminal in the grammar, save add_op and mult_op, which were lumped into term_tail and factor_tail respectively.
This is a LL(1) recursive descent parser. Only performs integer division. There is a function for every non-terminal in the grammar, save add_op and mult_op, which were lumped into term_tail and factor_tail respectively.
<lang c>#include "stdlib.h"
<lang c>#include <stdlib.h>
#include "stdio.h"
#include <stdio.h>
#include "ctype.h"
#include <ctype.h>


unsigned int G_STRING_ITERATOR = 0;
unsigned int G_STRING_ITERATOR = 0;