Viktor Szakáts wrote:
>
> Just avoid spaces in option names.
> (or if you absolutely want to keep them,
> put the whole option between double quotes). Please
> remember hbmk2 is not a line based parser.
>
> This layout has a few problems though, so I'd suggest this one
> (also in sync with my past notes for -3rd feature):
> ---
> -3rd=hbide_Version=1.0
>
> -3rd=hbide_Type=Executable
> "-3rd=hbide_Title=Speed Test"
> -3rd=hbide_Location=C:/harbour/contrib/hbide/projects
> -3rd=hbide_WorkingFolder=C:/harbour/contrib/hbide/projects
> -3rd=hbide_DestinationFolder=C:/harbour/contrib/hbide/projects
> -3rd=hbide_Output=speedtst
> -3rd=hbide_LaunchParams=
> -3rd=hbide_LaunchProgram=
> -3rd=hbide_BackupFolder=
>
> -3rd=hbide_flags1=
> -3rd=hbide_flags2=
> -3rd=hbide_flagsN=
>
> speedtst.prg
> ---
>
> The parser I wrote for hbide, will recognize the
> source parameters, so there is not need to mark them
> with '[SOURCES]'.
>
Ok, I understand now.
But what if anything after -3rd= is ignored. I mean the lines containing
the token at begining with -3rd are ignored.
OR you just introduce
-hbide= token which is reserved for hbIDE only and those lines are just
stripped when hbMK2 parses .hbp.
Above format is OK, but I need some more freedom of spaces without quotes.
hbIDE needs [SOURCES] demarcation to know where user additions and
removals are written back. I do not want to use hbide parser you sent
except first time when new project is initiated. Now onwards, there will
be only ONE project file, .hbp.
First-time when project is initiated, hbIDE will ask for .hbp to load.
It will be parsed with your parser, will fetch the user slots if he changes,
and will write it back with above information. Then afterwards parser
will never be called.
This approach will do two things:
1. All tokens will be on a different lines one each
2. All sources will follow next
What we loose, the tokens in between sources. And this will be the
only noticeable difference, though I do not see a problem here, but you
are the better judge of this situation.
-----
enjoy hbIDEing...
Pritpal Bedi
_a_student_of_software_analysis_&_design_
--
View this message in context:
http://n2.nabble.com/hbMK2-3rd-SomeString-Broken-tp4651138p4651404.html
Sent from the harbour-devel mailing list archive at Nabble.com.
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour