You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
const unified = require('unified') const { parser } = require('@geut/jsdast') const tree = unified().use(parser).parse(` /** * @param {number} a * @param {number} b * @returns {number} */ function sum(a, b) { return a + b } `) console.log(JSON.stringify(tree, null, 2)) /* { "type": "Root", "children": [ { "type": "Module", "name": "Index", "doc": { "description": "", "tags": [] }, "children": [ {
The Lezer Parser System The problem of parsing structured text has resisted one-size-fits all solutions for over 60 years. Lezer isn't such a solution either, but it is a very decent parser generator, especially well suited for use in code editors. Lezer (the Dutch word for reader, pronounced like “laser”) provides a parser generator that outputs JavaScript modules, which can be loaded to parse co
import {Tenko, GOAL_MODULE, COLLECT_TOKENS_ALL} from 'src/index.mjs'; const { ast, // estree compatible AST tokens, // array of numbers (see Lexer) tokenCountSolid, // number of non-whitespace tokens tokenCountAny, // number of tokens of any kind } = Tenko( inputCode, // string { // Parse with script or module goal (module allows import/export) goalMode = GOAL_MODULE, // GOAL_MODULE | GOAL_SCRIPT
ast - AST utils for webassemblyjs cli - Toolbox for WebAssembly dce - Eliminate unused functions in your WASM binary eslint-plugin-webassembly - ESLint plugin for WebAssembly. floating-point-hex-parser - Parser function for floating point hexadecimals. helper-buffer - Buffer manipulation helpers helper-fsm - FSM implementation helper-wasm-bytecode - Constants for the wasm format helper-wasm-sectio
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く