]> git.xonotic.org Git - xonotic/gmqcc.git/commit
Initial idea at implementing type-generic length operator like C's sizeof. The follow... graphitemaster/length-operator
authorDale Weiler <killfieldengine@gmail.com>
Thu, 17 Oct 2013 11:40:51 +0000 (07:40 -0400)
committerDale Weiler <killfieldengine@gmail.com>
Thu, 17 Oct 2013 11:40:51 +0000 (07:40 -0400)
commitf387fea2b957ba6beaa20c6db2c57d05b9bdae3e
treeced871417e0f9cd7b383844f9c6aa6090fc7daeb
parent9f54610fbda6dd4ebe5a273d519fa599ae6a2123
Initial idea at implementing type-generic length operator like C's sizeof. The following semantics are present: len(array) gives you a constant-evaluated value of the number of elements in that array. len(string) gives you the strlen of a string. Other semantics to come. Since this is an operator you can eliminate the parens, thus "len array" works.
fold.c
lexer.c
lexer.h
parser.c