=1i--){for(j=12j>=1j--){if(i==j&&i+j==13)sum+=a[i][j]}}printf("%c",sum)}-lexicalanalysisprocedures,rightbelowtheCsourcecodeanalysis:main()(inta[12][12],thesumfor(i=1ilt;I=12)(for(j=1JLT;J=12)Scanf("%d",a[i][j]))for(i=12IGT;a=i--)(for(j=12IGT;=1j--)(if(i==jij==13)sum=a[i][j]))printf("%c",sum-IMDN开发者社群-imdn.cn"> =1i--){for(j=12j>=1j--){if(i==j&&i+j==13)sum+=a[i][j]}}printf("%c",sum)}-lexicalanalysisprocedures,rightbelowtheCsourcecodeanalysis:main()(inta[12][12],thesumfor(i=1ilt;I=12)(for(j=1JLT;J=12)Scanf("%d",a[i][j]))for(i=12IGT;a=i--)(for(j=12IGT;=1j--)(if(i==jij==13)sum=a[i][j]))printf("%c",sum - IMDN开发者社群-imdn.cn">
登录
首页 » Compiler program » 词法分析程序,可对以下的C源程序进行分析

词法分析程序,可对以下的C源程序进行分析

于 2022-07-19 发布 文件大小:1.35 kB
0 194
下载积分: 2 下载次数: 1

代码说明:

词法分析程序,可对以下的C源程序进行分析:main() {int a[12] ,sum for(i=1 i=1 j--){ if(i==j&&i+j==13)sum+=a[i][j] } } printf("%c",sum) }-lexical analysis procedures, right below the C source code analysis : main () (int a [12] [12], the sum for (i = 1 ilt; I = 12) (for (j = 1 JLT; J = 12) Scanf ( "% d", a [i] [j])) for (i = 12 IGT; a = i--) (for (j = 12 IGT; = 1 j--) (if (i == ji j == 13) sum = a [i] [j])) printf ( "% c", sum

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • brief introduction, the entire project is divided into five documents : Main.c
    简单介绍一下,整个工程分为5个文件:Main.c ----- 程序的入口点,其实很简单,就是调用两个函数。Global.h ----- 定义了一些全局变量及宏Parse.h ----- 语法分析器的主要算法Prece.h ----- 定义和实现了一些关于优先级的操作Stack.h ----- 定义和实现了一个栈及其操作编译的时候只要用TC2.0或者WinTC打开Main.c文件进行编译就好了。如发现有Bug请在这里贴出来或者把修改后的代码跟帖在这里:)总之,这个工程仅仅是一个简单示例,告诉大家怎么样把课堂上学到的知识运用到实际编程当中去,工程中所用到的模块化思想,数据结构等知识都是大家学过的,大三了,希望大家在最后这段时间里把写程序的本领练就出来。:)-brief introduction, the entire project is divided into five documents : Main.c----- procedure entry point, it is actually very simple, it is called two functions. Global.h----- definition of global variables and Wang Parse.h----- parser the main algorithm Prece.h----- definition and realization of a number of priority the operation Stack.h----- the definition and implementation of a stack and operation of the compiler used whenever WITH TC 2.0 or WinTC open Main.c documents compiled enough. If found please Bug out here or affixed to amend the code of Columbia here :) Overall, the project is just a simple example, like to tell you how to put classroom knowledge
    2022-09-22 15:55:02下载
    积分:1
  • 词法语法分析,说明说明原理的词法分析和语法分析的全过程!...
    词法语法分析,说明说明原理的词法分析和语法分析的全过程!-Lexical syntax analysis that the principle of lexical analysis and syntax analysis of the entire process!
    2022-07-12 11:41:15下载
    积分:1
  • delphi实现的sql解析器,可以对各种sql语句进行解析,产生语法树。
    delphi实现的sql解析器,可以对各种sql语句进行解析,产生语法树。-realize the sql parser delphi can parse the various sql statements, resulting in tree grammar.
    2022-02-12 23:03:52下载
    积分:1
  • Script C被设计成一种解释执行的、C语言风格的脚本语言。它用来完成bat批处理无法完成,而用C语言写程序又太复杂了的这类工作。它没有java的高安全性但能...
    Script C被设计成一种解释执行的、C语言风格的脚本语言。它用来完成bat批处理无法完成,而用C语言写程序又太复杂了的这类工作。它没有java的高安全性但能够直接使用系统的许多资源,可以使用API,在功能上要比java强大。目前只计划支持Windows系统,包括95/98/SE/ME/2000/NT/-Script C was designed as an interpretation of the implementation of the C language style scripting language. It used to complete the bat batch could not be completed, and C language was too complex procedure of this kind of work. It is no java high security but can be used directly in many system resources, you can use the API, functionally powerful than java. Currently only plans to support the Windows system, including 95/98/SE/ME/2000/NT /
    2022-09-23 04:15:02下载
    积分:1
  • 2022-04-23 20:26:18下载
    积分:1
  • 语言解释器的源代码,可以在Linux,Windows,
    Lua语言解释器源代码,可以在linux,windows,
    2022-04-28 10:47:39下载
    积分:1
  • C language compiler source code, small c for dos
    C语言编译器源代码,small c for dos-C language compiler source code, small c for dos
    2022-01-21 04:57:12下载
    积分:1
  • H++编译器: 一个仿Pascal语言的编译器
    H++编译器: 一个仿Pascal语言的编译器-H compiler : an imitation of the Pascal language compiler
    2022-01-25 23:10:09下载
    积分:1
  • 用C#做的《编译原理》PROJECT
    用C#做的《编译原理》PROJECT--词法分析器 可识别的内容:C#的77个关键字,小数型和整数型数,各种运算符等-With C# To do the
    2023-01-01 05:55:05下载
    积分:1
  • 这是个简单的语法分析器程序,输入一个表达式,会给出一个分析过程....
    这是个简单的语法分析器程序,输入一个表达式,会给出一个分析过程.-This is a simple procedure syntax analyzer, the importation of an expression, is an analytical process.
    2022-06-14 02:59:54下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载