├── .gitignore ├── Changelog.md ├── LICENSE.MIT ├── Project.sublime-project ├── README.md ├── bin └── ojc ├── ext └── esprima.js ├── lib ├── api.js ├── runtime.d.ts └── runtime.js ├── package.json ├── src ├── Builder.js ├── Compiler.js ├── Errors.js ├── FunctionMapper.js ├── Generator.js ├── Modifier.js ├── SourceMapper.js ├── Traverser.js ├── Utils.js ├── model │ ├── OJClass.js │ ├── OJCompileCallbackFile.js │ ├── OJConst.js │ ├── OJEnum.js │ ├── OJFile.js │ ├── OJGlobal.js │ ├── OJIvar.js │ ├── OJMethod.js │ ├── OJModel.js │ ├── OJObserver.js │ ├── OJProperty.js │ ├── OJProtocol.js │ ├── OJSymbolTyper.js │ ├── OJType.js │ └── index.js └── typechecker │ ├── DefinitionMaker.js │ ├── DiagnosticParser.js │ └── Typechecker.js └── test ├── issues ├── TestIssue1.oj ├── TestIssue10.oj ├── TestIssue112.oj ├── TestIssue114.oj ├── TestIssue125.oj ├── TestIssue126.oj ├── TestIssue16.oj ├── TestIssue2.oj ├── TestIssue20.oj ├── TestIssue21.oj ├── TestIssue31.oj ├── TestIssue34.oj ├── TestIssue35.oj ├── TestIssue41.oj ├── TestIssue58.oj ├── TestIssue59.oj ├── TestIssue65.oj ├── TestIssue69.oj ├── TestIssue77.oj ├── TestIssue82.oj ├── TestIssue85.oj ├── TestIssue88.oj └── TestIssue89.oj ├── mocha.opts ├── multi ├── TestErrors.oj └── Types.oj ├── single ├── Categories.oj ├── Each.oj ├── EnumAndConst.oj ├── Globals.oj ├── Inheritance.oj ├── IvarAndProperties.oj ├── Methods.oj ├── PropertyObservers.oj └── TestTypechecker.oj └── tests.js /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | Project.sublime-workspace -------------------------------------------------------------------------------- /Changelog.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/Changelog.md -------------------------------------------------------------------------------- /LICENSE.MIT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/LICENSE.MIT -------------------------------------------------------------------------------- /Project.sublime-project: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/Project.sublime-project -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/README.md -------------------------------------------------------------------------------- /bin/ojc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/bin/ojc -------------------------------------------------------------------------------- /ext/esprima.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/ext/esprima.js -------------------------------------------------------------------------------- /lib/api.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/lib/api.js -------------------------------------------------------------------------------- /lib/runtime.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/lib/runtime.d.ts -------------------------------------------------------------------------------- /lib/runtime.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/lib/runtime.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/package.json -------------------------------------------------------------------------------- /src/Builder.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/src/Builder.js -------------------------------------------------------------------------------- /src/Compiler.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/src/Compiler.js -------------------------------------------------------------------------------- /src/Errors.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/src/Errors.js -------------------------------------------------------------------------------- /src/FunctionMapper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/src/FunctionMapper.js -------------------------------------------------------------------------------- /src/Generator.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/src/Generator.js -------------------------------------------------------------------------------- /src/Modifier.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/src/Modifier.js -------------------------------------------------------------------------------- /src/SourceMapper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/src/SourceMapper.js -------------------------------------------------------------------------------- /src/Traverser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/src/Traverser.js -------------------------------------------------------------------------------- /src/Utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/src/Utils.js -------------------------------------------------------------------------------- /src/model/OJClass.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/src/model/OJClass.js -------------------------------------------------------------------------------- /src/model/OJCompileCallbackFile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/src/model/OJCompileCallbackFile.js -------------------------------------------------------------------------------- /src/model/OJConst.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/src/model/OJConst.js -------------------------------------------------------------------------------- /src/model/OJEnum.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/src/model/OJEnum.js -------------------------------------------------------------------------------- /src/model/OJFile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/src/model/OJFile.js -------------------------------------------------------------------------------- /src/model/OJGlobal.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/src/model/OJGlobal.js -------------------------------------------------------------------------------- /src/model/OJIvar.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/src/model/OJIvar.js -------------------------------------------------------------------------------- /src/model/OJMethod.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/src/model/OJMethod.js -------------------------------------------------------------------------------- /src/model/OJModel.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/src/model/OJModel.js -------------------------------------------------------------------------------- /src/model/OJObserver.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/src/model/OJObserver.js -------------------------------------------------------------------------------- /src/model/OJProperty.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/src/model/OJProperty.js -------------------------------------------------------------------------------- /src/model/OJProtocol.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/src/model/OJProtocol.js -------------------------------------------------------------------------------- /src/model/OJSymbolTyper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/src/model/OJSymbolTyper.js -------------------------------------------------------------------------------- /src/model/OJType.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/src/model/OJType.js -------------------------------------------------------------------------------- /src/model/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/src/model/index.js -------------------------------------------------------------------------------- /src/typechecker/DefinitionMaker.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/src/typechecker/DefinitionMaker.js -------------------------------------------------------------------------------- /src/typechecker/DiagnosticParser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/src/typechecker/DiagnosticParser.js -------------------------------------------------------------------------------- /src/typechecker/Typechecker.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/src/typechecker/Typechecker.js -------------------------------------------------------------------------------- /test/issues/TestIssue1.oj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/test/issues/TestIssue1.oj -------------------------------------------------------------------------------- /test/issues/TestIssue10.oj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/test/issues/TestIssue10.oj -------------------------------------------------------------------------------- /test/issues/TestIssue112.oj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/test/issues/TestIssue112.oj -------------------------------------------------------------------------------- /test/issues/TestIssue114.oj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/test/issues/TestIssue114.oj -------------------------------------------------------------------------------- /test/issues/TestIssue125.oj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/test/issues/TestIssue125.oj -------------------------------------------------------------------------------- /test/issues/TestIssue126.oj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/test/issues/TestIssue126.oj -------------------------------------------------------------------------------- /test/issues/TestIssue16.oj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/test/issues/TestIssue16.oj -------------------------------------------------------------------------------- /test/issues/TestIssue2.oj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/test/issues/TestIssue2.oj -------------------------------------------------------------------------------- /test/issues/TestIssue20.oj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/test/issues/TestIssue20.oj -------------------------------------------------------------------------------- /test/issues/TestIssue21.oj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/test/issues/TestIssue21.oj -------------------------------------------------------------------------------- /test/issues/TestIssue31.oj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/test/issues/TestIssue31.oj -------------------------------------------------------------------------------- /test/issues/TestIssue34.oj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/test/issues/TestIssue34.oj -------------------------------------------------------------------------------- /test/issues/TestIssue35.oj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/test/issues/TestIssue35.oj -------------------------------------------------------------------------------- /test/issues/TestIssue41.oj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/test/issues/TestIssue41.oj -------------------------------------------------------------------------------- /test/issues/TestIssue58.oj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/test/issues/TestIssue58.oj -------------------------------------------------------------------------------- /test/issues/TestIssue59.oj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/test/issues/TestIssue59.oj -------------------------------------------------------------------------------- /test/issues/TestIssue65.oj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/test/issues/TestIssue65.oj -------------------------------------------------------------------------------- /test/issues/TestIssue69.oj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/test/issues/TestIssue69.oj -------------------------------------------------------------------------------- /test/issues/TestIssue77.oj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/test/issues/TestIssue77.oj -------------------------------------------------------------------------------- /test/issues/TestIssue82.oj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/test/issues/TestIssue82.oj -------------------------------------------------------------------------------- /test/issues/TestIssue85.oj: -------------------------------------------------------------------------------- 1 | @implementation Foo 2 | @end 3 | 4 | true; -------------------------------------------------------------------------------- /test/issues/TestIssue88.oj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/test/issues/TestIssue88.oj -------------------------------------------------------------------------------- /test/issues/TestIssue89.oj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/test/issues/TestIssue89.oj -------------------------------------------------------------------------------- /test/mocha.opts: -------------------------------------------------------------------------------- 1 | --ui tdd 2 | -------------------------------------------------------------------------------- /test/multi/TestErrors.oj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/test/multi/TestErrors.oj -------------------------------------------------------------------------------- /test/multi/Types.oj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/test/multi/Types.oj -------------------------------------------------------------------------------- /test/single/Categories.oj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/test/single/Categories.oj -------------------------------------------------------------------------------- /test/single/Each.oj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/test/single/Each.oj -------------------------------------------------------------------------------- /test/single/EnumAndConst.oj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/test/single/EnumAndConst.oj -------------------------------------------------------------------------------- /test/single/Globals.oj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/test/single/Globals.oj -------------------------------------------------------------------------------- /test/single/Inheritance.oj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/test/single/Inheritance.oj -------------------------------------------------------------------------------- /test/single/IvarAndProperties.oj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/test/single/IvarAndProperties.oj -------------------------------------------------------------------------------- /test/single/Methods.oj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/test/single/Methods.oj -------------------------------------------------------------------------------- /test/single/PropertyObservers.oj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/test/single/PropertyObservers.oj -------------------------------------------------------------------------------- /test/single/TestTypechecker.oj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/test/single/TestTypechecker.oj -------------------------------------------------------------------------------- /test/tests.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musictheory/NilScript/HEAD/test/tests.js --------------------------------------------------------------------------------