Please can i get help on commenting this c++ basic compiler code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kofi code
    New Member
    • May 2020
    • 4

    Please can i get help on commenting this c++ basic compiler code

    Code:
    enum {Ident_max = 16};
     typedef char Ident[Ident_max+1];
     typedef enum {
         null, times, plus, rparen, lparen, number, writesym, eofsym
     } Symbol;
     class Scanner {
     public:
         bool init(const char fn[]);
         Symbol getsym();
         int getval() { return val; }
         const char *getid() { return id; }..... ETC FULL CODE IN TEXT FILE
    Attached Files
  • dev7060
    Recognized Expert Contributor
    • Mar 2017
    • 656

    #2
    What is the question?

    Comment

    • kofi code
      New Member
      • May 2020
      • 4

      #3
      Frankly i need help with creating a basic compiler front end—that is, a scanner and a parser which takes as input a program written in ILOC.

      Comment

      • dev7060
        Recognized Expert Contributor
        • Mar 2017
        • 656

        #4
        Frankly i need help with creating a basic compiler front end
        That's what being asked. What kind of help is needed?

        Comment

        • kofi code
          New Member
          • May 2020
          • 4

          #5
          how to code a basic compiler, scanner and parser which takes input written in ILOC

          Comment

          • kofi code
            New Member
            • May 2020
            • 4

            #6
            Please can you help me with that ?

            Comment

            Working...