Lay-it-out: Interactive Design of Layout-Sensitive Grammars

03/30/2022
by   Fengmin Zhu, et al.
0

Layout-sensitive grammars have been adopted in many modern programming languages. However, tool support for this kind of grammars still remains limited and immature. In this paper, we present Lay-it-out, an interactive framework for layout-sensitive grammar design. Beginning with a user-defined ambiguous grammar, our framework refines it by synthesizing layout constraints through user interaction. For ease of interaction, a shortest nonempty ambiguous sentence (if exists) is automatically generated by our bounded ambiguity checker via SMT solving. The soundness and completeness of our SMT encoding are mechanized in the Coq proof assistant. Case studies on real grammars, including a full grammar, demonstrate the practicality and scalability of our approach.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
08/26/2019

CLS-SMT: Bringing Together Combinatory Logic Synthesis and Satisfiability Modulo Theories

We introduce an approach that aims to combine the usage of satisfiabilit...
research
08/02/2013

Inverse Procedural Modeling of Facade Layouts

In this paper, we address the following research problem: How can we gen...
research
12/26/2022

Interactive Layout Drawing Interface with Shadow Guidance

It is difficult to design a visually appealing layout for common users, ...
research
03/17/2018

Meta-F*: Metaprogramming and Tactics in an Effectful Program Verifier

Verification tools for effectful programming languages often rely on aut...
research
02/01/2023

AmbiCoref: Evaluating Human and Model Sensitivity to Ambiguous Coreference

Given a sentence "Abby told Brittney that she upset Courtney", one would...
research
02/23/2020

ORCSolver: An Efficient Solver for Adaptive GUI Layout with OR-Constraints

OR-constrained (ORC) graphical user interface layouts unify conventional...
research
08/04/2020

GPLAN: Computer-Generated Dimensioned Floorplans for given Adjacencies

In this paper, we present GPLAN, software aimed at constructing dimensio...

Please sign up or login with your details

Forgot password? Click here to reset