Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't compile J with tcc #36

Open
clausecker opened this issue Aug 13, 2012 · 1 comment
Open

Can't compile J with tcc #36

clausecker opened this issue Aug 13, 2012 · 1 comment

Comments

@clausecker
Copy link

I tried to compile J with the tiny C compiler (tcc). Compilation failed. Here is a detailed description of all errors:

http://www.mail-archive.com/[email protected]/msg03685.html

@clausecker
Copy link
Author

All of the errors have been fixed in tcc except for the syntax error in p.c. This error comes from tcc's insufficient parser and could be worked around by replacing the definition of cases with:

PT cases[] = {
 {EDGE,      VERB,      NOUN, ANY},       jtmonad,   jtvmonad, 1,2,1,
 {EDGE+AVN,  VERB,      VERB, NOUN},      jtmonad,   jtvmonad, 2,3,2,
 {EDGE+AVN,  NOUN,      VERB, NOUN},      jtdyad,    jtvdyad,  1,3,2,
 {EDGE+AVN,  VERB+NOUN, ADV,  ANY},       jtadv,     jtvadv,   1,2,1,
 {EDGE+AVN,  VERB+NOUN, CONJ, VERB+NOUN}, jtconj,    jtvconj,  1,3,1,
 {EDGE+AVN,  VERB+NOUN, VERB, VERB},      jttrident, jtvfolk,  1,3,1,
 {EDGE,      CAVN,      CAVN, ANY},       jtbident,  jtvhook,  1,2,1,
 {NAME+NOUN, ASGN,      CAVN, ANY},       jtis,      jtvis,    0,2,1,
 {LPAR,      CAVN,      RPAR, ANY},       jtpunc,    jtvpunc,  0,2,0,

};

I believe that doing this change is a bad thing. The source code of the project should not be amended to satisfy the demands of poorly written compilers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant