EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  <2024 Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  <2024
<== Date ==> <== Thread ==>

Subject: RE: Seeking EPICS Database (.db) File Parser/Generator
From: GAGET Alexis via Tech-talk <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Thu, 8 Feb 2024 15:14:10 +0000
Hello,
To complete Remi's answer, we also developped a python library to user tree-sitter-epics and py-tre-sitter, named smartly  py-tree-sitter-epics. 
It parses EPICS Databases and creates a python Object that can be used easily.
It's not yet on a public git repo, but it's on pypi, with the source and a README : https://pypi.org/project/py-tree-sitter-epics

Cheers

-----Message d'origine-----
De : Tech-talk <tech-talk-bounces at aps.anl.gov> De la part de NICOLE Remi via Tech-talk
Envoyé : mercredi 7 février 2024 14:00
À : tech-talk at aps.anl.gov
Objet : Re: Seeking EPICS Database (.db) File Parser/Generator

Hey,

I have a tree-sitter based database parser over here:

https://github.com/epics-extensions/tree-sitter-epics

You can use this project from C, Rust, Node.js, or WebAssembly (see at the bottom of the README), or Python:

https://github.com/tree-sitter/py-tree-sitter

Note that if you want to parse your database files for automation purposes, you will probably have to expand macros manually before parsing them.

Have a great day!
--
Rémi NICOLE <remi.nicole at cea.fr>
CEA/DRF/IRFU/DIS/LDISC

On Wed, 2024-02-07 at 10:50 +0000, Aqeel Alshafei - STFC UKRI via Tech- talk wrote:
> 
> Hello,
> 
> 
> I am currently in search of a tool capable of parsing and/or 
> generating EPICS database (.db) files. If anyone has access to such a 
> tool or knows of a facility where it is available.
> 
> Best Regards
> 
> 
> 
> 
> Aqeel AlShafei
> Software Engineer - ISIS Controls Systems Science and Technology 
> Facilities Council aqeel.alshafei at stfc.ac.uk

References:
Seeking EPICS Database (.db) File Parser/Generator Aqeel Alshafei - STFC UKRI via Tech-talk
Re: Seeking EPICS Database (.db) File Parser/Generator NICOLE Remi via Tech-talk

Navigate by Date:
Prev: CSS Phoebus Actions Samuel Manger via Tech-talk
Next: Re: [EXTERNAL] CSS Phoebus Actions Hartman, Steven via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  <2024
Navigate by Thread:
Prev: Re: Seeking EPICS Database (.db) File Parser/Generator NICOLE Remi via Tech-talk
Next: Re: Seeking EPICS Database (.db) File Parser/Generator Ralph Lange via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  <2024
ANJ, 08 Feb 2024 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·