# compiler-homework4 **Repository Path**: gshxd/compiler-homework4 ## Basic Information - **Project Name**: compiler-homework4 - **Description**: LR parsing - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 70 - **Created**: 2016-05-19 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #compiler-homework4 ## Requirements Fill in the code snippet to realize LR parsing Compile with "gcc lrparse.c -o lrparse" or simply "mingw32-make (windows) / make (Linux or OSX)" Pass the three test cases (test{1,2,3}.txt), so that the outputs are identical with ans{1,2,3}.txt *Production rules* 1. E -> E + T 2. E -> T 3. T -> T * F 4. T -> F 5. F -> (E) 6. F -> id