Git Product home page Git Product logo

106-cd-project's People

Contributors

segnolin avatar

Stargazers

 avatar

Watchers

 avatar  avatar

106-cd-project's Issues

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();
                        }
                        ;

標籤聲明詢問

您好,請問請proj2裡面

idInfo *info = new idInfo();
info->flag = functionFlag;
info->init = false;
info->flag = variableFlag;
info->type = $3;
info->init = false;

這其中的flag是代表聲明?info又是代表什麼呢?謝謝

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.