ldgen: additional documentations re. internal workings

This commit is contained in:
Renz Bagaporo
2021-03-05 17:49:10 +08:00
parent acd2385d0e
commit 6088af1193
7 changed files with 248 additions and 29 deletions

View File

@@ -24,8 +24,11 @@ from pyparsing import ParseException, Suppress, White
class LinkerScript:
"""
Encapsulates a linker script template file. Finds marker syntax and handles replacement to generate the
final output.
Process a linker script template, which contains markers with grammar:
[<target>]
The <target> is where output commands (see output_commands.py) are placed.
"""
Marker = collections.namedtuple('Marker', 'target indent rules')