You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
Build Your Own Lisp Learn C and build your own programming language in 1000 lines of code! If you're looking to learn C, or you've ever wondered how to build your own programming language, this is the book for you. In just a few lines of code, I'll teach you how to use C, and together, we'll start building your very own language. Along the way we'll learn about the weird and wonderful nature of Li
I have two macros FOO2 and FOO3: #define FOO2(x,y) ... #define FOO3(x,y,z) ... I want to define a new macro FOO as follows: #define FOO(x,y) FOO2(x,y) #define FOO(x,y,z) FOO3(x,y,z) But this doesn't work because macros do not overload on number of arguments. Without modifying FOO2 and FOO3, is there some way to define a macro FOO (using __VA_ARGS__ or otherwise) to get the same effect of dispatchi
2009/09/07 æ¯å¹´å¤ã«éå¬ããã軽éããã°ã©ãã³ã°è¨èªï¼LLï¼Lightweight Languageï¼ããã¼ãã«ãããLLã¤ãã³ããã第7åç®ã¨ãªããLLTVããã2009å¹´8æ29æ¥ã«æ±äº¬ã»ä¸éã§éå¬ãããããã®è¨äºã§ã¯ããã°ã©ã ã®ä¸é¨ãã大æ¹å!!åçããã©ã¼ã¢ãã¿ã¼ããã¬ãã¼ããããåç·¨ã§ã¯ãRubyã«ããfortuneã³ãã³ãã®âå¢ç¯âã¨ãFirefoxæ¡å¼µã«ããslã³ãã³ãã®å®è£ ã¨ãããã¿ç³»çºè¡¨ãã¬ãã¼ããããä¸ç·¨ã¨ãªãæ¬è¨äºã§ã¯ãCè¨èªã«Lisp風ã®ãã¯ããåãå ¥ããlsã³ãã³ãã®ã½ã¼ã¹ã³ã¼ããç´ååã«âä¿®ç¹âããå ã®æãã¬ãã¼ããããå¾ç·¨ã§ã¯ã売ãå ´æ¥åãæ»ããã¡ã ã£ã販売管çã·ã¹ãã ãbashã³ãã³ãã§â建ã¦ç´ããâã¨ããåçããã©ã¼ã¢ãã¿ã¼ã®çºè¡¨ãã¬ãã¼ãããã Cã§æ¸ãããlsã®ã½ã¼ã¹ã³ã¼ãã®åé¡ç¹ ãReal/Macro Metaprogramming On
誰ããç¥ã£ã¦ãls(1)ã³ãã³ã ã½ã¼ã¹ã¯FreeBSDãã (simple, no-dependency) ç´ ç´ã§èªã¿ãããã³ã¼ã Cè¨èªã½ã¼ã¹ã¨ãã¦ã¯åªç ããã⦠åé¡ç¹1 - åé·ãªã³ã¼ã cmp.c int namecmp(const FTSENT *a, const FTSENT *b) { return (strcoll(a->fts_name, b->fts_name)); } int revnamecmp(const FTSENT *a, const FTSENT *b) { return (strcoll(b->fts_name, a->fts_name)); } åé¡ç¹1 - åé·ãªã³ã¼ã (cont'd) util.c åãæ§é ã®4ã¤ã®é¢æ° while ((clen = mbrtowc(&wc, ...)) != 0) { if (clen == (size_t)-
The earliest versions of the very first c compiler known to exist in the wild written by the late legend himself dmr. These are not capable of being compiled today with modern c compilers like gcc. I am only posting these here for the enjoyment and reminiscing of the spark that ignited a soon to be trillion dollar industry. Enjoy. :) You guys might be able to play around building this compilier wi
ãããåºçªã ï¼...ã¨æã£ãã¨ããæããªãã£ãã¨ã... ()()ã§å¼ã³åºããJavaScriptã®ãã¹ãé¢æ°ã®æ´»ç¨æ³ãæãã¤ãã - ãã¨å³ ()()ã§å¼ã³åºããã¹ãé¢æ°ã®æ´»ç¨æ¹æ³ãèããã®ã§ãããèãã¦åºããçããããã§ãã http://d.hatena.ne.jp/jdg/20091020/1256042918 é¢æ°ãã¤ã³ã¿ã¨ããoperator()ã§ããããã ãã©ããªãã©ã«ã使ããããªãã£ãã®ã§ãã¯ãã§... #include <stdio.h> #include <stdlib.h> #include <string.h> #define eq(x,y) !strcmp(x,y) #define X(x) oppai(#x); #define _(x) oppai(#x); X void oppai(const char* rhs) { static const char* l
ACM/ICPCï¼ããã°ã©ãã³ã°ã³ã³ãã¹ãï¼ç³»åã®åé¡ã解ããã¨ãç®æ¨ã«ãã¦ï¼å種ã¢ã«ã´ãªãºã ã C++ ã§å®è£ ãã¦ã¿ãï¼æ¥µãã¦æå°ãæªãé¡ã®åé¡ã«ã¯å¯¾å¿ãã¦ããªããï¼ç¹å®ã®å ¥åã«å¯¾ãã¦é«éã«åãã¨ãããã¨ããªãï¼è¨ç®éãæè¯ã¨ã¯éããªãï¼ ããããåèã«ããæ¹ã¸ã®æ³¨æã¨ãé¡ãï¼ ãããã®è¨è¿°ã¯æ£ç¢ºã¨ã¯éãã¾ããï¼åèæç®ãåç §ãããã¨ãå¼·ãæ¨å¥¨ãã¾ãï¼ééã£ã¦ããå ´åã¯æ¯éæãã¦ãã ããï¼ ãããã®ããã°ã©ã ã¯ééã£ã¦ããããããã¾ããï¼å人ã§æ¤è¨¼ãããã¨ãå¼·ãæ¨å¥¨ãã¾ãï¼ãã°ãããã°æ¯éæãã¦ãã ããï¼ åé¡ãæªããã®ã§ï¼ããã¯ãã£ã¡ã ããï¼ã¨ãããã¨ãããã°ã³ã¡ã³ããä¸ããã¨å©ããã¾ãï¼ æ³¨æï¼ ç¾å¨æ¸ãæãä¸ TODO åé¡ãæ£ããè¡ãï¼ å ¨ä½çã«èª¬æã¨ä½¿ãæ¹ã詳ããï¼ Verify ãã¦ããªããã®ã Verifyï¼ ãããã¤å³ï¼ãã¤ã«ãªããã¨ããâ¦â¦ï¼ åºæ¬ ãã³ãã¬ã¼ã ã°ã©ã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}