Package kawa.standard

Class define_unit

  • All Implemented Interfaces:
    gnu.kawa.format.Printable, Named

    public class define_unit
    extends Syntax
    • Field Detail

      • define_unit

        public static final define_unit define_unit
      • define_base_unit

        public static final define_unit define_base_unit
    • Constructor Detail

      • define_unit

        public define_unit​(boolean base)
    • Method Detail

      • scanForDefinitions

        public boolean scanForDefinitions​(Pair st,
                                          ScopeExp defs,
                                          Translator tr)
        Description copied from class: Syntax
        Check if a statement is a definition, for initial pass. Semi-deprecated - should convert calls to use scanForm.
        Overrides:
        scanForDefinitions in class Syntax
        Parameters:
        st - the statement to check
        defs - where to add Declarations for found definitions
        tr - the compilation state
        Returns:
        true on success