diff options
Diffstat (limited to 'neb/structs.py')
| -rw-r--r-- | neb/structs.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/neb/structs.py b/neb/structs.py index cba0c03..f1cee95 100644 --- a/neb/structs.py +++ b/neb/structs.py @@ -128,6 +128,13 @@ class Arg: lazy = "~" if self.lazy else "" return f"{lazy}{opt}{self.name} {self.type_}" +def string_args(args, many): + out = [f"{arg}" for arg in args] + if many is not None: + many.name = "&" + out.append(f"{many}") + return " ".join(out).strip() + class Environment: def __init__(self, parent=None): |
