Half-Blood Programmer

ANTLR

How to Use ANTLR 4 on .NET

I once blogged heavily about how to use ANTLR 3 on .NET, and you can find all links from http://curah.microsoft.com/60338/how-to-use-antlr-3-in-net-projects Interesting that when I prepared those materials I was fully aware of the upcoming ANTLR 4, and kept an eye…

#SNMP Pro: Second Compiler Sneak Preview

In the first preview I demonstrated the basic building blocks of the Compiler Pro. In this post, we are going to review the new additions. Object Tree PanelAfter having the documents compiled, your first question must be “how can I…

Hacking xbuild: Part II, Handling ItemGroup Inside Target

The source code lives here right now, and my changes are under MIT/X11 just like the original code, https://github.com/lextm/mono/tree/xbuild_lex A lot of people experienced the same problem with xbuild like me, that ItemGroup tags inside Target are not evaluated correctly.…

TritonMate Words: #SNMP and Compact Framework

.NET Compact Framework was a monster released by Microsoft. After so many years, we observed many of its disadvantages, It is a ill-designed subset of full .NET Framework. Even many methods/classes in core class library are not available in CF…

TritonMate Words: Official Port to Mono for Android

As announced, my new laptop arrived last Monday. So this has been a fabulous week for me, My very first task was to finish the official port to Mono for Android, and today I think I have done a lot,…

TritonMate Words: Compile with ANTLR on Linux/Mono

It is fairly easy to compile #SNMP 7.5 on Windows, as the ANTLR C# runtime contains a MSBuild targets file which provides good enough integration. However, due to a Mono bug, this targets file cannot be loaded by xbuild. Thus,…

SharpSnmp vs. SnmpSharpNet

This post was based on my original answer to this Stackoverflow question, http://stackoverflow.com/questions/10841613/sharpsnmp-vs-snmpsharpnet/10845234#10845234 I try to provide a few updates and also provide more details. #SNMP homepage is at http://sharpsnmplib.codeplex.com. SNMP#NET homepage is at http://snmpsharpnet.com. The Beginning I started to…

How to Use ANTLR on .NET, Part IV

Part I: Start from ANTLR on Java Part II: Environment Setup Part III: C# Project Settings for ANTLR Part IV: ANTLR Grammar Tricks for C# Tip 1: Twin Files Approach If you have followed the series, you know already that…

How to Use ANTLR on .NET, Part III

Part I: Start from ANTLR on Java Part II: Environment Setup Part III: C# Project Settings for ANTLR 3 Now let’s see how to use ANTLR 3 in a C# project by analyzing SharpSnmpLib.AST.csproj in #SNMP, https://github.com/lextm/sharpsnmplib/blob/de58f7c050a0976654e7ee4b90a9217e99af6ae3/SharpSnmpLib/SharpSnmpLib.AST.csproj The above lines…

How to Use ANTLR on .NET, Part V

Part I: Start from ANTLR on Java Part II: Environment Setup Part III: C# Project Settings for ANTLR Part IV: ANTLR Grammar Tricks for C# Part V: Debugging I already shared an important tip with you in part IV, so…