1. 28 Apr, 2001 3 commits
    • Per Cederqvist's avatar
      (lexer.__init__): Set __builtin_types, __builtin_aggregates, · 5f97a348
      Per Cederqvist authored
      	__builtin_typelike, __tindex_seen and __types_used.
      (lexer.__seen_type): New method.
      (lexer.toplevel_tindex): Implement.
      (lexer.__parse_userdefined_types): New method, not yet implemented.
      (lexer.__bad_type): Check that the casing rules for user-defined
      	types are adhered to.
      5f97a348
    • Per Cederqvist's avatar
      (reader.check_paren_null): New name for former check_paren_eof. All · 229ce642
      Per Cederqvist authored
      	callers updated.  Clear __parenstack, so that errors are
      	reported only once.
      (lexer.__init__): Initialize __linkhere.
      (lexer.toplevel_node): Check that no @linkhere or closing
      	parenthesis are pending.
      (lexer.toplevel_reqdlink, lexer.__assert_no_linkhere)
      (lexer.toplevel_linkhere): New methods.
      229ce642
    • Per Cederqvist's avatar
      (reader.parens, reader.rev_parens): New constants. · 50aaa78d
      Per Cederqvist authored
      (reader.__init__): Initialise __parenstack, __errfound and __quoted.
      (reader.error, reader.errfound): New methods.
      (reader.ungetc, reader.getc_eofok): Handle quoting and parens nesting.
      (reader.check_paren_eof): Report unbalanced parens at EOF.
      (lexer.__init__): Moved __errfound to the reader class.
      (lexer.run): Check for unbalanced parens at EOF.
      (lexer.toplevel_reqlink): Ignore.
      (lexer.toplevel_reqdlink, lexer.toplevel_linkhere): Ignore, for
      	now.  We should check nesting et c of these.
      (lexer.toplevel_unmacro): Ignore.
      (lexer.error): Moved the implementation to the reader class.  This
      	is only a wrapper.
      50aaa78d
  2. 18 Apr, 2001 2 commits