Creativity, Innovation... Failure



Visual Studio, Bison and Flex : Apocalypse.

If you need to setup Bison and Flex in order to build a freshly created Language Service Package then do the following :

1.       You must install Flex 2.5.4a and at least Bison 2.4.1. Install to a path that contains no spaces. http://gnuwin32.sourceforge.net/packages.html

2.       Modify parser.y project properties in Visual Studio

a.       Flex
"c:\flex\bin\Flex.exe" -o$(InputName).cpp "$(InputPath)"

b.      Bison

set INIT=C:\bison\bin

Set BISON_SIMPLE=C:\bison\bin\bison.simple

set M4=C:\bison\bin\M4.exe

"C:\bison\bin\bison.exe" -v -o$(InputName).cpp -d "$(InputPath)"

3.       Then you must install bison.simple where you installed Bison and in the bin folder. http://userpages.monmouth.com/~wstreett/lex-yacc/lex-yacc.html

4.       Modify service.cpp & lexer.lex by changing parser.cpp.h to parser.hpp.

5.       Remove /WX flag from language service package project.

6.   Rename #include "parser.cpp.h"  in lexer.lex to parser.hpp.

 


Tags: ,
Categories:
Actions: E-mail | Permalink | Comments (714) | Comment RSSRSS comment feed

Best Patterns Web Sites

If you have any suggestions, feel free to share.

webdesign design inspiration ui interface usability web
http://patterntap.com

microsoft practices development .net architecture programming design
http://msdn.microsoft.com/en-us/practices/default.aspx

usability webdesign design interface ux reference ui
http://uipatternfactory.com

design webdesign
http://ui-patterns.com 


Tags:
Categories: Programming | patterns
Actions: E-mail | Permalink | Comments (54) | Comment RSSRSS comment feed

Top tools for the managed and native programmer...

In this post I will compile a list of tools that I use. Feel free to suggest any other tool :

Common Tools
WinDirStat reads the whole directory tree once and then presents it in three useful views.
http://windirstat.info/

Dependency Walker is a free utility that scans any 32-bit or 64-bit Windows module (exe, dll, ocx, sys, etc.) and builds a hierarchical tree diagram of all dependent modules.
http://www.dependencywalker.com/

Process Explorer shows you information about which handles and DLLs processes have opened or loaded.
http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx

Managed
Deliver The Power Of Spy++ To Windows Forms
http://msdn.microsoft.com/en-us/magazine/cc163617.aspx 

Explore, browse, and analyze .NET assemblies
http://www.red-gate.com/products/reflector/

Native
Spy++ (Available with Visual Studio.)

Profiling
AQTime ($)
http://www.automatedqa.com/products/aqtime/

Visual Studio Addin
Instantly find every occurrence of a function, variable, API, error code or anything else in your source code, with a single keystroke.
http://entrian.com/source-search/