X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=H0Cd/wIevvDroN9VVCgdrux1gFnctv5qZ8un377YTxI=; b=lpljZyuK/NKib5BinhBz6/rQ6U599lBwfPnk/vIdF6QDfZiP5W3OypyglAbHCvZG3d dv2PqrG2UZPLtAVQLbWYVYO6uXTnFajRrMnffQ7UdzEhlPdXikHDlJYubc9yFZxcuECH GjYhzXuhuUWv408P5SdK45YywZKtrYYeotfICmMi9CXRI2c6OsMHbc683vMNaCeTk8s4 3yRpdO+xWlBfV+Z782iUAzpCyGY6LM9crM81vgFhDBIA9btEZJpYDCeevYq1EFEX0yHt GAj/fw5OyV5TXYpuwuR0nrjEi2+SQA4wNBwoy4jaVtFxWcQQN8gh/q9BV1iMIV3laIgz wq5A== MIME-Version: 1.0 X-Received: by 10.180.149.203 with SMTP id uc11mr1479675wib.7.1441500697281; Sat, 05 Sep 2015 17:51:37 -0700 (PDT) Date: Sat, 5 Sep 2015 16:51:37 -0800 Message-ID: Subject: [geda-user] Using parse_l.y etc. for parsers for other languages (via SWIG) From: "Britton Kerin (britton DOT kerin AT gmail DOT com) [via geda-user AT delorie DOT com]" To: geda-user AT delorie DOT com Content-Type: text/plain; charset=UTF-8 Reply-To: geda-user AT delorie DOT com Hi Lev, Peter suggested using the parser in pcb rather than rewrite in perl. I had a look and I think it's not a bad idea. Would get a faster parser and not too painful I think. I'm considering using SWIG with some functions to iterate over PCBType contents to rebuild the lists perl-side. As a bonus you would get parsers for lots of languages for cheap. It would be easiest to do this in-tree. Would this work for what you have in mind on your end? Would something like this be acceptable in main-line (as a --with-other-lang-parsers configure option or something)? Britton