Skip to content

Instantly share code, notes, and snippets.

View AdrianV's full-sized avatar

Adrian Veith AdrianV

  • Veith System GmbH
  • Frasdorf, Germany
View GitHub Profile
@zah
zah / ImportNim.cs
Last active October 22, 2017 12:32
Importing Nim modules from C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.InteropServices;
namespace nim_sharp
{
[StructLayout(LayoutKind.Sequential)]
import strutils
from os import ParamCount, ParamStr
import tables
export tables.`[]`
#### Simple string lexer ###
type
PLexer = ref TLexer
TLexer = object
str: string