PreviousUpNext

15.3.233  src/lib/compiler/front/parser/main/mythryl-parser-guts.api

## mythryl-parser-guts.api
## (C) 2001 Lucent Technologies, Bell Labs

# Compiled by:
#     src/lib/compiler/front/parser/parser.sublib



###               "Hobbits are the most amazing creatures.
###                You can learn everything there is to know
###                about their ways in a month, and after a
###                hundred years they can still surprise you!"
###
###                                       -- Gandalf


stipulate
    package raw =  raw_syntax;                                                          # raw_syntax                    is from   src/lib/compiler/front/parser/raw-syntax/raw-syntax.pkg
    package sci =  sourcecode_info;                                                     # sourcecode_info               is from   src/lib/compiler/front/basics/source/sourcecode-info.pkg
herein

    api Mythryl_Parser_Guts {
        #
        Mythryl_Parse_Result                                                            # "Mythryl_Parse_Result" is referenced only here and in    src/lib/compiler/front/parser/main/mythryl-parser-guts.pkg
          #
          = RAW_DECLARATION raw::Declaration
          | END_OF_FILE                                                                 # End of file reached.
          | PARSE_ERROR                                                                 # Syntactic or semantic errors while parsing. 
          ;                                                                             #
                                                                                        # These above values are generated (only) in    src/lib/compiler/front/parser/main/mythryl-parser-guts.pkg
                                                                                        # and consumed (only) in                        src/lib/compiler/front/parser/main/parse-mythryl.pkg

        # Wrapper in      ROOT/src/lib/compiler/front/parser/main/parse-mythryl.pkg
        # Implemented in  ROOT/src/lib/compiler/front/parser/main/mythryl-parser-guts.pkg

        prompt_read_parse_and_return_one_toplevel_mythryl_expression
            :
            sci::Sourcecode_Info
         -> Void
         -> Mythryl_Parse_Result;
    };
end;


Comments and suggestions to: bugs@mythryl.org

PreviousUpNext