🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: nl.comp.programmeren
Article #150

Re: Yacc: tokens met verplicht dezelfde inhoud

#150
From: Jo Vermeulen
Date: Mon, 13 Jun 2005 13:15
21 lines
2269 bytes
Marco van de Voort schreef:
> On 2005-06-13, Jo Vermeulen <jo@lumumba.luc.ac.be> wrote:
> 
>>Ik vroeg me af of het mogelijk is in een Yacc grammar (te parsen met 
>>Bison) af te dwingen dat twee tokens de zelfde inhoud hebben?
> 
> 
> Normaal niet vziw, tenminste niet zoals jij wilt (met variabele tagnamen).
> Tenzij GNU Bison extra mogelijkheden heeft boven standaard yacc, om
> veelvoudig voorkomende gevallen van semantische analyse aan te pakken.
> 
> Dit is deel van de stap achter de eigenlijke parsing, nl semantische
> analyse. Vergelijkbaar met het nagaan van type info in een compiler.

OK, bedankt! Het is dan dus echt een stap voor de semantische analyse 
(typechecking etc.).

mvg,

-- 
Jo Vermeulen
Technical Details
Message-ID: <KvCdnZ5AIox1GzDfRVnyhg@scarlet.biz>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.scarlet.biz!news.scarlet.biz.POSTED!not-for-mail
References: <P6ydnTSX_PT68DDfRVnysQ@scarlet.biz> <slrndaqrru.1kec.marcov@snail.stack.nl>

Show Full Headers
Complete Article Headers
X-Google-Thread: 107324,a1b5e636917a7906
X-Google-Thread: fcea4,a1b5e636917a7906
X-Google-Attributes: gid107324,gidfcea4,public
X-Google-Language: DUTCH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.scarlet.biz!news.scarlet.biz.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 13 Jun 2005 08:15:20 -0500
Date: Mon, 13 Jun 2005 15:15:19 +0200
From: Jo Vermeulen <jo@lumumba.luc.ac.be>
User-Agent: Mozilla Thunderbird 1.0 (Macintosh/20041206)
X-Accept-Language: nl-NL, nl, en
MIME-Version: 1.0
Newsgroups: nl.comp.programmeren,be.comp.programming
Followup-To: nl.comp.programmeren,be.comp.programming
Subject: Re: Yacc: tokens met verplicht dezelfde inhoud
References: <P6ydnTSX_PT68DDfRVnysQ@scarlet.biz> <slrndaqrru.1kec.marcov@snail.stack.nl>
In-Reply-To: <slrndaqrru.1kec.marcov@snail.stack.nl>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <KvCdnZ5AIox1GzDfRVnyhg@scarlet.biz>
Lines: 21
NNTP-Posting-Host: 81.11.196.166
X-Trace: sv3-V9MoKkOQ3vO5qwDixBfgBP3bv25MHm7v/kGJrKYv7NAv79HwcS78kXpftll9X1+KobAtehpoymRY6x2!Hb6PTSq7J/5Ju+1V2oRUea5N9fqHFXqVDjpRFsoA5XmfjvpokDk75nhW+8ZEuhPxaGd9MODtzGY=
X-Complaints-To: abuse@scarlet.be
X-DMCA-Complaints-To: abuse@scarlet.biz
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.32