473,394 Members | 2,063 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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

Expand|Select|Wrap|Line Numbers
  1.  
  2. enum {Ident_max = 16};
  3.  typedef char Ident[Ident_max+1];
  4.  typedef enum {
  5.      null, times, plus, rparen, lparen, number, writesym, eofsym
  6.  } Symbol;
  7.  class Scanner {
  8.  public:
  9.      bool init(const char fn[]);
  10.      Symbol getsym();
  11.      int getval() { return val; }
  12.      const char *getid() { return id; }..... ETC FULL CODE IN TEXT FILE
  13.  
  14.  
Attached Files
File Type: txt compiler design.txt (2.6 KB, 108 views)
May 12 '20 #1
5 3259
dev7060
636 Expert 512MB
What is the question?
May 13 '20 #2
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.
May 16 '20 #3
dev7060
636 Expert 512MB
Frankly i need help with creating a basic compiler front end
That's what being asked. What kind of help is needed?
May 17 '20 #4
how to code a basic compiler, scanner and parser which takes input written in ILOC
May 18 '20 #5
Please can you help me with that ?
May 18 '20 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: abmd.tw | last post by:
dear all : please help me to slove the problem as below code , it can't run . i want to read a file and display. #include <iostream> #include <fstream> #include <cstdlib> #include <assert.h>
2
by: Jayjay | last post by:
When it comes to access, I'm pretty good using the built in features and can come up with some pretty complex functions to get what I need. But we have this database I'm doing for work that is...
2
by: freshman | last post by:
Hi! I am very new to C programming. I have difficutly in understanding how the recursion work. One of my home work is to write a function using recursion to enter and display a string in reverse and...
1
by: Peniel | last post by:
Please If any one of you know how to write code which will test the safe sequency i.e code that express Banker's algorithm The pseudocode is as folows  Step1: Let Work and Finish be vectors of...
18
by: Minor | last post by:
I am in a beginner java class and am having trouble getting a program to work. We are asked to create a calendar type application to display a calendar. It uses a application and a worker class I am...
1
by: TFANATIC | last post by:
Have somthing trying to instal in to my computer called InstantShareDevices dont no were it came from and cant get it to stop instaling it is messing up my computer and i keep seeing error code 2908...
9
by: TF | last post by:
Hello all, I made a ASP.NET 2.0 site that shows possible "recipes" for paint colors stored in an access dbase. Basically, 1000 colors are stored with specific RGB values in separate columns. A...
1
by: Alwyn | last post by:
struct lib { char *name,*author,*publish; int price; int no; }u; FILE *fp; void fin() //Inputs data to a file
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.