106-cd-project's Issues
標籤聲明詢問
您好,請問請proj2裡面
idInfo *info = new idInfo();
info->flag = functionFlag;
info->init = false;
info->flag = variableFlag;
info->type = $3;
info->init = false;
這其中的flag是代表聲明?info又是代表什麼呢?謝謝
About program declaration
首先感謝在上一個issue中的極速回覆,這麼晚還打擾您,感覺很抱歉。
##這裡是我想implement的code
module HelloWorld
begin
print ("Hello World");
end HelloWorld.
About program declaration
在這部分我使用以下code作為我的program declaration,但是在運行時,會顯示syntax error,請問是在哪裡出錯了
/* procedure declaration */
/* SHOULD I USE BEGIN OR PROCEDUR E?? */
proc_dec : MODULE ID BEGIN END ID
{
idInfo *info = new idInfo();
info->flag = functionFlag;
info->init = false;
if (symbols.insert(*$2, *info) == -1) yyerror("procedure redefinition"); /* symbol check */
if (symbols.insert(*$5, *info) == -1) yyerror("procdure redefinition"); /* symbol check */
symbols.push();
}
'(' opt_args ')' opt_ret_type '{' opt_var_dec opt_statement '}'
{
Trace("procedure declaration");
symbols.dump();
symbols.pop();
}
;
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.