
Security News
Open Source Maintainers Demand Ability to Block Copilot-Generated Issues and PRs
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
@microsoft/powerquery-parser
Advanced tools
A parser for the Power Query/M language, written in TypeScript. Designed to be consumed by other projects.
A few minimal code samples can be found in example.ts.
If you're planning on parsing static documents then you should use the tryLexAndParse
function located in src/jobs.ts. This function attempts to lex a document, pass the results to the parser, and then return the outcome.
If you're planning to perform repeated lexing and parses, such as being a part of a Visual Studi Code extension, then for performance reasons you should avoid the tryLexAndParse
helper function. Instead you should create a Lexer instance and as your text changes update the lexer using the public APIs located in src/lexer/lexer.ts. Once you need to parse the document follow the same steps in src/jobs.ts
; create a LexerSnapshot and pass the result to the parser.
The parser is a rather naive recursive descent parser with limited backtracking. It mostly follows official specification released in October 2016. Deviations from the specification should be marked down in specification.md
This project uses prettier as the primary source of style enforcement. Additional style requirements are located in style.md.
npm install
npm run-script build
npm install
npm test
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
FAQs
A parser for the Power Query/M formula language.
The npm package @microsoft/powerquery-parser receives a total of 276 weekly downloads. As such, @microsoft/powerquery-parser popularity was classified as not popular.
We found that @microsoft/powerquery-parser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers 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.
Security News
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
Research
Security News
Malicious Koishi plugin silently exfiltrates messages with hex strings to a hardcoded QQ account, exposing secrets in chatbots across platforms.
Research
Security News
Malicious PyPI checkers validate stolen emails against TikTok and Instagram APIs, enabling targeted account attacks and dark web credential sales.