# compiler-homework5 **Repository Path**: luroufan/compiler-homework5 ## Basic Information - **Project Name**: compiler-homework5 - **Description**: Calculate the values using Synthesized Attributed Definition - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 71 - **Created**: 2016-06-02 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #compiler-homework5 ## Requirements Calculate the values using Synthesized Attributed Definition Compile with "gcc lrsemantic.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