diff --git a/parser/parser-fplo/FploInputParser.py b/parser/parser-fplo/FploInputParser.py index 25fef7ee5b0713ce3237b583f0ac4d47d8618e65..4a06660b6a925a8b629f959b70bf9fe72d5d6da0 100755 --- a/parser/parser-fplo/FploInputParser.py +++ b/parser/parser-fplo/FploInputParser.py @@ -1,4 +1,16 @@ #!/usr/bin/env python +"""FPLO uses C-inspired input files. They are not quite C, so no conventional +C parser library can be used. +Among the more complex features are nested structs, as well +as arrays-of-struct. + +This module is implemented as follows: +1) tokenizer for the used C subset/dialect +2) transformation of tokenized output to concrete syntax tree +3) transformation of concrete syntax tree to abstract syntax tree (AST) +TODO: +4) transform AST to metaInfo backend calls +""" import setup_paths import re import sys