I wrote a HLL compiler, at http://www1.webng.com/blackoil
I wrote a HLL compiler, at http://www1.webng.com/blackoil
The syntax is showed as pictures there. You have not to register it. If you do, I am happy.
Any feedbacks are welcome!
Any feedbacks are welcome!
- Brynet-Inc
- Member
- Posts: 2426
- Joined: Tue Oct 17, 2006 9:29 pm
- Libera.chat IRC: brynet
- Location: Canada
- Contact:
- Brynet-Inc
- Member
- Posts: 2426
- Joined: Tue Oct 17, 2006 9:29 pm
- Libera.chat IRC: brynet
- Location: Canada
- Contact:
- Kevin McGuire
- Member
- Posts: 843
- Joined: Tue Nov 09, 2004 12:00 am
- Location: United States
- Contact:
I would imagine that making the basic type default to signed instead of unsigned would help reduce the number of bugs that could be introduced by a programmer used to using C/C++.
I do not know if this is some sort of internal limitation or just a preference you have for default to unsigned, but it might help it to become adopted for usage by someone if that was not such a inversion - unless you had a reason?
I do not know if this is some sort of internal limitation or just a preference you have for default to unsigned, but it might help it to become adopted for usage by someone if that was not such a inversion - unless you had a reason?
It may be a reason, integer has to be specified a signed or unsigned type, because for array operation, like:
array[ 2 ][ 3 ] = 100;
subscripts has to be unsigned integer type. I use a bit strict type checking, so it's boring to write:
array[ (unsigned) 2 ][ (unsigned) 3 ] = 100;
if integer number is specified as signed type.
Any advice?
array[ 2 ][ 3 ] = 100;
subscripts has to be unsigned integer type. I use a bit strict type checking, so it's boring to write:
array[ (unsigned) 2 ][ (unsigned) 3 ] = 100;
if integer number is specified as signed type.
Any advice?
- Kevin McGuire
- Member
- Posts: 843
- Joined: Tue Nov 09, 2004 12:00 am
- Location: United States
- Contact:
-
- Member
- Posts: 2566
- Joined: Sun Jan 14, 2007 9:15 pm
- Libera.chat IRC: miselin
- Location: Sydney, Australia (I come from a land down under!)
- Contact:
Is there anything wrong with a token lexer? I've written one in C++ to 'compile' (tokenise) TI-BASIC programs to the 8XP file format for transferring to the calculator. You can view my source at http://www.sf.net/projects/tibasic (it's not done yet, but it works).Brynet-Inc wrote:EDIT: Haha this is just funny.. The mysterious l.com is a Token Lexer.. This was probably written in some funky BASIC compiler for Windows
That reminds me of my favorite word: Nondeterministic finite automata.pcmattman wrote:Is there anything wrong with a token lexer? I've written one in C++ to 'compile' (tokenise) TI-BASIC programs to the 8XP file format for transferring to the calculator. You can view my source at http://www.sf.net/projects/tibasic (it's not done yet, but it works).Brynet-Inc wrote:EDIT: Haha this is just funny.. The mysterious l.com is a Token Lexer.. This was probably written in some funky BASIC compiler for Windows
Albeit, DFA's are better used, after being converted from the NFA's themselves, and all.
I really love state machines...
Last edited by Alboin on Thu May 17, 2007 7:21 pm, edited 1 time in total.
C8H10N4O2 | #446691 | Trust the nodes.