中文
相关论文

相关论文: Packrat Parsing: Simple, Powerful, Lazy, Linear Ti…

200 篇论文

A recursive descent parser is built from a set of mutually-recursive functions, where each function directly implements one of the nonterminals of a grammar. A packrat parser uses memoization to reduce the time complexity for recursive…

编程语言 · 计算机科学 2020-07-08 Luke A. D. Hutchison

We present the squirrel parser, a PEG packrat parser that directly handles all forms of left recursion with optimal error recovery, while maintaining linear time complexity in the length of the input even in the presence of an arbitrary…

编程语言 · 计算机科学 2026-01-09 Luke A. D. Hutchison

Top-down parsing has received much attention recently. Parsing expression grammars (PEG) allows construction of linear time parsers using packrat algorithm. These techniques however suffer from problem of prefix hiding. We use alternative…

形式语言与自动机理论 · 计算机科学 2012-05-10 Ondřej Bílka

This paper introduces a new derivative parsing algorithm for recognition of parsing expression grammars. Derivative parsing is shown to have a polynomial worst-case time bound, an improvement on the exponential bound of the recursive…

形式语言与自动机理论 · 计算机科学 2017-08-23 Aaron Moss

Parsing expression grammars (PEGs) offer a natural opportunity for building verified parser interpreters based on higher-order parsing combinators. PEGs are expressive, unambiguous, and efficient to parse in a top-down recursive descent…

计算机科学中的逻辑 · 计算机科学 2020-01-14 Clement Blaudeau , Natarajan Shankar

We present a novel parsing algorithm for all context-free languages, based on computing the relation between configurations and reaching transitions in a recursive transition network. Parsing complexity w.r.t. input length matches the state…

形式语言与自动机理论 · 计算机科学 2019-02-19 Grzegorz Herman

Computational interpretations of linear logic allow static control of memory resources: the data produced by the program are endowed through its type with attributes that determine its life cycle, and guarantee safe deallocation. The use of…

编程语言 · 计算机科学 2025-10-09 Hector Gramaglia

Parsing is a fundamental building block in modern compilers, and for industrial programming languages, it is a surprisingly involved task. There are known approaches to generate parsers automatically, but the prevailing consensus is that…

形式语言与自动机理论 · 计算机科学 2022-09-20 Joe Zimmerman

Rascal is a high-level transformation language that aims to simplify software language engineering tasks like defining program syntax, analyzing and transforming programs, and performing code generation. The language provides several…

编程语言 · 计算机科学 2018-02-07 Ahmad Salim Al-Sibahi

Adaptive reasoning is essential for aligning the computational effort of large language models (LLMs) with the intrinsic difficulty of problems. Current chain-of-thought methods boost reasoning ability but indiscriminately generate long…

人工智能 · 计算机科学 2025-12-17 Ruofan Zhang , Bin Xia , Zhen Cheng , Cairen Jian , Minglun Yang , Ngai Wong , Yuan Cheng

We consider, as a means of making programming languages more flexible and powerful, a parsing algorithm in which the parser may freely modify the grammar while parsing. We are particularly interested in a modification of the canonical LR(1)…

编程语言 · 计算机科学 2007-05-23 Blake Hegerle

Traditionally, in linearly typed languages, consuming a linear resource is synonymous with its syntactic occurrence in the program. However, under the lens of non-strict evaluation, linearity can be further understood semantically, where a…

编程语言 · 计算机科学 2025-11-26 Rodrigo Mesquita , Bernardo Toninho

Children acquire their native language with apparent ease by observing how language is used in context and attempting to use it themselves. They do so without laborious annotations, negative examples, or even direct corrections. We take a…

计算与语言 · 计算机科学 2021-03-18 Christopher Wang , Candace Ross , Yen-Ling Kuo , Boris Katz , Andrei Barbu

We present the LATE algorithm, an asynchronous variant of the Earley algorithm for parsing context-free grammars. The Earley algorithm is naturally task-based, but is difficult to parallelize because of dependencies between the tasks. We…

计算与语言 · 计算机科学 2023-10-17 Willow Ahrens , John Feser , Robin Hui

Semantic parsing has made significant progress, but most current semantic parsers are extremely slow (CKY-based) and rather primitive in representation. We introduce three new techniques to tackle these problems. First, we design the first…

计算与语言 · 计算机科学 2014-12-17 Kai Zhao , Liang Huang

Latent reasoning represents a new development in Transformer language models that has shown potential in compressing reasoning lengths compared to chain-of-thought reasoning. By directly passing the information-rich previous final latent…

机器学习 · 计算机科学 2025-11-27 Alex Ning , Yen-Ling Kuo , Gabe Gomes

We give a new treatment of tabular LR parsing, which is an alternative to Tomita's generalized LR algorithm. The advantage is twofold. Firstly, our treatment is conceptually more attractive because it uses simpler concepts, such as grammar…

cmp-lg · 计算机科学 2008-02-03 Mark-Jan Nederhof , Giorgio Satta

What happens when a language model thinks without words? Standard reasoning LLMs verbalize intermediate steps as chain-of-thought; latent reasoning transformers (LRTs) instead perform deliberation entirely in continuous hidden space. We…

计算与语言 · 计算机科学 2026-02-10 Jasmine Cui , Charles Ye

Scientific computing requires handling large linear models, which are often composed of structured matrices. With increasing model size, dense representations quickly become infeasible to compute or store. Matrix-free implementations are…

数学软件 · 计算机科学 2021-11-30 Christoph Wilfried Wagner , Sebastian Semper , Jan Kirchhof

Grammar-based compression is a popular and powerful approach to compressing repetitive texts but until recently its relatively poor time-space trade-offs during real-life construction made it impractical for truly massive datasets such as…

‹ 上一页 1 2 3 10 下一页 ›