Skip to content

Handle VBScript's case insensitivity #163

@freezy

Description

@freezy

Still a few items on the list:

  • Handle global scope (handled at runtime, uses a ScopeHandler proxy)
  • Handle table item APIs (sorted out at compile time)
  • Handle enums (handled at compile time, using VbsApi)
  • Handle global API (compile time, also VbsApi)
  • Handle stdlib calls (compile time, also VbsApi)
  • Handle ActiveX COM implementations (Make ActiveX objects case-insensitive #174)
  • Handle local scope

And probably more.

TODO

COM Implementations

I don't think they can be handled at compile time, since they are instances created by the table script we cannot query when compiling (table elements, enums etc work because we have them all at compile time).

So the getObject() method should return a ScopeHandler-like proxy that keeps an index when accessing props and methods and returns the correctly spelled version.

Local Scope

This should be doable at compile time, since all variables are declared in the same scope and don't come from other included files we know nothing about. I think I've tried this already but ascope choked at the AST we have when we do this.

Metadata

Metadata

Assignees

Labels

scriptingRelated to the VBScript port

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions