From 6da95ed9ca899db702c6a7b17d2d7db14dbb0de4 Mon Sep 17 00:00:00 2001 From: "rumpf_a@web.de" <> Date: Sun, 21 Feb 2010 23:44:53 +0100 Subject: [PATCH] start of yamllexer --- lib/pure/variants.nim | 4 +- lib/pure/yamllexer.nim | 290 ++++++++++++++++++++++++++++++ tests/accept/compile/mvarious.nim | 6 + tests/accept/compile/tccgen1.nim | 67 +++++++ tests/accept/run/mbind3.nim | 9 + tests/accept/run/tbug511622.nim | 9 + tests/reject/mbind4.nim | 9 + tests/reject/tinc.nim | 5 + 8 files changed, 397 insertions(+), 2 deletions(-) create mode 100644 lib/pure/yamllexer.nim create mode 100644 tests/accept/compile/mvarious.nim create mode 100644 tests/accept/compile/tccgen1.nim create mode 100644 tests/accept/run/mbind3.nim create mode 100644 tests/accept/run/tbug511622.nim create mode 100644 tests/reject/mbind4.nim create mode 100644 tests/reject/tinc.nim diff --git a/lib/pure/variants.nim b/lib/pure/variants.nim index f661f81a6d..61b4bf1636 100644 --- a/lib/pure/variants.nim +++ b/lib/pure/variants.nim @@ -74,8 +74,8 @@ proc `<>`* [T: object](x: T): TVariant {.magic: "ToVariant".} proc `><`*[T](v: TVariant, typ: T): T {.magic: "FromVariant".} -[<>5, <>67, <>"hallo"] -myVar>