That is intentional. The token "main(" has the type 'void function'. This saves space since it only takes one bit if it is done this way rather than 8 bits for a separate token.
Are you sure you want to run parsed C in the FPGA? I am doing pretty much into compilers and that will never give you any reasonable performance.
The proper solution should be to parse the C-like-syntax shader program and generate "assembler" instructions for our platform (the gpu in fpga). And that will always run in the drivers so the parser could be rather general than having two different rules for main and other functions.
Daniel _______________________________________________ Open-graphics mailing list [email protected] http://lists.duskglow.com/mailman/listinfo/open-graphics List service provided by Duskglow Consulting, LLC (www.duskglow.com)
