Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Corsi G - M > Linguaggi formali e automi > Esercizio su grammatiche context-free
  Last Thread   Next Thread
Author
Thread    Post New Thread    Post A Reply
GiulioP
.novellino.

User info:
Registered: Jan 2014
Posts: 3 (0.00 al dì)
Location:
Corso:
Anno:
Time Online: 0:53:49 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Esercizio su grammatiche context-free

Ciao a tutti,
sto preparando l'esame di Fondamenti di Programmazione e ho cominciato a fare alcuni esercizi sulle grammatiche fuori contesto.
Non so se data la seguente traccia la sequenza di operazioni che ho fatto è corretta.

Traccia:

Dare una grammatica per definire la categoria sintattica <Identificatore>, che corrisponde a tutte le stringhe che costituiscono gli identificatori in Pascal. Può essere d’aiuto definire alcune categorie sintattiche ausiliarie come <Cifra>.

Io ho fatto:


<Lettera>::= a|A….z|Z;
<Cifra>::= 0|....|9;

<stringa>::= <lettera>;
<stringa>::= <cifra>;
<Stringa>::= <Lettera> + <Cifra>;
<Stringa>::= <Stringa>+ <Lettera>;
<Stringa>::= <Stringa>+<Cifra>;

<Identificatore>::= <Lettera> + <Stringa>;


Grazie infinite in anticipo!

24-01-2014 17:28
Click Here to See the Profile for GiulioP Click here to Send GiulioP a Private Message Find more posts by GiulioP Add GiulioP to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Walter
dsy adminz

User info:
Registered: Mar 2002
Posts: 5304 (0.66 al dì)
Location: Milano 90% - Valle Camonica 10%
Corso: Magistrale in Informatica
Anno: fine!
Time Online: 99 Days, 1:53:14 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Intervento del moderatore:
Ciao, a quale corso di riferisci? Non trovo un "Fondamenti di programmazione" in http://www.ccdinf.unimi.it

__________________
"Ragione e passione sono timone e vela della nostra anima navigante." - Kahlil Gibran
"Senza musica la vita sarebbe un errore." - Friedrich Nietzsche

24-01-2014 21:38
Click Here to See the Profile for Walter Click Here to See the Blog of Walter Click here to Send Walter a Private Message Visit Walter's homepage! Find more posts by Walter Add Walter to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
GiulioP
.novellino.

User info:
Registered: Jan 2014
Posts: 3 (0.00 al dì)
Location:
Corso:
Anno:
Time Online: 0:53:49 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ciao,
non sono iscritto a Milano, ma all' Aquila...

24-01-2014 21:43
Click Here to See the Profile for GiulioP Click here to Send GiulioP a Private Message Find more posts by GiulioP Add GiulioP to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Walter
dsy adminz

User info:
Registered: Mar 2002
Posts: 5304 (0.66 al dì)
Location: Milano 90% - Valle Camonica 10%
Corso: Magistrale in Informatica
Anno: fine!
Time Online: 99 Days, 1:53:14 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ah ok, nessun problema :)
Sposto la discussione nel forum di "Linguaggi formali e automi", perché a Milano le grammatiche si studiano in quel corso, così forse ti sarà più facile trovare aiuto :)

__________________
"Ragione e passione sono timone e vela della nostra anima navigante." - Kahlil Gibran
"Senza musica la vita sarebbe un errore." - Friedrich Nietzsche

25-01-2014 12:09
Click Here to See the Profile for Walter Click Here to See the Blog of Walter Click here to Send Walter a Private Message Visit Walter's homepage! Find more posts by Walter Add Walter to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
GiulioP
.novellino.

User info:
Registered: Jan 2014
Posts: 3 (0.00 al dì)
Location:
Corso:
Anno:
Time Online: 0:53:49 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Grazie 1000

25-01-2014 12:16
Click Here to See the Profile for GiulioP Click here to Send GiulioP a Private Message Find more posts by GiulioP Add GiulioP to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 07:15.    Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.031 seconds (79.41% PHP - 20.59% MySQL) con 23 query.