summary refs log tree commit diff stats
path: root/tests/manyloc/argument_parser
Commit message (Expand)AuthorAgeFilesLines
* Deprecate TaintedString (#15423)Juan Carlos2021-01-151-2/+2
* remove a condition that table size must be passed as power of 2 (#14926)Miran2020-07-081-2/+1
* Remove deprecated stuff from stdlib (#14699)Miran2020-06-171-1/+1
* Remove the uses of {.procvar.} pragma (#14359)Kaushal Modi2020-05-151-2/+2
* Error -> Defect for defects (#13908)Jacek Sieka2020-04-281-2/+2
* Make sequtils.zip return seq of anonymous tuples (#12575)Kaushal Modi2019-11-041-1/+1
* lots of small changesArne Döring2018-12-112-2/+2
* even more strict isNil handling for strings/seqs in order to detect bugsAraq2018-08-221-1/+1
* make more tests greenAndreas Rumpf2018-08-131-5/+5
* make tests green againAndreas Rumpf2018-04-281-6/+6
* make more tests greenAraq2018-02-101-1/+1
* nimrod -> nimErik Johansson Andersson2016-02-051-1/+1
* Fix tests a bit moredef2015-03-101-4/+4
* Replaced deprecated repeatChar() with repeat() or spaces().Hans Raaf2015-03-041-1/+1
* Update a use of initTable to avoid initial enlarge.Charles Blake2015-02-131-1/+1
* GitHub link fixes: nim-code -> nim-langdef2015-01-151-2/+2
* made some tests greenAraq2014-09-211-32/+32
* further adaptationsAraq2014-08-291-3/+3
* renamed babelcmd to nimblecmd; config files are now nim.cfg; other renamingsAraq2014-08-291-0/+0
* attempt to make some tests greenAraq2014-04-211-2/+2
* nil->discardAraq2014-02-151-2/+2
* fixes #385Araq2013-06-031-0/+494
* revert new scope for 'if'Araq2013-05-021-0/+87
* bugfixes mostly JS relatedAraq2013-05-011-0/+1
bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
discard """
  output: ""
"""

import  macros

type
    TA = tuple[a: int]
    PA = ref TA

macro test*(a: untyped): untyped =
  var val: PA
  new(val)
  val.a = 4

test:
  "hi"

macro test2*(a: untyped): untyped =
  proc testproc(recurse: int) =
    echo "That's weird"
    var o : NimNode = nil
    echo "  no its not!"
    o = newNimNode(nnkNone)
    if recurse > 0:
      testproc(recurse - 1)
  testproc(5)

test2:
  "hi"