The Grammer is given:
S ---> id=E;
E ---> E+T | E-T | T
T ---> T*F | T/F | F
F ---> P^F | P
P ---> -P | L
L ---> (E) | id | num
--------------------------------
I've fond the following FIRST and FOLLOW:
FIRST:
S = { id }
P=E=T=F= { -, (, id, num }
L = { (, id, num }
FOLLOW:
S = { $ }
E = { ;, +, -, ) }
T=F= {;, *, /, +, -, ) }
P =L= {;, ^, *, /, +, -, ) }
I think this answer is wrong. If so, Pls solve this.... pls....
Thanks...
Rizu.
3 3243 pbmods 5,821
Recognized Expert Expert
Heya, Rizu. Welcome to TSDN!
Can you explain what you are trying to accomplish?
I am trying to complete parser table..
pbmods 5,821
Recognized Expert Expert
Ah. Interesting.
I haven't had a chance to review it yet, but maybe this article may be of some assistance.
P.S., thanks for posting this. I have been trying to implement this in a string parser for a little while now without realizing what it was called.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Wolfgang Kaml |
last post by:
Hello All,
I have been working on this for almost a week now and I haven't anything up
my sleeves anymore that I could test in addition or change....
Since I am not sure, if this is a Windows 2003 Server or ADO or ODBC issue,
I am posting this on all of the three newsgroups.
That's the setup:
Windows 2003 Server with IIS and ASP.NET actiavted
Access 2002 mdb file (and yes, proper rights are set on TMP paths and path,
|
by: Webdad |
last post by:
Hi!
I running my first year as industrial engineer (informatics)
We have an assignment to do :
.... create a playfield (matrix). Some places in that field are
blocked, so you can't pass them. The others are free to go over ...
(I already found that part)
-> http://users.pandora.be/hebbrecht/jochen/c++/test.cpp
|
by: TadPole |
last post by:
Hi all,
My main problems are:::::::::
1. Set a value within a block container that can be used and changed by
subsequent templates/block-containers/tables etc..
2. get/determine/find the setting that tell the process that the new
top of the document region is now at the end of the last
block-container used, this must be set in that last block container.
3. find the value used in the 'top" setting on the prior
|
by: Paul |
last post by:
Hi,
I'm developing a CRM (Customer Relationship Management) system in MS
Access. I have 2 tables. The first is a customer master file, the
second is an activity file.
A key function of the system will be to track when it is time to
follow up with a customer. Sometimes it's for a specific reason, other
times it's just a routine "keep in touch" contact.
|
by: cwsullivan |
last post by:
Hi gang,
I have a grid full of particles in my program, and I want to find an
angle between two particles. I'm having trouble because it seems like
the answer depends on whether or not the target particle is above or
below, in front or behind the refernce particle.
If I have a reference particle at (10,10), and another particle at
(20,20), i'm currently finding the angle by:
angle = atan((10-20)/(10-20)) = 45 degrees. When I draw this...
| |
by: athiane |
last post by:
I want a way to parse out all function names that appear in a couple of
C files.
When the parsing logic finds a function name in a file, it should print
out the Function name, line number and file in which the Function was
found.
What approach should i follow to tackle this problem ?
Is there any option in the gcc compiler that prints out this
information ?
|
by: garyusenet |
last post by:
Some time ago I enquired about how I interface with a program written
in an old version of C++
Any terms i use like list that follow are used in their common everyday
usuage!
One of the programmes features is that it displays a list. The contents
of this list are the names of people that are logged into the
programme.
|
by: Nick |
last post by:
Hi there,
I have a website that functions fine locally, but when published to the
server it develops a bottleneck during loading some of the pages. Basically
what happens is the page loads to about 25% then it freezes for anything
from 10 - 40 seconds, before suddenly loading the rest of the page.
Of course I understand that this could be down to some code on the page
locking the thread or suchlike, but I would like to be able to be...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |