This post is a draft. –Ken This post describes the problem of extracting the C++ grammar from the ISO/IEC 14882 Specification. “Where is the Spec?”
Author Archives: kaby76
Converting XText grammars into Antlr4
Recently, a developer asked a question about using an Antlr grammar generated from an XText grammar. The grammar, which was added to a Git version control repo, was generated from an XText file elsewhere in the Git repo. Besides the fact that the generated grammar was completely out of sync from the XText source, it …
Parser generators on the Web
In my implementation of Trash on the Web, I collected a list of some online parser generators. There aren’t many, and most have a restricted set of features. For example, REx is probably the best in conversion and parser generation, but it doesn’t have basic grammar analysis. Many of the sites do not offer EBNF …
Writing a universal programming language extension for VSCode
There was an interesting question in Stackoverflow today: Is it possible to write an extension for VSCode that can accept any grammar and support semantic highlighting, defs/refs, and other language features? I’ve always toyed with the idea of having a â€universal language server†with the server dynamically reading a grammar then parsing the input. So, …
Continue reading “Writing a universal programming language extension for VSCode”
Testing of Antlr language targets
A few weeks of work, and I finally have a driver generator that can test any grammar with any target.
Forking a Git repo more than once
Github does not support forking a repo more than once. If you try to do that, it’ll just redirect to your original fork. That could be a problem if you have an outstanding pull request on a branch you want to modify for an unrelated change. Rather than muck around with the forked repo, create …
System Service Exception BSOD
I’ve been seeing BSOD, and did a dism and sfc. Looks like there were some problems… C:\WINDOWS\system32>dism /online /cleanup-image /restorehealth Deployment Image Servicing and Management toolVersion: 10.0.19041.572 Image Version: 10.0.19042.685 [==========================100.0%==========================] The restore operation completed successfully.The operation completed successfully. C:\WINDOWS\system32>sfc /scannow Beginning system scan. This process will take some time. Beginning verification phase of system …
Release 8.3 of Antlrvsix
After two months of work, I’m a few days away from making release 8.3 for Antlrvsix. Most of the changes actually pertain to Trash, the command-line interpreter shell contained within Antlrvsix, but there are a few other important changes to the extension itself. Release 8.3 features an all-new input/output pipe implementation between commands in Trash. …
Antlrvsix and Trash release v8.2
Released yesterday is version 8.2 of Antlrvsix and Trash. This release enhances the Trash shell further, making it look more and more like a full-fledged analogy to the Bash shell. However, Trash uses the lingua-franca of parse trees and XPath. In this release, one can now pipe output–parse trees–between commands. The find command has been …
Updates to Antlrvsix
Many months ago, I had VSCode working with Antlrvsix. Back then, rather than release what I had, I decided to put it off because I was concentrating my effort on getting the server capabilities expanded. But, the main problem why I didn’t release a VSCode extension was that I could not support “semantic highlighting” in …