{"id":20359451,"url":"https://github.com/herberthe/unist-formula-ast","last_synced_at":"2026-06-07T11:32:01.947Z","repository":{"id":240270014,"uuid":"801658034","full_name":"HerbertHe/unist-formula-ast","owner":"HerbertHe","description":"Excel formula ast to implement unist specification","archived":false,"fork":false,"pushed_at":"2024-06-07T09:42:00.000Z","size":91,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-15T01:55:19.724Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HerbertHe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-16T16:55:09.000Z","updated_at":"2024-06-07T09:42:04.000Z","dependencies_parsed_at":"2024-11-14T23:34:07.454Z","dependency_job_id":null,"html_url":"https://github.com/HerbertHe/unist-formula-ast","commit_stats":null,"previous_names":["herberthe/unist-formula-ast"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HerbertHe%2Funist-formula-ast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HerbertHe%2Funist-formula-ast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HerbertHe%2Funist-formula-ast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HerbertHe%2Funist-formula-ast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HerbertHe","download_url":"https://codeload.github.com/HerbertHe/unist-formula-ast/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241895672,"owners_count":20038566,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T23:34:00.387Z","updated_at":"2025-03-04T18:19:38.790Z","avatar_url":"https://github.com/HerbertHe.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# unist-formula-ast\n\n[![version](https://img.shields.io/npm/v/unist-formula-ast.svg)](https://www.npmjs.com/package/unist-formula-ast)\n[![download](https://img.shields.io/npm/dm/unist-formula-ast.svg)](https://www.npmjs.com/package/unist-formula-ast)\n\nExcel formula ast to implement unist specification.\n\n****\n\nunist-formula-ast is a specification for representing Excel Formula in a [syntax tree][unist].\n\nIf you want to know how to use *unist-formula-ast* directly, read [Getting Started](./getting-started.md)!\n\n## Introduction\n\nThis document defines a format for [abstract syntax tree][unist]. Development of unist-formula-ast started in May 2024. This specification is written in a ~~[Web IDL][web-idl]-like~~ TypeScript grammar.\n\n### Where this specification fits\n\n## Types\n\nIf you are using TypeScript, you can use the unist types by installing them with npm:\n\n```sh\nnpm install unist-formula-ast\n```\n\n## Nodes(abstract)\n\n### `BasicNode`\n\n```typescript\ninterface IBasicNode {\n  type: BasicNodeType | BasicCalculationNodeType\n  value?: string | number\n  position: IBasicNodePosition\n  children?: IBasicNode[]\n}\n```\n\n## Nodes\n\n### `BasicCalculationNode`\n\n```typescript\ntype BasicCalculationNodeType =\n  | \"Addition\"\n  | \"Subtraction\"\n  | \"Multiplication\"\n  | \"Division\"\n\ninterface IBasicCalculationNode extends IBasicNode {\n  type: BasicCalculationNodeType\n  children: IBasicNode[]\n}\n```\n\n### `NumberNode`\n\n```typescript\ninterface INumberNode extends IBasicNode {\n  type: \"Number\"\n  value: number\n}\n```\n\n### `VariableNode`\n\n```typescript\ninterface IVariableNode extends IBasicNode {\n  type: \"Variable\"\n  value: string\n}\n```\n\n### `FuntionCallNode`\n\n```typescript\ninterface IFuntionCallNode extends IBasicNode {\n  type: \"Function\"\n  value: string\n  children: FuntionCallArgumentType[]\n}\n```\n\nWant to know more definitions for *unist-formula-ast*, see [src/types.ts](./src/types.ts)\n\n## References\n\n- [Peggy](https://github.com/peggyjs/peggy): The parser of unist-formula-ast is generated by this project.\n- [unist](https://github.com/syntax-tree/unist): The specification of unist-formula-ast is based on this project.\n\n## LICENSE\n\nMIT \u0026copy; Herbert He\n\n[unist]: https://github.com/syntax-tree/unist#syntax-tree\n\n[web-idl]: https://heycam.github.io/webidl/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fherberthe%2Funist-formula-ast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fherberthe%2Funist-formula-ast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fherberthe%2Funist-formula-ast/lists"}