SwePub
Tyck till om SwePub Sök här!
Sök i LIBRIS databas

  Utökad sökning

onr:"swepub:oai:lup.lub.lu.se:e9290156-9092-491f-ba17-767e5b90ca11"
 

Sökning: onr:"swepub:oai:lup.lub.lu.se:e9290156-9092-491f-ba17-767e5b90ca11" > Natural and flexibl...

Natural and flexible error recovery for generated parsers

de Jonge, Maartje (författare)
Delft University of Technology
Söderberg, Emma (författare)
Lund University,Lunds universitet,Institutionen för datavetenskap,Institutioner vid LTH,Lunds Tekniska Högskola,Department of Computer Science,Departments at LTH,Faculty of Engineering, LTH
Technology, Delft University (författare)
Delft University of Technology
visa fler...
Visser, Eelco (författare)
Delft University of Technology
visa färre...
 (creator_code:org_t)
Berlin, Heidelberg : Springer Berlin Heidelberg, 2010
2010
Engelska.
Ingår i: Software Language Engineering : Second International Conference, SLE 2009, Denver, CO, USA, October 5-6, 2009, Revised Selected Papers - Second International Conference, SLE 2009, Denver, CO, USA, October 5-6, 2009, Revised Selected Papers. - Berlin, Heidelberg : Springer Berlin Heidelberg. - 1611-3349 .- 0302-9743. - 9783642121067 - 9783642121074 ; 5969, s. 204-223
  • Bokkapitel (refereegranskat)
Abstract Ämnesord
Stäng  
  • Parser generators are an indispensable tool for rapid language devel- opment. However, they often fall short of the finesse of a hand-crafted parser, built with the language semantics in mind. One area where generated parsers have pro- vided unsatisfactory results is that of error recovery. Good error recovery is both natural, giving recovery suggestions in line with the intention of the programmer; and flexible, allowing it to be adapted according to language insights and lan- guage changes. This paper describes a novel approach to error recovery, taking into account not only the context-free grammar, but also indentation usage. We base our approach on an extension of the SGLR parser that supports fine-grained error recovery rules and can be used to parse complex, composed languages. We take a divide-and-conquer approach to error recovery: using indentation, erro- neous regions of code are identified. These regions constrain the search space for applying recovery rules, improving performance and ensuring recovery sug- gestions local to the error. As a last resort, erroneous regions can be discarded. Our approach also integrates bridge parsing to provide more accurate suggestions for indentation-sensitive language constructs such as scopes. We evaluate our ap- proach by comparison with the JDT Java parser used in Eclipse.

Ämnesord

NATURVETENSKAP  -- Data- och informationsvetenskap -- Datavetenskap (hsv//swe)
NATURAL SCIENCES  -- Computer and Information Sciences -- Computer Sciences (hsv//eng)

Publikations- och innehållstyp

kap (ämneskategori)
ref (ämneskategori)

Hitta via bibliotek

Till lärosätets databas

Sök utanför SwePub

Kungliga biblioteket hanterar dina personuppgifter i enlighet med EU:s dataskyddsförordning (2018), GDPR. Läs mer om hur det funkar här.
Så här hanterar KB dina uppgifter vid användning av denna tjänst.

 
pil uppåt Stäng

Kopiera och spara länken för att återkomma till aktuell vy