This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private sealed partial class statement_return : AstParserRuleReturnScope<CommonTree, IToken> | |
{ | |
public MibDocument result = new MibDocument(); | |
public statement_return(SmiParser grammar) {OnCreated(grammar);} | |
partial void OnCreated(SmiParser grammar); | |
} | |
partial void EnterRule_statement(); | |
partial void LeaveRule_statement(); | |
// $ANTLR start "statement" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function GetNumber(var temp: String): Integer; | |
var | |
part: String; | |
pos1: Integer; | |
begin | |
if Length(temp) = 0 then | |
begin | |
Result := -1; | |
Exit; | |
end; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function InitializeSetup(): Boolean; | |
var | |
oldVersion: String; | |
uninstaller: String; | |
ErrorCode: Integer; | |
begin | |
if RegKeyExists(HKEY_LOCAL_MACHINE, | |
'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F768F6BA-F164-4599-BC26-DCCFC2F76855}_is1') then | |
begin | |
RegQueryStringValue(HKEY_LOCAL_MACHINE, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AppVersion=6.0.0.1004 | |
AppID={{F768F6BA-F164-4599-BC26-DCCFC2F76855} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Count(What, Where: String): Integer; | |
begin | |
Result := 0; | |
if Length(What) = 0 then | |
exit; | |
while Pos(What,Where)>0 do | |
begin | |
Where := Copy(Where,Pos(What,Where)+Length(What),Length(Where)); | |
Result := Result + 1; | |
end; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Code] | |
// function IsModuleLoaded to call at install time | |
// added also setuponly flag | |
function IsModuleLoaded(modulename: String ): Boolean; | |
external 'IsModuleLoaded@files:psvince.dll stdcall setuponly'; | |
// function IsModuleLoadedU to call at uninstall time | |
// added also uninstallonly flag | |
function IsModuleLoadedU(modulename: String ): Boolean; | |
external 'IsModuleLoaded@{app}\psvince.dll stdcall uninstallonly' ; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define MyAppID "{F768F6BA-F164-4599-BC26-DCCFC2F76855}" | |
#define MyAppCopyright "Copyright (C) 2005-2007 Lex Li and other contributors." | |
#define MyAppName "Code Beautifier Collection" | |
#define MyAppVersion GetFileVersion("..\bin\release\Lextm.CodeBeautifierCollection.Framework.dll") | |
[Setup] | |
AppName={#MyAppName} | |
AppVerName={#MyAppName} | |
AppPublisher=Lex Li (lextm) | |
AppPublisherURL=http://lextm.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Reference Include="Antlr3.Runtime, Version=3.4.1.9004, Culture=neutral, PublicKeyToken=eb42632606e9261f, processorArchitecture=MSIL"> | |
<SpecificVersion>False</SpecificVersion> | |
<HintPath>..\packages\Antlr.Unofficial.3.4.1.0\lib\Antlr3.Runtime.dll</HintPath> | |
</Reference> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Antlr3 Include="Mib\Smi.g" /> | |
<None Include="Mib\Smi_no_action.g" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<PropertyGroup> | |
<AntlrBuildTaskPath>$(MSBuildProjectDirectory)\..\lib\ANTLR</AntlrBuildTaskPath> | |
<AntlrToolPath>$(MSBuildProjectDirectory)\..\lib\antlr\antlr3.exe</AntlrToolPath> | |
</PropertyGroup> | |
<Import Project="..\lib\ANTLR\Antlr3.targets" /> |