Documention for: rebol-text-parser.r
Created by: brett
on: 6-Mar-2013
Format: html
Downloaded on: 19-Apr-2024

SIMPLE REBOL TEXT PARSER

1. What is this all about?

Parse REBOL code in textual form. Allow mapping of REBOL blocks to their positions in a textual representation.

There is more documentation within the comments of the script.

2. How do you use the functions?

        if not value? 'script-manager [
            script-manager: func ['word /local needs][
                if any [
                    :word <> 'do-needs
                    none? in system/script/header 'needs
                    none? needs: system/script/header/needs
                ][return]
                if not parse needs: compose [(:needs)] [some file!][make error! {Expected a NEEDS block consisting of file!.}]
                foreach [file] needs [do file]
            ]
        ]

3. About the script author

Brett Handley started programming REBOL early 2000 and maintains a site of REBOL information and scripts at:

http://www.codeconscious.com/rebol/