Skip to content

Instantly share code, notes, and snippets.

@douglatornell
douglatornell / namelist.py
Last active December 20, 2024 08:10 — forked from krischer/namelist.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Fortran namelist parser. Converts nameslists to python dictionaries.
Should be fairly robust. Cannot be used for verifying fortran namelists as it
is rather forgiving.
Error messages during parsing are kind of messy right now.