酷代码
AI
首页
AI工具箱
在线工具
证件照自拍
证件照换底色
关于
设置
登录/注册
菜单
全部AI
/
热门
/ AI写代码神器
服务商
DeepSeek
字节豆包
阿里通义
讯飞星火
百度文心
GPT
开启上下文联想
更多选项
快捷项
语言方向:不限
语言方向:Java
语言方向:C#
语言方向:Python
语言方向:C++
语言方向:C
语言方向:JavaScript
语言方向:Go
语言方向:Ruby
语言方向:Swift
语言方向:R
语言方向:PHP
语言方向:CSS
语言方向:TypeScript
语言方向:Shell
语言方向:Scala
语言方向:Maxscript
语言方向:html
系统环境:不限
系统环境:Windows
系统环境:Linux
系统环境:Mac
其他AI
AI写代码神器
AI问答
AI新闻评论
AI摘要生成
AI高端主持词
AI工作总结报告
AI爆文标题助手
证件照自拍
证件照换底色
问AI
若有一段文法: stat : expr | id '=' expr | 'if' expr ; 则其中的字面量是_______和_______。
在这段文法中,字面量是 `'='` 和 `'if'` 。 [2024-10-07 16:19:21 | AI写代码神器 | 20点数解答]
相关提问
如何隐藏我的提问?
AI写代码神器
若有一段文法: stat : expr | id '=' expr | 'if' expr ; 则其中的字面量是_______和_______。(20点数解答 | 2024-10-07 16:19:21)
99
AI写代码神器
如下语句对应的ir表示是下列哪项 int a = 8; if(a>6){ } a %a = alloca i32, align 4 store i32 8, i32* %a, align 4 %cmp = icmp sgt i32 %a, 6 br i1 %cmp, label %if.then, label %if.end b %a = alloca i32, align 4 store i32 8, i32* %a, align 4 %cmp = icmp sgt i32 %a, 6 if i1 %cmp, label %if.then, label %if.end c %a = alloca i32, align 4 store i32 8, i32* %a, align 4 %0 = load i32, i32* %a, align 4 %cmp = icmp slt i32 %0, 6 if i1 %cmp, label %if.then, label %if.end d %a =(575点数解答 | 2024-12-18 18:40:35)
84
AI写代码神器
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>2048 Game</title> <link rel="stylesheet" href="style.css"> </head> <body> <header> <h1>2048</h1> <button id="newGameButton">New Game</button> <p>Score: <span id="score">0</span></p> </header> <div id="grid-container"> <div class="grid-cell" id="grid-cell-0-0"></div> <div class="grid-cell" id="grid-cell-0-1"></div> <div class="grid-cell" id="grid-cell-0-2">(138点数解答 | 2025-03-05 15:45:36)
158
AI写代码神器
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>2048 Game</title> <link rel="stylesheet" href="style.css"> </head> <body> <header> <h1>2048</h1> <button id="newGameButton">New Game</button> <p>Score: <span id="score">0</span></p> </header> <div id="grid-container"> <div class="grid-cell" id="grid-cell-0-0"></div> <div class="grid-cell" id="grid-cell-0-1"></div> <div class="grid-cell" id="grid-cell-0-2">(117点数解答 | 2025-03-11 00:06:25)
57
AI写代码神器
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>2048 Game</title> <link rel="stylesheet" href="style.css"> </head> <body> <header> <h1>2048</h1> <button id="newGameButton">New Game</button> <p>Score: <span id="score">0</span></p> </header> <div id="grid-container"> <div class="grid-cell" id="grid-cell-0-0"></div> <div class="grid-cell" id="grid-cell-0-1"></div> <div class="grid-cell" id="grid-cell-0-2">(201点数解答 | 2025-04-19 11:50:42)
34
AI写代码神器
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>2048 Game</title> <link rel="stylesheet" href="style.css"> </head> <body> <header> <h1>2048</h1> <button id="newGameButton">New Game</button> <p>Score: <span id="score">0</span></p> </header> <div id="grid-container"> <div class="grid-cell" id="grid-cell-0-0"></div> <div class="grid-cell" id="grid-cell-0-1"></div> <div class="grid-cell" id="grid-cell-0-2">(181点数解答 | 2025-04-29 20:58:02)
18
AI写代码神器
#include <iostream> #include <iomanip> #include <string> using namespace std; struct < n; i++) { char id[30], title[100]; float price book { ; cin >> id >> title >> price; // string id; // 书号 读入书号、书名和价格 addbook(id, title, price); cin.ignore(); // 处理掉 string title; // 书换行符 } // 输入查找次数 cin >> m; //名 float price; // 价格 查找每 book* next; // 指向下一个节点的指次针 }; class booklist { public: booklist() : head指定(nullptr)位置 {} void addbook(const string& id, const string& title, float price) { book* newbook =(2245点数解答 | 2024-12-18 09:06:13)
89
AI写代码神器
画出程序流程图 #include<stdio.h> int main() { int t,a,b,c,d; printf("请输入4个数:"); scanf("%d,%d,%d,%d",&a,&b,&c,&d); if (a > b) { t = a; a = b; b = t; } if (a > c) { t = a; a = c; c = t; } if (a > d) { t = a; a = d; d = t; } if (b > c) { t = b; b = c; c = t; } if (b > d) { t = b; b = d; d = t; } if (c > d) { t = c; c = d; d = t; } printf("由小到大输出:%d %d %d %d\n",a,b,c,d); return 0; }(318点数解答 | 2024-10-28 14:57:08)
116
AI写代码神器
1.选择一个文法,进行实验,可选的文法包括以下几个: p99 2.设计语法分析程序的输出形式(输出应为语法树或推导),一个可以参考的例子,可见图1。 3.编写递归下降语法分析程序(,实现基本的递归下降分析器,能够分析任给的符号串是否为该文法所定义的合法句子。实验报告中要说明分析使用的方法。 4.根据所作业题选项e所给出的input,生成并输出分析过程中所用的产生式序列(show the actions of parser): 1 产生式1 2 产生式2 …… 5.自已设计一个不合法的句子,作为输出进行分析,给出结果。 [实验步骤]: 1.写出该小语言的的ll(1)文法。如 g[e]: 其中 e→tg g为e’ g→+tg|∧ ∧为ε t→fs s为t’ s→*fs|∧ f→i|(e) 2.编写递归下降语法分析程序。 3.调试运行程序。 4.结果分析。 5.撰写实验报告。 [实验报告]: 1.写出实现的算法,并画流程图。 2.根据你选择的文法,分析左递归或左因子是否会影响本算法的结果。 3.列举实验设计过程(397点数解答 | 2024-12-12 22:33:53)
90
AI写代码神器
1.选择一个文法,进行实验,可选的文法包括以下几个: p99 2.设计语法分析程序的输出形式(输出应为语法树或推导),一个可以参考的例子,可见图1。 3.编写递归下降语法分析程序(,实现基本的递归下降分析器,能够分析任给的符号串是否为该文法所定义的合法句子。实验报告中要说明分析使用的方法。 4.根据所作业题选项e所给出的input,生成并输出分析过程中所用的产生式序列(show the actions of parser): 1 产生式1 2 产生式2 …… 5.自已设计一个不合法的句子,作为输出进行分析,给出结果。 [实验步骤]: 1.写出该小语言的的ll(1)文法。如 g[e]: 其中 e→tg g为e’ g→+tg|∧ ∧为ε t→fs s为t’ s→*fs|∧ f→i|(e) 2.编写递归下降语法分析程序。 3.调试运行程序。 4.结果分析。 5.撰写实验报告。 [实验报告]: 1.写出实现的算法,并画流程图。(659点数解答 | 2024-12-12 23:04:06)
63
AI写代码神器
1.选择一个文法,进行实验,可选的文法包括以下几个: p99 2.设计语法分析程序的输出形式(输出应为语法树或推导),一个可以参考的例子,可见图1。 3.编写递归下降语法分析程序(,实现基本的递归下降分析器,能够分析任给的符号串是否为该文法所定义的合法句子。实验报告中要说明分析使用的方法。 4.根据所作业题选项e所给出的input,生成并输出分析过程中所用的产生式序列(show the actions of parser): 1 产生式1 2 产生式2 …… 5.自已设计一个不合法的句子,作为输出进行分析,给出结果。 [实验步骤]: 1.写出该小语言的的ll(1)文法。如 g[e]: 其中 e→tg g为e’ g→+tg|∧ ∧为ε t→fs s为t’ s→*fs|∧ f→i|(e) 2.编写递归下降语法分析程序。 3.调试运行程序。 4.结果分析。 5.撰写实验报告。 [实验报告]: 1.写出实现的算法,并画流程图。 用c语言(425点数解答 | 2024-12-12 23:05:03)
59
AI写代码神器
1.选择一个文法,进行实验,可选的文法包括以下几个: p99 2.设计语法分析程序的输出形式(输出应为语法树或推导),一个可以参考的例子,可见图1。 3.编写递归下降语法分析程序(,实现基本的递归下降分析器,能够分析任给的符号串是否为该文法所定义的合法句子。实验报告中要说明分析使用的方法。 4.根据所作业题选项e所给出的input,生成并输出分析过程中所用的产生式序列(show the actions of parser): 1 产生式1 2 产生式2 …… 5.自已设计一个不合法的句子,作为输出进行分析,给出结果。 [实验步骤]: 1.写出该小语言的的ll(1)文法。如 g[e]: 其中 e→tg g为e’ g→+tg|∧ ∧为ε t→fs s为t’ s→*fs|∧ f→i|(e) 2.编写递归下降语法分析程序。 3.调试运行程序。 4.结果分析。 5.撰写实验报告。 [实验报告] 用c语言写出实现的算法(521点数解答 | 2024-12-12 23:39:45)
76
发送