# jcompiler **Repository Path**: hsyj/jcompiler ## Basic Information - **Project Name**: jcompiler - **Description**: nfa,dfa,minidfa thmposon构造,自顶向下语法解析,自底向上语法解析,LLAR(1)型语法解析,四则运算编译器,mysql查询编译器,c语言编译器,解释器 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2022-07-18 - **Last Updated**: 2023-01-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #编译器开发 ps:**输入都需要换行再输入end再换行** ## 案例1 四则运算解释器 路径:com.lry.pda.bottom.operation.LRValueParser 输入:1+2 支持+,*,()运算 ## 案例2 mysql查询语句编译器 路径:com.lry.pda.bottom.mysql.frontend.LRValueParser 输入:select * from A where a=1 group by a order by a desc limit 0,1 ## 案例3 c语言解释器 路径:com.lry.pda.bottom.c.frontend.LRValueParser 输入:com.lry.pda.bottom.c.frontend.TestC的代码片段 例如 ```c void f18(int a[1]){ int b = a[0]; } void main4(){ int a[1]; a[0] = 1; f18(a); } ``` 输入 ![img.png](jcompiler-core/src/main/resources/img.png) 解释执行结果 ![img_1.png](jcompiler-core/src/main/resources/img_1.png)