CSharpLox | platform compiler/interpreter .NET Standard implementation | Interpreter library
kandi X-RAY | CSharpLox Summary
kandi X-RAY | CSharpLox Summary
A cross-platform compiler/interpreter .NET Standard implementation of the Lox language.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of CSharpLox
CSharpLox Key Features
CSharpLox Examples and Code Snippets
Community Discussions
Trending Discussions on CSharpLox
QUESTION
I have recently caught the language bug, and as part of my learning process I have begun working my way through the Crafting Interpreters book by Bob Nystrom and attempting to recreate the JLOX language interpreter in C#.
The "J" in JLOX refers to the sample code in the Book being implemented in Java.
In the "Working with Trees" and "A (Not Very) Pretty Printer" sections of the bok, Bob introduces the Visitor pattern as a solution to the "Expression Problem".
I have attempted to translate the Java code into C#, but am now stumped with the following compiler error:
"ASTPrinter.VisitBinaryExpr(Expression.Binary): No suitable method found to override" (click to see the image)
The two relevant code files are:
Expression.cs:
using System;
...ANSWER
Answered 2017-Jul-21 at 03:33Your Expression.Visitor
is an interface so there is nothing to override.
Simply put:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install CSharpLox
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page