JOURNAL ARTICLE

Solving LR Conflicts Through Context Aware Scanning

Abstract

This paper presents a new algorithm to compute the exact list of tokens expected by any LR syntax analyzer at any point of the scanning process. The lexer can, at any time, compute the exact list of valid tokens to return only tokens in this set. In the case than more than one matching token is in the valid set, the lexer can resort to a nested LR parser to disambiguate. Allowing nested LR parsing requires some slight modifications when building the LR parsing tables. We also show how LR parsers can parse conflictive and inherently ambiguous languages using a combination of nested parsing and context aware scanning. These expanded lexical analyzers can be generated from high level specifications.

Keywords:
Parsing Computer science Security token LR parser Context (archaeology) Set (abstract data type) Programming language Syntax Process (computing) Pattern matching Matching (statistics) Point (geometry) Parser combinator Artificial intelligence Natural language processing Operating system Mathematics

Metrics

0
Cited By
0.00
FWCI (Field Weighted Citation Impact)
6
Refs
0.09
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Topics

Logic, programming, and type systems
Physical Sciences →  Computer Science →  Artificial Intelligence
Security and Verification in Computing
Physical Sciences →  Computer Science →  Artificial Intelligence
Web Application Security Vulnerabilities
Physical Sciences →  Computer Science →  Information Systems

Related Documents

BOOK-CHAPTER

CANVuS: Context-Aware Network Vulnerability Scanning

Yunjing XuMichael BaileyEric Vander WeeleFarnam Jahanian

Lecture notes in computer science Year: 2010 Pages: 138-157
BOOK-CHAPTER

Context-Aware Decision Making for Maze Solving

Sheir Afgen ZaheerJong-Hwan Kim

Advances in intelligent systems and computing Year: 2013 Pages: 589-597
JOURNAL ARTICLE

Conflicts treatment for ubiquitous collective and context-aware applications

Thais SilvaLinnyer B. RuizAntonio A. F. Loureiro

Journal:   Journal of Applied Computing Research Year: 2011 Vol: 1 (1)Pages: 33-47
© 2026 ScienceGate Book Chapters — All rights reserved.