Crate ldscript_parser

Source
Expand description

Linker Script parser

§Usage

extern crate ldscript_parser as lds;

use std::fs::File;
use std::io::Read;

fn main() {
    let script = &mut String::new();
    File::open("tests/msp430bt5190.ld").unwrap()
                .read_to_string(script).unwrap();

    println!("{:#?}", lds::parse(script).unwrap());
}

§References

Structs§

Region

Enums§

AssignOperator
BinaryOperator
Command
DataType
Expression
OutputSectionCommand
OutputSectionConstraint
OutputSectionType
RootItem
SectionCommand
SectionPattern
Statement
UnaryOperator

Functions§

parse
Parses the string that contains a linker script