Fri, 12 Mar 2010 08:13:14 -0500 |
Ryan C. Gordon |
Serious reworking of preprocessor macro replacement code.
|
changeset |
files
|
Wed, 10 Mar 2010 19:23:19 -0500 |
Ryan C. Gordon |
Updated .hgignore for Lemon header output.
|
changeset |
files
|
Wed, 10 Mar 2010 13:51:31 -0500 |
Ryan C. Gordon |
Added a --version command line to mojoshader-compiler.
|
changeset |
files
|
Sun, 07 Mar 2010 08:08:35 -0500 |
Ryan C. Gordon |
Added another unit test.
|
changeset |
files
|
Sun, 07 Mar 2010 08:08:04 -0500 |
Ryan C. Gordon |
Forgot to add this test before.
|
changeset |
files
|
Thu, 04 Mar 2010 23:18:26 -0800 |
Ryan C. Gordon |
List subsection in the condensed error output.
|
changeset |
files
|
Thu, 04 Mar 2010 23:15:10 -0800 |
Ryan C. Gordon |
Make failed tests more clear in the output.
|
changeset |
files
|
Thu, 04 Mar 2010 23:08:13 -0800 |
Ryan C. Gordon |
Added more unit tests.
|
changeset |
files
|
Thu, 04 Mar 2010 23:00:10 -0800 |
Ryan C. Gordon |
Finished preprocessor/errors/too-many-macro-args test.
|
changeset |
files
|
Thu, 04 Mar 2010 22:59:48 -0800 |
Ryan C. Gordon |
Implemented error output unit test harness.
|
changeset |
files
|
Wed, 03 Mar 2010 09:13:26 -0800 |
Ryan C. Gordon |
Merged some lemon diffs from sqlite's fossil repo: Visual Studio compile fixes.
|
changeset |
files
|
Wed, 03 Mar 2010 08:46:17 -0800 |
Ryan C. Gordon |
Fixed C++ compiler error.
|
changeset |
files
|
Wed, 03 Mar 2010 08:24:13 -0800 |
Ryan C. Gordon |
Did some Ryanification of Aras's Windows #include handling code.
|
changeset |
files
|
Wed, 03 Mar 2010 08:06:44 -0800 |
Ryan C. Gordon |
When processing identifiers in macro "calls", check both args and #defines.
|
changeset |
files
|
Tue, 02 Mar 2010 23:12:16 -0800 |
Ryan C. Gordon |
Added another failing test.
|
changeset |
files
|
Tue, 02 Mar 2010 23:09:53 -0800 |
Ryan C. Gordon |
Added indirect stringify test.
|
changeset |
files
|
Tue, 02 Mar 2010 23:07:15 -0800 |
Ryan C. Gordon |
Added another failing test.
|
changeset |
files
|
Tue, 02 Mar 2010 22:41:42 -0800 |
Ryan C. Gordon |
Added basic tests for __FILE__ and __LINE__.
|
changeset |
files
|
Tue, 02 Mar 2010 22:41:09 -0800 |
Ryan C. Gordon |
Changed where we spawn mojoshader-compiler from, for __FILE__ testing.
|
changeset |
files
|
Tue, 02 Mar 2010 10:04:35 -0800 |
Ryan C. Gordon |
Added support for __FILE__ and __LINE__ to the preprocessor.
|
changeset |
files
|
Fri, 26 Feb 2010 02:37:01 -0500 |
Ryan C. Gordon |
Added unit test for better coverage of bug I just fixed.
|
changeset |
files
|
Fri, 26 Feb 2010 02:34:45 -0500 |
Ryan C. Gordon |
Macro args in macro args need to be replaced inline.
|
changeset |
files
|
Thu, 25 Feb 2010 11:02:26 -0500 |
Ryan C. Gordon |
Added some unit tests for the preprocessor #line directive.
|
changeset |
files
|
Thu, 25 Feb 2010 11:05:50 +0200 |
Aras Pranckevicius |
filename in #line is optional
|
changeset |
files
|
Thu, 25 Feb 2010 08:52:46 +0200 |
Aras Pranckevicius |
make compile on MSVC, and fix stringmap_insert
|
changeset |
files
|
Thu, 25 Feb 2010 02:26:36 -0500 |
Ryan C. Gordon |
Added concat operator ("##") to the preprocessor.
|
changeset |
files
|
Thu, 25 Feb 2010 02:25:42 -0500 |
Ryan C. Gordon |
Catch these tokens in the compiler, for badly-formed preprocessor source code.
|
changeset |
files
|
Wed, 24 Feb 2010 21:23:58 -0500 |
Ryan C. Gordon |
Don't reference built-in include functions if we preprocessed them out.
|
changeset |
files
|
Wed, 24 Feb 2010 21:21:54 -0500 |
Ryan C. Gordon |
Regenerated lexer with stringify operator.
|
changeset |
files
|
Wed, 24 Feb 2010 21:20:37 -0500 |
Ryan C. Gordon |
Added stringify operator ("#") to preprocessor.
|
changeset |
files
|
Wed, 24 Feb 2010 14:00:25 -0500 |
Ryan C. Gordon |
Check for "##" at the start and end of macro definitions.
|
changeset |
files
|
Wed, 24 Feb 2010 13:18:50 -0500 |
Ryan C. Gordon |
Added unit tests for preprocessor's macro concat operator.
|
changeset |
files
|
Wed, 24 Feb 2010 12:21:52 -0500 |
Ryan C. Gordon |
Removed unused struct member.
|
changeset |
files
|
Wed, 24 Feb 2010 18:40:48 +0200 |
Aras Pranckevicius |
preprocessor open impl on MSVC
|
changeset |
files
|
Wed, 24 Feb 2010 11:42:16 -0500 |
Ryan C. Gordon |
Patched to compile.
|
changeset |
files
|
Wed, 24 Feb 2010 03:20:50 -0500 |
Ryan C. Gordon |
Implemented StringMap, for future use.
|
changeset |
files
|
Wed, 24 Feb 2010 01:21:21 -0500 |
Ryan C. Gordon |
Formalized the compiler's string cache into a real API.
|
changeset |
files
|
Tue, 23 Feb 2010 17:38:00 -0500 |
Ryan C. Gordon |
Removed the vector/matrix datatype parser tokens.
|
changeset |
files
|
Tue, 23 Feb 2010 17:20:58 -0500 |
Ryan C. Gordon |
Moved print_ast() elsewhere.
|
changeset |
files
|
Tue, 23 Feb 2010 12:55:52 -0500 |
Ryan C. Gordon |
Reverse all the linked lists that we generate backwards in the parser.
|
changeset |
files
|
Tue, 23 Feb 2010 11:34:36 -0500 |
Ryan C. Gordon |
Filled in the rest of the missing print_ast() cases.
|
changeset |
files
|
Mon, 22 Feb 2010 12:43:55 -0500 |
Ryan C. Gordon |
Bunch More Work on print_ast().
|
changeset |
files
|
Mon, 22 Feb 2010 03:07:29 -0500 |
Ryan C. Gordon |
Temporary (and incomplete!) debug code to print the AST.
|
changeset |
files
|
Mon, 22 Feb 2010 02:23:32 -0500 |
Ryan C. Gordon |
Cleaned up compiler framework a little.
|
changeset |
files
|
Mon, 22 Feb 2010 02:22:24 -0500 |
Ryan C. Gordon |
Fixed pop_scope().
|
changeset |
files
|
Mon, 22 Feb 2010 02:22:06 -0500 |
Ryan C. Gordon |
Removed some debug code.
|
changeset |
files
|
Mon, 22 Feb 2010 01:58:37 -0500 |
Ryan C. Gordon |
Make the error code blocks into fail() calls.
|
changeset |
files
|
Mon, 22 Feb 2010 01:57:53 -0500 |
Ryan C. Gordon |
Added a FIXME.
|
changeset |
files
|
Mon, 22 Feb 2010 01:57:37 -0500 |
Ryan C. Gordon |
Added better (?) USERTYPE management.
|
changeset |
files
|
Mon, 22 Feb 2010 01:56:12 -0500 |
Ryan C. Gordon |
Removed incorrect assertion.
|
changeset |
files
|
Sun, 21 Feb 2010 19:37:38 -0500 |
Ryan C. Gordon |
Make AST nodes a little more generic, add source position info to them.
|
changeset |
files
|
Sun, 21 Feb 2010 14:54:54 -0500 |
Ryan C. Gordon |
Keep track of token location when parsing.
|
changeset |
files
|
Sun, 21 Feb 2010 01:02:34 -0500 |
Ryan C. Gordon |
A little work on error handling in the compiler.
|
changeset |
files
|
Sat, 20 Feb 2010 23:41:21 -0500 |
Ryan C. Gordon |
Added a FIXME.
|
changeset |
files
|
Sat, 20 Feb 2010 23:41:12 -0500 |
Ryan C. Gordon |
Report bad characters in the assembler.
|
changeset |
files
|
Sat, 20 Feb 2010 21:50:48 -0500 |
Ryan C. Gordon |
Clean up context at the end.
|
changeset |
files
|
Sat, 20 Feb 2010 20:31:00 -0500 |
Ryan C. Gordon |
Removed SEMANTIC token...we can do this with IDENTIFIER.
|
changeset |
files
|
Sat, 20 Feb 2010 00:27:28 -0500 |
Ryan C. Gordon |
Uncommented some grammar bits that got masked out in the calculator experiment.
|
changeset |
files
|
Fri, 19 Feb 2010 02:28:44 -0500 |
Ryan C. Gordon |
Bunch More Work on HLSL parser.
|
changeset |
files
|
Fri, 19 Feb 2010 02:25:51 -0500 |
Ryan C. Gordon |
Added boilerplate comment to start of file.
|
changeset |
files
|
Wed, 17 Feb 2010 21:07:40 -0500 |
Ryan C. Gordon |
Updated lempar.c to match updated lemon.c
|
changeset |
files
|
Wed, 17 Feb 2010 15:35:15 -0500 |
Ryan C. Gordon |
Lemon fix: don't let grammar define the same nonterminal %type more than once.
|
changeset |
files
|
Wed, 17 Feb 2010 15:34:43 -0500 |
Ryan C. Gordon |
Lemon fix: incorrect printf format strings.
|
changeset |
files
|
Wed, 17 Feb 2010 01:01:40 -0500 |
Ryan C. Gordon |
Updated lemon to the latest in my fossil repo.
|
changeset |
files
|
Sat, 13 Feb 2010 01:04:55 -0500 |
Ryan C. Gordon |
Lemon now writes errors to stderr instead of stdout, and uses full output.
|
changeset |
files
|
Fri, 12 Feb 2010 13:40:25 -0500 |
Ryan C. Gordon |
Lemon now deletes its output on failure.
|
changeset |
files
|
Tue, 09 Feb 2010 03:28:04 -0500 |
Ryan C. Gordon |
Merged calculator-experiment back into default branch.
|
changeset |
files
|
Tue, 09 Feb 2010 02:55:38 -0500 |
Ryan C. Gordon |
Moved the calculator experiment work back into the compiler.
calculator-experiment
|
changeset |
files
|
Tue, 09 Feb 2010 01:52:08 -0500 |
Ryan C. Gordon |
Don't pass the TokenData back out of the lemon code.
calculator-experiment
|
changeset |
files
|
Tue, 09 Feb 2010 00:23:09 -0500 |
Ryan C. Gordon |
Removed some Context fields we don't really need.
calculator-experiment
|
changeset |
files
|
Tue, 09 Feb 2010 00:08:12 -0500 |
Ryan C. Gordon |
"identifier" shouldn't be a non-terminal.
calculator-experiment
|
changeset |
files
|
Mon, 08 Feb 2010 23:51:32 -0500 |
Ryan C. Gordon |
Cleaned up TokenData FIXMEs, and added string cache.
calculator-experiment
|
changeset |
files
|
Mon, 08 Feb 2010 04:42:51 -0500 |
Ryan C. Gordon |
Free the parse tree once we're done with it.
calculator-experiment
|
changeset |
files
|
Mon, 08 Feb 2010 04:29:31 -0500 |
Ryan C. Gordon |
Actually run the calculator, walking the parse tree.
calculator-experiment
|
changeset |
files
|
Mon, 08 Feb 2010 04:29:05 -0500 |
Ryan C. Gordon |
Stop parsing if the parser panics.
calculator-experiment
|
changeset |
files
|
Mon, 08 Feb 2010 04:02:01 -0500 |
Ryan C. Gordon |
Closing the "trunk" branch.
trunk
|
changeset |
files
|
Mon, 08 Feb 2010 03:59:18 -0500 |
Ryan C. Gordon |
Ignore blank lines.
calculator-experiment
|
changeset |
files
|
Mon, 08 Feb 2010 03:59:12 -0500 |
Ryan C. Gordon |
Removed debug output.
calculator-experiment
|
changeset |
files
|
Mon, 08 Feb 2010 03:59:00 -0500 |
Ryan C. Gordon |
Fixed literal data getting through the parser in one piece.
calculator-experiment
|
changeset |
files
|
Mon, 08 Feb 2010 03:33:47 -0500 |
Ryan C. Gordon |
Initial dumping of parse tree once parsing finishes.
calculator-experiment
|
changeset |
files
|
Mon, 08 Feb 2010 03:33:12 -0500 |
Ryan C. Gordon |
Allow "q" to quit calculator, too.
calculator-experiment
|
changeset |
files
|
Mon, 08 Feb 2010 03:30:48 -0500 |
Ryan C. Gordon |
Make #include callbacks optional.
calculator-experiment
|
changeset |
files
|
Mon, 08 Feb 2010 03:04:29 -0500 |
Ryan C. Gordon |
Cleaned up operator enumeration, put it into ranges, fixed data ops.
calculator-experiment
|
changeset |
files
|
Mon, 08 Feb 2010 02:42:12 -0500 |
Ryan C. Gordon |
Start of experiment with a basic calculator.
calculator-experiment
|
changeset |
files
|
Mon, 08 Feb 2010 02:38:19 -0500 |
Ryan C. Gordon |
Don't suppress #line directives in lemon output.
|
changeset |
files
|
Sun, 07 Feb 2010 22:14:04 -0500 |
Ryan C. Gordon |
Forgot to wrap this in a #if __MOJOSHADER__.
|
changeset |
files
|
Wed, 30 Dec 2009 14:59:16 -0500 |
Ryan C. Gordon |
Allow compiler to strip disabled glsl120 and nvX profiles as dead code.
|
changeset |
files
|
Wed, 30 Dec 2009 14:48:02 -0500 |
Ryan C. Gordon |
Fixed compiler warnings on 64-bit Mac OS X.
|
changeset |
files
|
Wed, 30 Dec 2009 14:42:27 -0500 |
Ryan C. Gordon |
Added a FIXME.
|
changeset |
files
|
Wed, 30 Dec 2009 03:34:25 -0500 |
Ryan C. Gordon |
Minor Ryanification.
|
changeset |
files
|
Wed, 30 Dec 2009 03:32:54 -0500 |
Ryan C. Gordon |
Emit vs_1_1 properly (thanks, Aras!).
|
changeset |
files
|
Tue, 29 Dec 2009 22:36:27 +0200 |
Aras Pranckevicius |
vs_1_1 also has decls on D3D9
|
changeset |
files
|
Tue, 29 Dec 2009 22:35:51 +0200 |
Aras Pranckevicius |
when profile is compiled out, dont crash later
|
changeset |
files
|
Tue, 29 Dec 2009 22:11:25 +0200 |
Aras Pranckevicius |
asm needs bytecode profile
|
changeset |
files
|
Tue, 29 Dec 2009 17:29:32 +0200 |
Aras Pranckevicius |
fix passthrough/bytecode define
|
changeset |
files
|
Sun, 15 Nov 2009 14:03:46 -0500 |
Ryan C. Gordon |
Regenerated mojoshader_lexer.c from mojoshader_lexer.re.
|
changeset |
files
|
Sun, 15 Nov 2009 14:02:18 -0500 |
Ryan C. Gordon |
Bunch of small tweaks to make this compile as C++ code without errors/warnings.
|
changeset |
files
|
Sun, 15 Nov 2009 14:01:41 -0500 |
Ryan C. Gordon |
GLSL Uniform locations are signed ints.
|
changeset |
files
|
Fri, 28 Aug 2009 01:02:03 -0400 |
Ryan C. Gordon |
Keep it simple.
|
changeset |
files
|
Wed, 26 Aug 2009 00:32:04 -0400 |
Ryan C. Gordon |
Pacify compiler warning.
|
changeset |
files
|
Wed, 26 Aug 2009 00:17:25 -0400 |
Ryan C. Gordon |
Fixed compiler warning about Lemon allocator function signature.
|
changeset |
files
|
Wed, 26 Aug 2009 00:11:57 -0400 |
Ryan C. Gordon |
Fixed a compiler warning, for now.
|
changeset |
files
|
Wed, 26 Aug 2009 00:02:31 -0400 |
Ryan C. Gordon |
Forgot to add DEPTH to the list of valid semantics.
|
changeset |
files
|
Tue, 25 Aug 2009 23:48:51 -0400 |
Ryan C. Gordon |
Fixed compiler warning.
|
changeset |
files
|
Tue, 25 Aug 2009 23:47:11 -0400 |
Ryan C. Gordon |
Initializer blocks can nest, like "float4 x[] = { {a,b,c,d}, {a,b,c,d} };"
|
changeset |
files
|
Tue, 25 Aug 2009 23:44:04 -0400 |
Ryan C. Gordon |
Variable declarations can have empty array bounds, like "float x[] = {a,b,c};"
|
changeset |
files
|
Tue, 25 Aug 2009 23:40:10 -0400 |
Ryan C. Gordon |
Allow vector initializers, like "float4 x = {a,b,c,d};"
|
changeset |
files
|
Tue, 25 Aug 2009 23:20:02 -0400 |
Ryan C. Gordon |
Added statement block attributes to the HLSL grammar.
|
changeset |
files
|
Tue, 25 Aug 2009 23:17:38 -0400 |
Ryan C. Gordon |
Modified Lemon to accept a specific amount of conflicts.
|
changeset |
files
|
Sun, 23 Aug 2009 01:48:38 -0400 |
Ryan C. Gordon |
Added totally unhelpful syntax error output.
|
changeset |
files
|
Sun, 23 Aug 2009 01:43:14 -0400 |
Ryan C. Gordon |
Removed some debug code.
|
changeset |
files
|
Sun, 23 Aug 2009 01:42:17 -0400 |
Ryan C. Gordon |
HLSL for loops can have variable declarations: "for (int x=0; x<10; x++) {}"
|
changeset |
files
|
Sun, 23 Aug 2009 01:32:21 -0400 |
Ryan C. Gordon |
HLSL array declarations can be expressions, like "float4 x[(1 + 1) / 2];" ...
|
changeset |
files
|
Sun, 23 Aug 2009 01:28:43 -0400 |
Ryan C. Gordon |
HLSL struct fields can have semantics.
|
changeset |
files
|
Sun, 23 Aug 2009 01:25:43 -0400 |
Ryan C. Gordon |
Apparently "inout" and "in out" are both legal for HLSL function parameters.
|
changeset |
files
|
Sun, 23 Aug 2009 01:21:43 -0400 |
Ryan C. Gordon |
Fixed parsing of HLSL functions that return void.
|
changeset |
files
|
Sun, 23 Aug 2009 01:04:49 -0400 |
Ryan C. Gordon |
Added some structure for user types (struct at the moment).
|
changeset |
files
|
Sat, 22 Aug 2009 19:46:49 -0400 |
Ryan C. Gordon |
Fixed HLSL parsing of structs with array fields.
|
changeset |
files
|
Sun, 16 Aug 2009 17:00:32 -0400 |
Ryan C. Gordon |
Move glsl "#version" pragma to the preflight section, so it's always first.
|
changeset |
files
|
Sat, 15 Aug 2009 03:44:36 -0400 |
Ryan C. Gordon |
Only enable/disable vertex arrays when forced to.
|
changeset |
files
|