
Product
Socket MCP Adds Org Alerts, Threat Feed Review, and Package Inspection
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.
@isl-lang/typechecker
Advanced tools
Semantic analyzer for ISL - validates AST, resolves types, builds symbol table
Semantic analyzer for ISL - validates AST, resolves types, and builds symbol tables.
npm install @isl-lang/typechecker
# or
pnpm add @isl-lang/typechecker
import { parse } from '@isl-lang/parser';
import { typecheck, TypeChecker } from '@isl-lang/typechecker';
const ast = parse(`
domain UserManagement {
type User {
id: uuid
name: string
email: email
}
intent CreateUser {
input { name: string, email: email }
output { user: User }
}
}
`);
// Quick validation
const result = typecheck(ast);
if (result.errors.length > 0) {
result.errors.forEach(err => console.error(err.message));
} else {
console.log('Type checking passed!');
console.log('Symbol table:', result.symbolTable);
}
// Or use the TypeChecker class for more control
const checker = new TypeChecker();
const checked = checker.check(ast);
typecheck(ast: AST): TypeCheckResultPerform type checking on an AST.
Returns:
errors - Array of type errors foundwarnings - Array of type warningssymbolTable - Resolved symbol tabletypeMap - Map of nodes to their resolved typesTypeCheckerClass for incremental type checking with caching.
const checker = new TypeChecker();
// Check multiple files
checker.addFile('user.isl', userAst);
checker.addFile('order.isl', orderAst);
// Get all errors
const errors = checker.getAllErrors();
// Get type for a specific node
const type = checker.getType(node);
import { TypeError, TypeErrorCode } from '@isl-lang/typechecker';
// Error codes
TypeErrorCode.UNDEFINED_TYPE
TypeErrorCode.TYPE_MISMATCH
TypeErrorCode.DUPLICATE_DEFINITION
TypeErrorCode.INVALID_CONTRACT
Full documentation: https://isl-lang.dev/docs/typechecker
MIT
FAQs
Semantic analyzer for ISL - validates AST, resolves types, builds symbol table
The npm package @isl-lang/typechecker receives a total of 6 weekly downloads. As such, @isl-lang/typechecker popularity was classified as not popular.
We found that @isl-lang/typechecker demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.

Research
More than 140 Mastra npm packages were compromised in a supply chain attack that used a typosquatted dependency to deliver a cross-platform infostealer during installation.