├── .gitattributes ├── .gitignore ├── Copyright.txt ├── README.md ├── Tilde.sln ├── doc ├── Tilde Documentation.odt └── assemblies.png ├── examples └── WindowsDemo │ ├── LuaHostWindows.cpp │ ├── LuaHostWindows.h │ ├── LuaMachine.cpp │ ├── LuaMachine.h │ ├── WindowsDemo.vcproj │ ├── main.cpp │ └── scripts │ ├── main.lua │ └── test.lua ├── lib ├── ScintillaNET │ └── v6-b1.1 │ │ ├── Configuration │ │ ├── Interfaces │ │ │ ├── ILanguageConfig.cs │ │ │ ├── ILanguageConfigCollection.cs │ │ │ ├── ILexerConfig.cs │ │ │ ├── ILexerConfigCollection.cs │ │ │ ├── ILexerStyle.cs │ │ │ ├── IMenuItemConfig.cs │ │ │ ├── IScintillaConfig.cs │ │ │ └── IScintillaConfigProvider.cs │ │ ├── LanguageConfig.cs │ │ ├── LanguageConfigCollection.cs │ │ ├── LexerConfig.cs │ │ ├── LexerConfigCollection.cs │ │ ├── LexerStyle.cs │ │ ├── MenuItemConfig.cs │ │ ├── PropertiesReader.cs │ │ ├── SciTE │ │ │ ├── SciTEProperties.cs │ │ │ └── SciTEPropertiesReader.cs │ │ └── ScintillaConfig.cs │ │ ├── Enums.generated.cs │ │ ├── EventArgs.cs │ │ ├── Forms │ │ ├── FindReplace │ │ │ ├── FindControl.Designer.cs │ │ │ ├── FindControl.cs │ │ │ ├── FindControl.resx │ │ │ ├── FindForm.Designer.cs │ │ │ ├── FindForm.cs │ │ │ ├── FindForm.resx │ │ │ ├── ReplaceControl.Designer.cs │ │ │ ├── ReplaceControl.cs │ │ │ ├── ReplaceControl.resx │ │ │ ├── ReplaceForm.Designer.cs │ │ │ ├── ReplaceForm.cs │ │ │ ├── ReplaceForm.resx │ │ │ ├── SearchCriteria.cs │ │ │ └── SearchHelper.cs │ │ └── GoToLine │ │ │ ├── GoToLineDialog.Designer.cs │ │ │ ├── GoToLineDialog.cs │ │ │ └── GoToLineDialog.resx │ │ ├── Indexer.cs │ │ ├── Legacy │ │ ├── Include.cs │ │ ├── KeywordClass.cs │ │ ├── Language.cs │ │ ├── Lexer.cs │ │ ├── Scintilla.cs │ │ ├── StyleClass.cs │ │ ├── UseKeyword.cs │ │ ├── UseStyle.cs │ │ ├── Value.cs │ │ ├── configfile.cs │ │ ├── configitem.cs │ │ └── configurationutility.cs │ │ ├── Lexers.generated.cs │ │ ├── NativeMethods.cs │ │ ├── Printing │ │ ├── PageInformation.cs │ │ ├── PageSettings.cs │ │ └── PrintDocument.cs │ │ ├── Properties │ │ └── AssemblyInfo.cs │ │ ├── Range.cs │ │ ├── SciLexer.dll │ │ ├── ScintillaControl.Designer.cs │ │ ├── ScintillaControl.cs │ │ ├── ScintillaControl.generated.cs │ │ ├── ScintillaNET.csproj │ │ ├── Structures.cs │ │ └── Utilities.cs ├── WinFormsUI │ └── v2.2 │ │ ├── Docking │ │ ├── AutoHideStripBase.cs │ │ ├── DockAreasEditor.cs │ │ ├── DockContent.cs │ │ ├── DockContentCollection.cs │ │ ├── DockContentEventArgs.cs │ │ ├── DockContentHandler.cs │ │ ├── DockOutlineBase.cs │ │ ├── DockPane.SplitterControl.cs │ │ ├── DockPane.cs │ │ ├── DockPaneCaptionBase.cs │ │ ├── DockPaneCollection.cs │ │ ├── DockPaneStripBase.cs │ │ ├── DockPanel.AutoHideWindow.cs │ │ ├── DockPanel.DockDragHandler.cs │ │ ├── DockPanel.DragHandler.cs │ │ ├── DockPanel.FocusManager.cs │ │ ├── DockPanel.MdiClientController.cs │ │ ├── DockPanel.Persistor.cs │ │ ├── DockPanel.SplitterDragHandler.cs │ │ ├── DockPanel.bmp │ │ ├── DockPanel.cs │ │ ├── DockPanelExtender.cs │ │ ├── DockWindow.SplitterControl.cs │ │ ├── DockWindow.cs │ │ ├── DockWindowCollection.cs │ │ ├── DragForm.cs │ │ ├── DummyControl.cs │ │ ├── Enums.cs │ │ ├── FloatWindow.cs │ │ ├── FloatWindow.resx │ │ ├── FloatWindowCollection.cs │ │ ├── Helpers │ │ │ ├── DockHelper.cs │ │ │ ├── DrawHelper.cs │ │ │ ├── ResourceHelper.cs │ │ │ └── Win32Helper.cs │ │ ├── InertButtonBase.cs │ │ ├── Interfaces.cs │ │ ├── Localization.cs │ │ ├── Measures.cs │ │ ├── NestedDockingStatus.cs │ │ ├── NestedPaneCollection.cs │ │ ├── Resources.Designer.cs │ │ ├── Resources.resx │ │ ├── Resources │ │ │ ├── DockIndicator_PaneDiamond.bmp │ │ │ ├── DockIndicator_PaneDiamond_Bottom.bmp │ │ │ ├── DockIndicator_PaneDiamond_Hotspot.bmp │ │ │ ├── DockIndicator_PaneDiamond_HotspotIndex.bmp │ │ │ ├── DockIndicator_PaneDiamond_Left.bmp │ │ │ ├── DockIndicator_PaneDiamond_Right.bmp │ │ │ ├── DockIndicator_PaneDiamond_Top.bmp │ │ │ ├── DockIndicator_PanelBottom.bmp │ │ │ ├── DockIndicator_PanelBottom_Active.bmp │ │ │ ├── DockIndicator_PanelFill.bmp │ │ │ ├── DockIndicator_PanelFill_Active.bmp │ │ │ ├── DockIndicator_PanelLeft.bmp │ │ │ ├── DockIndicator_PanelLeft_Active.bmp │ │ │ ├── DockIndicator_PanelRight.bmp │ │ │ ├── DockIndicator_PanelRight_Active.bmp │ │ │ ├── DockIndicator_PanelTop.bmp │ │ │ ├── DockIndicator_PanelTop_Active.bmp │ │ │ ├── DockPane_AutoHide.bmp │ │ │ ├── DockPane_Close.bmp │ │ │ ├── DockPane_Dock.bmp │ │ │ ├── DockPane_Option.bmp │ │ │ ├── DockPane_OptionOverflow.bmp │ │ │ ├── Dockindicator_PaneDiamond_Fill.bmp │ │ │ └── Thumbs.db │ │ ├── SplitterBase.cs │ │ ├── Strings.Designer.cs │ │ ├── Strings.resx │ │ ├── VS2005AutoHideStrip.cs │ │ ├── VS2005DockPaneCaption.cs │ │ ├── VS2005DockPaneStrip.cs │ │ ├── VisibleNestedPaneCollection.cs │ │ └── Win32 │ │ │ ├── Enums.cs │ │ │ └── NativeMethods.cs │ │ ├── Properties │ │ └── AssemblyInfo.cs │ │ ├── WinFormsUI.csproj │ │ └── license.txt └── lua │ ├── lua_5.1.2.patch │ ├── lua_5.1.3.patch │ ├── v5.1.2 │ ├── COPYRIGHT │ ├── HISTORY │ ├── INSTALL │ ├── Makefile │ ├── README │ ├── doc │ │ ├── amazon.gif │ │ ├── contents.html │ │ ├── cover.png │ │ ├── logo.gif │ │ ├── lua.1 │ │ ├── lua.css │ │ ├── lua.html │ │ ├── luac.1 │ │ ├── luac.html │ │ ├── manual.css │ │ ├── manual.html │ │ └── readme.html │ ├── etc │ │ ├── Makefile │ │ ├── README │ │ ├── all.c │ │ ├── lua.hpp │ │ ├── lua.ico │ │ ├── lua.pc │ │ ├── min.c │ │ ├── noparser.c │ │ └── strict.lua │ ├── src │ │ ├── Makefile │ │ ├── lapi.c │ │ ├── lapi.h │ │ ├── lauxlib.c │ │ ├── lauxlib.h │ │ ├── lbaselib.c │ │ ├── lcode.c │ │ ├── lcode.h │ │ ├── ldblib.c │ │ ├── ldebug.c │ │ ├── ldebug.h │ │ ├── ldo.c │ │ ├── ldo.h │ │ ├── ldump.c │ │ ├── lfunc.c │ │ ├── lfunc.h │ │ ├── lgc.c │ │ ├── lgc.h │ │ ├── linit.c │ │ ├── liolib.c │ │ ├── llex.c │ │ ├── llex.h │ │ ├── llimits.h │ │ ├── lmathlib.c │ │ ├── lmem.c │ │ ├── lmem.h │ │ ├── loadlib.c │ │ ├── lobject.c │ │ ├── lobject.h │ │ ├── lopcodes.c │ │ ├── lopcodes.h │ │ ├── loslib.c │ │ ├── lparser.c │ │ ├── lparser.h │ │ ├── lstate.c │ │ ├── lstate.h │ │ ├── lstring.c │ │ ├── lstring.h │ │ ├── lstrlib.c │ │ ├── ltable.c │ │ ├── ltable.h │ │ ├── ltablib.c │ │ ├── ltm.c │ │ ├── ltm.h │ │ ├── lua.c │ │ ├── lua.h │ │ ├── luac.c │ │ ├── luaconf.h │ │ ├── lualib.h │ │ ├── lundump.c │ │ ├── lundump.h │ │ ├── lvm.c │ │ ├── lvm.h │ │ ├── lzio.c │ │ ├── lzio.h │ │ └── print.c │ └── test │ │ ├── README │ │ ├── bisect.lua │ │ ├── cf.lua │ │ ├── echo.lua │ │ ├── env.lua │ │ ├── factorial.lua │ │ ├── fib.lua │ │ ├── fibfor.lua │ │ ├── globals.lua │ │ ├── hello.lua │ │ ├── life.lua │ │ ├── luac.lua │ │ ├── printf.lua │ │ ├── readonly.lua │ │ ├── sieve.lua │ │ ├── sort.lua │ │ ├── table.lua │ │ ├── trace-calls.lua │ │ ├── trace-globals.lua │ │ └── xd.lua │ └── v5.1.3 │ ├── COPYRIGHT │ ├── HISTORY │ ├── INSTALL │ ├── Makefile │ ├── README │ ├── doc │ ├── amazon.gif │ ├── contents.html │ ├── cover.png │ ├── logo.gif │ ├── lua.1 │ ├── lua.css │ ├── lua.html │ ├── luac.1 │ ├── luac.html │ ├── manual.css │ ├── manual.html │ └── readme.html │ ├── etc │ ├── Makefile │ ├── README │ ├── all.c │ ├── lua.hpp │ ├── lua.ico │ ├── lua.pc │ ├── min.c │ ├── noparser.c │ └── strict.lua │ ├── src │ ├── Makefile │ ├── lapi.c │ ├── lapi.h │ ├── lauxlib.c │ ├── lauxlib.h │ ├── lbaselib.c │ ├── lcode.c │ ├── lcode.h │ ├── ldblib.c │ ├── ldebug.c │ ├── ldebug.h │ ├── ldo.c │ ├── ldo.h │ ├── ldump.c │ ├── lfunc.c │ ├── lfunc.h │ ├── lgc.c │ ├── lgc.h │ ├── linit.c │ ├── liolib.c │ ├── llex.c │ ├── llex.h │ ├── llimits.h │ ├── lmathlib.c │ ├── lmem.c │ ├── lmem.h │ ├── loadlib.c │ ├── lobject.c │ ├── lobject.h │ ├── lopcodes.c │ ├── lopcodes.h │ ├── loslib.c │ ├── lparser.c │ ├── lparser.h │ ├── lstate.c │ ├── lstate.h │ ├── lstring.c │ ├── lstring.h │ ├── lstrlib.c │ ├── ltable.c │ ├── ltable.h │ ├── ltablib.c │ ├── ltm.c │ ├── ltm.h │ ├── lua.c │ ├── lua.h │ ├── luac.c │ ├── luaconf.h │ ├── lualib.h │ ├── lundump.c │ ├── lundump.h │ ├── lvm.c │ ├── lvm.h │ ├── lzio.c │ ├── lzio.h │ └── print.c │ └── test │ ├── README │ ├── bisect.lua │ ├── cf.lua │ ├── echo.lua │ ├── env.lua │ ├── factorial.lua │ ├── fib.lua │ ├── fibfor.lua │ ├── globals.lua │ ├── hello.lua │ ├── life.lua │ ├── luac.lua │ ├── printf.lua │ ├── readonly.lua │ ├── sieve.lua │ ├── sort.lua │ ├── table.lua │ ├── trace-calls.lua │ ├── trace-globals.lua │ └── xd.lua ├── plugins ├── LuaDebugger │ ├── AutocompleteOptionsEvent.cs │ ├── AutocompletePopup.Designer.cs │ ├── AutocompletePopup.cs │ ├── AutocompletePopup.resx │ ├── BreakpointDetails.cs │ ├── BreakpointUpdateEvent.cs │ ├── BreakpointsWindow.Designer.cs │ ├── BreakpointsWindow.cs │ ├── BreakpointsWindow.resx │ ├── CallstackUpdateEvent.cs │ ├── CallstackWindow.Designer.cs │ ├── CallstackWindow.cs │ ├── CallstackWindow.resx │ ├── ConsoleWindow.Designer.cs │ ├── ConsoleWindow.cs │ ├── ConsoleWindow.resx │ ├── DebugManager.cs │ ├── DebugPrintEvent.cs │ ├── DebuggerOptions.cs │ ├── DebuggerStatusDialog.Designer.cs │ ├── DebuggerStatusDialog.cs │ ├── DebuggerStatusDialog.resx │ ├── ErrorMessageEvent.cs │ ├── ExMessageEvent.cs │ ├── ExecutionMode.cs │ ├── FileUploadEvent.cs │ ├── HostInfo.cs │ ├── IConnection.cs │ ├── ITarget.cs │ ├── ITransport.cs │ ├── LocalsWindow.Designer.cs │ ├── LocalsWindow.cs │ ├── LocalsWindow.resx │ ├── LuaDebugger.csproj │ ├── LuaPlugin.cs │ ├── LuaProfileResultsDocument.cs │ ├── LuaProfileResultsView.Designer.cs │ ├── LuaProfileResultsView.cs │ ├── LuaProfileResultsView.resx │ ├── LuaScriptDocument.cs │ ├── LuaScriptView.cs │ ├── LuaScriptView.designer.cs │ ├── LuaScriptView.resx │ ├── LuaValue.cs │ ├── MainWindowComponents.cs │ ├── MainWindowComponents.designer.cs │ ├── MainWindowComponents.resx │ ├── MessageQueue.cs │ ├── NewWatchDialog.Designer.cs │ ├── NewWatchDialog.cs │ ├── NewWatchDialog.resx │ ├── PendingDownloadsWindow.Designer.cs │ ├── PendingDownloadsWindow.cs │ ├── PendingDownloadsWindow.resx │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ ├── Resources.Designer.cs │ │ └── Resources.resx │ ├── Protocol.cs │ ├── ProtocolException.cs │ ├── ReceiveMessageBuffer.cs │ ├── Resources │ │ ├── Break.bmp │ │ ├── BreakedThread.bmp │ │ ├── Breakpoint.bmp │ │ ├── BrwRefresh.bmp │ │ ├── Connect.bmp │ │ ├── Connect.gif │ │ ├── ConsoleWindowTemplate.htm │ │ ├── CurrentFrame.bmp │ │ ├── Disconnect.bmp │ │ ├── EmptyBreakpoint.bmp │ │ ├── FolderClosed_16x16.bmp │ │ ├── Percentage.bmp │ │ ├── Run.bmp │ │ ├── StartProfile.bmp │ │ ├── Stop.bmp │ │ ├── SystrayConnected.ico │ │ ├── SystrayDisconnected.ico │ │ ├── tree_closed.bmp │ │ └── tree_open.bmp │ ├── SendMessageBuffer.cs │ ├── ShutdownException.cs │ ├── SnippetResultEvent.cs │ ├── StateUpdateEvent.cs │ ├── StatusMessageEvent.cs │ ├── Target.cs │ ├── TargetConnectionDialog.cs │ ├── TargetConnectionDialog.designer.cs │ ├── TargetConnectionDialog.resx │ ├── TargetDisconnectedEvent.cs │ ├── TargetException.cs │ ├── TargetState.cs │ ├── ThreadDetails.cs │ ├── ThreadUpdateEvent.cs │ ├── ThreadedHost.cs │ ├── ThreadsWindow.Designer.cs │ ├── ThreadsWindow.cs │ ├── ThreadsWindow.resx │ ├── TransportClassAttribute.cs │ ├── ValueCache.cs │ ├── ValueCachedEvent.cs │ ├── VariableDetails.cs │ ├── VariableUpdateEvent.cs │ ├── VariablesWindow.Designer.cs │ ├── VariablesWindow.cs │ ├── VariablesWindow.resx │ ├── WatchDetails.cs │ ├── WatchWindow.Designer.cs │ ├── WatchWindow.cs │ └── WatchWindow.resx └── LuaSocketConnection │ ├── AddNewConnectionDialog.Designer.cs │ ├── AddNewConnectionDialog.cs │ ├── AddNewConnectionDialog.resx │ ├── LuaSocketConnection.csproj │ ├── LuaSocketConnectionPlugin.cs │ ├── Properties │ └── AssemblyInfo.cs │ ├── SocketConnection.cs │ ├── SocketHostInfo.cs │ └── SocketTransport.cs └── source ├── CorePlugins ├── CanvasControl │ ├── Canvas.Designer.cs │ ├── Canvas.cs │ ├── Canvas.resx │ ├── CanvasItem.cs │ ├── CanvasItemCollection.cs │ ├── ImageItem.cs │ ├── Layer.cs │ └── LayerCollection.cs ├── CorePlugins.csproj ├── PerforceVCS.cs ├── Properties │ ├── AssemblyInfo.cs │ ├── FindResultsTemplate.htm │ ├── Resources.Designer.cs │ └── Resources.resx ├── TextEditor │ ├── FindReplaceDialog.Designer.cs │ ├── FindReplaceDialog.cs │ ├── FindReplaceDialog.resx │ ├── FindResultsPanel.Designer.cs │ ├── FindResultsPanel.cs │ ├── FindResultsPanel.resx │ ├── GotoLineForm.Designer.cs │ ├── GotoLineForm.cs │ ├── GotoLineForm.resx │ ├── MainWindowComponents.Designer.cs │ ├── MainWindowComponents.cs │ ├── MainWindowComponents.resx │ ├── Properties │ │ ├── SciTE.properties │ │ ├── SciTEGlobal.properties │ │ ├── Tilde.properties │ │ ├── abbrev.properties │ │ ├── ada.properties │ │ ├── asm.properties │ │ ├── asn1.properties │ │ ├── au3.properties │ │ ├── ave.properties │ │ ├── baan.properties │ │ ├── blitzbasic.properties │ │ ├── bullant.properties │ │ ├── caml.properties │ │ ├── cmake.properties │ │ ├── conf.properties │ │ ├── cpp.properties │ │ ├── csound.properties │ │ ├── css.properties │ │ ├── d.properties │ │ ├── eiffel.properties │ │ ├── erlang.properties │ │ ├── escript.properties │ │ ├── flagship.properties │ │ ├── forth.properties │ │ ├── fortran.properties │ │ ├── freebasic.properties │ │ ├── gap.properties │ │ ├── html.properties │ │ ├── inno.properties │ │ ├── kix.properties │ │ ├── latex.properties │ │ ├── lisp.properties │ │ ├── lot.properties │ │ ├── lout.properties │ │ ├── lua.properties │ │ ├── lualib5_annot.api │ │ ├── matlab.properties │ │ ├── metapost.properties │ │ ├── mmixal.properties │ │ ├── nncrontab.properties │ │ ├── nsis.properties │ │ ├── opal.properties │ │ ├── others.properties │ │ ├── pascal.properties │ │ ├── perl.properties │ │ ├── pov.properties │ │ ├── ps.properties │ │ ├── purebasic.properties │ │ ├── python.properties │ │ ├── rebol.properties │ │ ├── ruby.properties │ │ ├── scriptol.properties │ │ ├── smalltalk.properties │ │ ├── specman.properties │ │ ├── spice.properties │ │ ├── sql.properties │ │ ├── tcl.properties │ │ ├── tex.properties │ │ ├── vb.properties │ │ ├── verilog.properties │ │ ├── vhdl.properties │ │ └── yaml.properties │ ├── TextDocument.cs │ ├── TextOptions.cs │ ├── TextPlugin.cs │ ├── TextView.Designer.cs │ ├── TextView.cs │ └── TextView.resx ├── VCProject.cs ├── VCProjectDocument.cs ├── Versioning │ └── IVersionController.cs └── Wizard │ ├── WizardForm.Designer.cs │ ├── WizardForm.cs │ ├── WizardForm.resx │ └── WizardTabControl.cs ├── Framework ├── Controller │ ├── ApplicationOptions.cs │ ├── CommandLineArguments.cs │ ├── DirectoryWatcher.cs │ ├── FileWatcher.cs │ ├── IManager.cs │ ├── IOptions.cs │ ├── IOptionsDatabase.cs │ ├── IPlugin.cs │ ├── ITransaction.cs │ ├── IVersionController.cs │ ├── OptionsGridPanel.Designer.cs │ ├── OptionsGridPanel.cs │ ├── OptionsGridPanel.resx │ ├── OptionsManager.cs │ ├── OptionsPanel.Designer.cs │ ├── OptionsPanel.cs │ ├── OptionsPanelAttribute.cs │ ├── PluginCollection.cs │ ├── RegistryOptionsDatabase.cs │ ├── TransactionGroup.cs │ ├── TransactionManager.cs │ └── XmlOptionsDatabase.cs ├── Controls │ ├── DBListView.Designer.cs │ ├── DBListView.cs │ ├── MessageBoxEx.cs │ ├── MyWebBrowser.Designer.cs │ ├── MyWebBrowser.cs │ ├── ShellAPI.cs │ ├── SystemImageList.cs │ ├── TreeTable.Designer.cs │ ├── TreeTable.cs │ ├── TreeTable.resx │ ├── TreeTableNode.cs │ ├── TreeTableSubItem.cs │ ├── Win32.cs │ └── WindowsHook.cs ├── Framework.csproj ├── Model │ ├── Document.cs │ ├── DocumentClassAttribute.cs │ ├── ListCollection.cs │ ├── Project.cs │ ├── ProjectClassAttribute.cs │ ├── ProjectDocument.cs │ ├── ProjectDocumentCollection.cs │ ├── ProjectHierarchy │ │ ├── DocumentItem.cs │ │ ├── Folder.cs │ │ ├── ProjectDocumentItem.cs │ │ ├── ProjectItem.cs │ │ ├── ProjectItemCollection.cs │ │ └── RootItem.cs │ ├── PropertyChangeEvent.cs │ └── ReadOnlyDocumentException.cs ├── PathUtils.cs ├── Properties │ └── AssemblyInfo.cs ├── ReflectionUtils.cs ├── View │ ├── DocumentView.Designer.cs │ ├── DocumentView.cs │ ├── DocumentView.resx │ ├── PersistWindowComponent.cs │ ├── ToolWindow.Designer.cs │ ├── ToolWindow.cs │ ├── ToolWindow.resx │ └── ToolWindowAttribute.cs ├── vcproj.xsd └── vcproj.xsx ├── Setup ├── Debug │ ├── Tilde-0.5-setup.msi │ └── setup.exe ├── Release │ ├── Tilde-0.5-setup.msi │ └── setup.exe └── Setup.vdproj ├── TildeApp ├── AboutWindow.Designer.cs ├── AboutWindow.cs ├── AboutWindow.resx ├── DocumentSwitchWindow.Designer.cs ├── DocumentSwitchWindow.cs ├── DocumentSwitchWindow.resx ├── ExternalModificationsLogWindow.Designer.cs ├── ExternalModificationsLogWindow.cs ├── ExternalModificationsLogWindow.resx ├── FindFileInProjectWindow.Designer.cs ├── FindFileInProjectWindow.cs ├── FindFileInProjectWindow.resx ├── Icons │ ├── Document.bmp │ ├── Document_16x16.bmp │ ├── FolderClosed.bmp │ ├── FolderClosed_16x16.bmp │ ├── FolderOpen.bmp │ ├── FolderOpen_16x16.bmp │ └── NoteOverlay_16x16.bmp ├── MainWindow.cs ├── MainWindow.designer.cs ├── MainWindow.resx ├── Manager.cs ├── OptionsWindow.Designer.cs ├── OptionsWindow.cs ├── OptionsWindow.resx ├── OutputPanel.cs ├── OutputPanel.resx ├── PluginsWindow.cs ├── PluginsWindow.designer.cs ├── PluginsWindow.resx ├── Program.cs ├── ProjectPanel.cs ├── ProjectPanel.designer.cs ├── ProjectPanel.resx ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ ├── Resources.resx │ ├── Settings.Designer.cs │ └── Settings.settings ├── PropertiesPanel.Designer.cs ├── PropertiesPanel.cs ├── PropertiesPanel.resx ├── Settings.cs ├── SourceControlWindow.Designer.cs ├── SourceControlWindow.cs ├── SourceControlWindow.resx ├── Tilde.exe.config ├── Tilde.exe.manifest ├── Tilde.ico └── TildeApp.csproj └── tilde ├── HostConfig.cpp ├── HostConfig.h ├── LuaDebugger.cpp ├── LuaDebugger.h ├── LuaDebuggerComms.cpp ├── LuaDebuggerComms.h ├── LuaDebuggerHost.h ├── LuaDebuggerProtocol.h ├── LuaHostWindows.cpp ├── LuaHostWindows.h ├── ReceiveMessageBuffer.h └── SendMessageBuffer.h /.gitattributes: -------------------------------------------------------------------------------- 1 | *.sln -crlf 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | bin/ 2 | obj/ 3 | *.suo 4 | *.wwdb 5 | README.html 6 | *.bak 7 | -------------------------------------------------------------------------------- /Copyright.txt: -------------------------------------------------------------------------------- 1 | 2 | /**************************************************************************** 3 | 4 | Tilde 5 | 6 | Copyright (c) 2008 Tantalus Media Pty 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | ****************************************************************************/ 27 | 28 | -------------------------------------------------------------------------------- /doc/Tilde Documentation.odt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/doc/Tilde Documentation.odt -------------------------------------------------------------------------------- /doc/assemblies.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/doc/assemblies.png -------------------------------------------------------------------------------- /examples/WindowsDemo/LuaMachine.h: -------------------------------------------------------------------------------- 1 | 2 | /**************************************************************************** 3 | 4 | Tilde 5 | 6 | Copyright (c) 2008 Tantalus Media Pty 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | ****************************************************************************/ 27 | 28 | #pragma once 29 | 30 | #include "lua.h" 31 | 32 | 33 | class LuaMachine 34 | { 35 | public: 36 | LuaMachine(void); 37 | 38 | void LoadScript(const char * name); 39 | ~LuaMachine(void); 40 | 41 | lua_State * GetLVM() { return m_lvm; } 42 | 43 | void Step(); 44 | 45 | private: 46 | 47 | typedef int (* LuaFunctionCallback)(lua_State * lvm); 48 | 49 | void InitialiseThreadTable(); 50 | void SetLuaFunction(const char * name, LuaFunctionCallback func); 51 | 52 | private: 53 | lua_State * m_lvm; 54 | 55 | }; 56 | -------------------------------------------------------------------------------- /examples/WindowsDemo/main.cpp: -------------------------------------------------------------------------------- 1 | 2 | /**************************************************************************** 3 | 4 | Tilde 5 | 6 | Copyright (c) 2008 Tantalus Media Pty 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | ****************************************************************************/ 27 | 28 | #include "LuaHostWindows.h" 29 | 30 | #include 31 | #include 32 | 33 | int _tmain(int argc, _TCHAR* argv[]) 34 | { 35 | LuaHostWindows luahost(10000); 36 | return luahost.Start(); 37 | } 38 | 39 | -------------------------------------------------------------------------------- /examples/WindowsDemo/scripts/main.lua: -------------------------------------------------------------------------------- 1 | 2 | print("Running main.lua!\n") 3 | 4 | function step() 5 | for thread, info in pairs(ThreadTable) do 6 | if coroutine.status(thread) ~= "running" then 7 | local result = coroutine.resume(thread) 8 | if not result or coroutine.status(thread) ~= "suspended" then 9 | ThreadTable[thread] = nil 10 | end 11 | end 12 | end 13 | end 14 | 15 | function newthread(name, func) 16 | local thread = coroutine.create(func) 17 | ThreadTable[thread] = { name = name } 18 | return thread 19 | end 20 | 21 | -------------------------------------------------------------------------------- /examples/WindowsDemo/scripts/test.lua: -------------------------------------------------------------------------------- 1 | 2 | function spawn_threads() 3 | newthread("Hello", function() 4 | for count = 1, 10 do 5 | print("hello\n") 6 | coroutine.yield() 7 | end 8 | end) 9 | 10 | newthread("doSomething", function() 11 | for count = 1, 10 do 12 | doSomething(1, 2, count) 13 | coroutine.yield() 14 | end 15 | end) 16 | 17 | newthread("throwError", function() 18 | for count = 1, 10 do 19 | coroutine.yield() 20 | end 21 | error("oops") 22 | end) 23 | end 24 | 25 | local anUpvalue = 20 26 | 27 | function doSomething(...) 28 | print(string.format("anUpvalue = %d\n", anUpvalue)) 29 | end 30 | 31 | function add(x, y) 32 | return x + y 33 | end 34 | -------------------------------------------------------------------------------- /lib/ScintillaNET/v6-b1.1/Configuration/Interfaces/ILanguageConfig.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Scintilla.Enums; 5 | 6 | namespace Scintilla.Configuration 7 | { 8 | public interface ILanguageConfig 9 | { 10 | SortedDictionary KeywordLists { get; } 11 | 12 | SortedDictionary Styles { get; } 13 | 14 | ILexerConfig Lexer { get; set; } 15 | 16 | string Name { get; set; } 17 | 18 | string WordCharacters { get; set; } 19 | 20 | string WhitespaceCharacters { get; set; } 21 | 22 | string PreprocessorSymbol { get; set; } 23 | 24 | string PreprocessorStart { get; set; } 25 | 26 | string PreprocessorMiddle { get; set; } 27 | 28 | string PreprocessorEnd { get; set; } 29 | 30 | string FilePattern { get; set; } 31 | 32 | string FileFilter { get; set; } 33 | 34 | string Extension { get; set; } 35 | 36 | string ExtensionList { get; set; } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /lib/ScintillaNET/v6-b1.1/Configuration/Interfaces/ILanguageConfigCollection.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Scintilla.Configuration 6 | { 7 | public interface ILanguageConfigCollection 8 | { 9 | ILanguageConfig this[string name] { get; } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /lib/ScintillaNET/v6-b1.1/Configuration/Interfaces/ILexerConfig.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Scintilla.Enums; 5 | 6 | namespace Scintilla.Configuration 7 | { 8 | public interface ILexerConfig 9 | { 10 | Lexer Type { get; } 11 | 12 | int LexerID { get; } 13 | 14 | string LexerName { get; } 15 | 16 | SortedDictionary Styles { get; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /lib/ScintillaNET/v6-b1.1/Configuration/Interfaces/ILexerConfigCollection.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Scintilla.Enums; 5 | 6 | namespace Scintilla.Configuration 7 | { 8 | public interface ILexerConfigCollection 9 | { 10 | ILexerConfig this[int lexerId] { get; } 11 | 12 | ILexerConfig this[Lexer lexer] { get; } 13 | 14 | ILexerConfig this[string lexerName] { get; } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /lib/ScintillaNET/v6-b1.1/Configuration/Interfaces/ILexerStyle.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using System.Drawing; 5 | using Scintilla.Enums; 6 | 7 | namespace Scintilla.Configuration 8 | { 9 | public interface ILexerStyle 10 | { 11 | int StyleIndex { get; } 12 | 13 | String StyleDescription { get; set; } 14 | 15 | String FontName { get; set; } 16 | 17 | int? FontSize { get; set; } 18 | 19 | Color ForeColor { get; set; } 20 | 21 | Color BackColor { get; set; } 22 | 23 | bool? Italics { get; set; } 24 | 25 | bool? Bold { get; set; } 26 | 27 | bool? Underline { get; set; } 28 | 29 | bool? EOLFilled { get; set; } 30 | 31 | CaseVisible CaseVisibility { get; set; } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /lib/ScintillaNET/v6-b1.1/Configuration/Interfaces/IMenuItemConfig.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using System.Windows.Forms; 5 | 6 | namespace Scintilla.Configuration 7 | { 8 | public interface IMenuItemConfig 9 | { 10 | string Text { get; set; } 11 | 12 | string Value { get; set; } 13 | 14 | Keys ShortcutKeys { get; set; } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /lib/ScintillaNET/v6-b1.1/Configuration/Interfaces/IScintillaConfig.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using System.Drawing; 5 | 6 | namespace Scintilla.Configuration 7 | { 8 | public interface IScintillaConfig 9 | { 10 | ILanguageConfigCollection Languages { get; } 11 | 12 | List LanguageNames { get; } 13 | 14 | ILexerConfigCollection Lexers { get; } 15 | 16 | List LanguageMenuItems { get; } 17 | 18 | SortedDictionary Styles { get; } 19 | 20 | SortedDictionary Properties { get; } 21 | 22 | int? CodePage { get; set; } 23 | 24 | int? TabSize { get; set; } 25 | 26 | int? IndentSize { get; set; } 27 | 28 | bool? UseTabs { get; set; } 29 | 30 | bool? Fold { get; set; } 31 | 32 | bool? FoldCompact { get; set; } 33 | 34 | int? FoldFlags { get; set; } 35 | 36 | bool? FoldComment { get; set; } 37 | 38 | bool? FoldPreprocessor { get; set; } 39 | 40 | bool? FoldSymbols { get; set; } 41 | 42 | bool? FoldOnOpen { get; set; } 43 | 44 | bool? FoldHTML { get; set; } 45 | 46 | bool? FoldHTMLPreprocessor { get; set; } 47 | 48 | int? FoldMarginWidth { get; set; } 49 | 50 | Color FoldMarginColor { get; set; } 51 | 52 | Color FoldMarginHighlightColor { get; set; } 53 | 54 | int? SelectionAlpha { get; set; } 55 | 56 | Color SelectionBackColor { get; set; } 57 | 58 | string DefaultFileExtention { get; set; } 59 | 60 | string FileOpenFilter { get; set; } 61 | 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /lib/ScintillaNET/v6-b1.1/Configuration/Interfaces/IScintillaConfigProvider.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Scintilla.Configuration 6 | { 7 | public interface IScintillaConfigProvider 8 | { 9 | bool PopulateScintillaConfig(IScintillaConfig config, string filepattern); 10 | bool PopulateLexerConfig(ILexerConfig config); 11 | bool PopulateLanguageConfig(ILanguageConfig config, ILexerConfigCollection lexers); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /lib/ScintillaNET/v6-b1.1/Configuration/MenuItemConfig.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using System.Drawing; 5 | using Scintilla.Enums; 6 | using WinForms = System.Windows.Forms; 7 | 8 | namespace Scintilla.Configuration 9 | { 10 | public class MenuItemConfig : IMenuItemConfig 11 | { 12 | private string text; 13 | private string val; 14 | private WinForms.Keys shortcutKeys; 15 | 16 | public MenuItemConfig() { } 17 | 18 | public string Text 19 | { 20 | get { return text; } 21 | set { text = value; } 22 | } 23 | 24 | public string Value 25 | { 26 | get { return val; } 27 | set { val = value; } 28 | } 29 | 30 | public WinForms.Keys ShortcutKeys 31 | { 32 | get { return shortcutKeys; } 33 | set { shortcutKeys = value; } 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /lib/ScintillaNET/v6-b1.1/Forms/FindReplace/FindForm.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Text; 7 | using System.Windows.Forms; 8 | 9 | using Scintilla; 10 | 11 | namespace Scintilla.Forms 12 | { 13 | public partial class FindForm : Form 14 | { 15 | public FindForm() 16 | { 17 | InitializeComponent(); 18 | 19 | this.CancelButton = this.findControl1.ButtonCancelPublic; 20 | this.AcceptButton = this.findControl1.ButtonFindNextPublic; 21 | 22 | this.findControl1.Cancel += new CancelEventHandler(findControl1_Cancel); 23 | 24 | this.VisibleChanged += new EventHandler(FindForm_VisibleChanged); 25 | } 26 | 27 | void FindForm_VisibleChanged(object sender, EventArgs e) 28 | { 29 | this.findControl1.SetDefaultSearchText(); 30 | } 31 | 32 | public void Initialize(ScintillaControl control) 33 | { 34 | this.findControl1.Initialize(control); 35 | } 36 | 37 | void findControl1_Cancel(object sender, CancelEventArgs e) 38 | { 39 | this.findControl1.Reset(); 40 | this.Hide(); 41 | } 42 | 43 | public void FindNext() 44 | { 45 | this.findControl1.FindNext(); 46 | } 47 | 48 | public void FindPrevious() 49 | { 50 | this.findControl1.FindPrevious(); 51 | } 52 | } 53 | } -------------------------------------------------------------------------------- /lib/ScintillaNET/v6-b1.1/Forms/FindReplace/ReplaceForm.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Text; 7 | using System.Windows.Forms; 8 | 9 | using Scintilla; 10 | 11 | namespace Scintilla.Forms 12 | { 13 | public partial class ReplaceForm : Form 14 | { 15 | public ReplaceForm() 16 | { 17 | InitializeComponent(); 18 | 19 | this.CancelButton = this.replaceControl1.ButtonCancelPublic; 20 | this.AcceptButton = this.replaceControl1.ButtonFindNextPublic; 21 | 22 | this.replaceControl1.Cancel += new CancelEventHandler(replaceControl1_Cancel); 23 | 24 | this.VisibleChanged += new EventHandler(ReplaceForm_VisibleChanged); 25 | } 26 | 27 | void ReplaceForm_VisibleChanged(object sender, EventArgs e) 28 | { 29 | this.replaceControl1.SetDefaultSearchText(); 30 | } 31 | 32 | public void Initialize(ScintillaControl control) 33 | { 34 | this.replaceControl1.Initialize(control); 35 | } 36 | 37 | void replaceControl1_Cancel(object sender, CancelEventArgs e) 38 | { 39 | this.replaceControl1.Reset(); 40 | this.Hide(); 41 | } 42 | 43 | public void ReplaceNext() 44 | { 45 | this.replaceControl1.ReplaceNext(); 46 | } 47 | } 48 | } -------------------------------------------------------------------------------- /lib/ScintillaNET/v6-b1.1/Forms/GoToLine/GoToLineDialog.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Text; 7 | using System.Windows.Forms; 8 | 9 | namespace Scintilla.Forms { 10 | public partial class GoToLineDialog : Form { 11 | public static int Show(ScintillaControl oScintillaControl) { 12 | GoToLineDialog oGoToLineDialog; 13 | DialogResult oDialogResult; 14 | int iLine; 15 | 16 | iLine = oScintillaControl.LineFromPosition(oScintillaControl.CurrentPos) + 1; 17 | oGoToLineDialog = new GoToLineDialog(oScintillaControl.LineCount, iLine); 18 | oDialogResult = oGoToLineDialog.ShowDialog(); 19 | 20 | if (oDialogResult == DialogResult.OK) { 21 | iLine = (int) oGoToLineDialog.numericUpDown.Value; 22 | oScintillaControl.GotoLine(iLine - 1); 23 | } 24 | 25 | return iLine; 26 | } 27 | 28 | private GoToLineDialog(int iLineCount, int iCurrentLine) { 29 | InitializeComponent(); 30 | 31 | labelMessage.Text = labelMessage.Text.Replace("max", iLineCount.ToString()); 32 | 33 | numericUpDown.Maximum = iLineCount; 34 | numericUpDown.Value = iCurrentLine; 35 | } 36 | 37 | private void buttonOk_Click(object sender, EventArgs e) { 38 | this.DialogResult = DialogResult.OK; 39 | this.Close(); 40 | } 41 | 42 | private void buttonCancel_Click(object sender, EventArgs e) { 43 | this.DialogResult = DialogResult.Cancel; 44 | this.Close(); 45 | } 46 | } 47 | } -------------------------------------------------------------------------------- /lib/ScintillaNET/v6-b1.1/Legacy/Include.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Runtime; 3 | using System.Xml.Serialization; 4 | 5 | namespace Scintilla.Legacy.Configuration 6 | { 7 | [SerializableAttribute()] 8 | public class include : ConfigItem 9 | { 10 | [XmlAttributeAttribute()] 11 | public string file; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /lib/ScintillaNET/v6-b1.1/Legacy/KeywordClass.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Runtime; 3 | using System.Xml.Serialization; 4 | 5 | namespace Scintilla.Legacy.Configuration 6 | { 7 | [SerializableAttribute()] 8 | public class KeywordClass : ConfigItem 9 | { 10 | [XmlAttributeAttribute()] 11 | public string name; 12 | 13 | [XmlTextAttribute()] 14 | public string val; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /lib/ScintillaNET/v6-b1.1/Legacy/Language.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Runtime; 3 | using System.Xml.Serialization; 4 | 5 | namespace Scintilla.Legacy.Configuration 6 | { 7 | [SerializableAttribute()] 8 | public class Language : ConfigItem 9 | { 10 | [XmlAttributeAttribute()] 11 | public string name; 12 | 13 | public Lexer lexer; 14 | 15 | [XmlElementAttribute(ElementName="file-extensions")] 16 | public string fileextensions; 17 | 18 | [XmlArrayAttribute("use-keywords")] 19 | [XmlArrayItemAttribute("keyword")] 20 | public UseKeyword[] usekeywords; 21 | 22 | [XmlArrayAttribute("use-styles")] 23 | [XmlArrayItemAttribute("style")] 24 | public UseStyle[] usestyles; 25 | 26 | public override void init(ConfigurationUtility utility, ConfigFile theParent) 27 | { 28 | base.init(utility, theParent); 29 | if (usekeywords == null) 30 | { 31 | usekeywords = new UseKeyword[0]; 32 | } 33 | if (usestyles == null) 34 | { 35 | usestyles = new UseStyle[0]; 36 | } 37 | for (int j = 0; j < usekeywords.Length; j++) 38 | { 39 | usekeywords[j].init(utility, _parent); 40 | } 41 | for (int i = 0; i < usestyles.Length; i++) 42 | { 43 | usestyles[i].init(utility, _parent); 44 | } 45 | if (lexer != null) 46 | { 47 | lexer.init(utility, _parent); 48 | } 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /lib/ScintillaNET/v6-b1.1/Legacy/Lexer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Runtime; 3 | using System.Xml.Serialization; 4 | 5 | namespace Scintilla.Legacy.Configuration 6 | { 7 | [SerializableAttribute()] 8 | public class Lexer : ConfigItem 9 | { 10 | 11 | [XmlAttributeAttribute()] 12 | public int key; 13 | 14 | [XmlAttributeAttribute("name")] 15 | public string name; 16 | 17 | [XmlAttributeAttribute("style-bits")] 18 | public int stylebits; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /lib/ScintillaNET/v6-b1.1/Legacy/UseKeyword.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Runtime; 3 | using System.Xml.Serialization; 4 | 5 | namespace Scintilla.Legacy.Configuration 6 | { 7 | [SerializableAttribute()] 8 | public class UseKeyword : ConfigItem 9 | { 10 | [XmlAttributeAttribute()] 11 | public int key; 12 | 13 | [XmlAttributeAttribute("class")] 14 | public string cls; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /lib/ScintillaNET/v6-b1.1/Legacy/UseStyle.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Runtime; 3 | using System.Xml.Serialization; 4 | 5 | namespace Scintilla.Legacy.Configuration 6 | { 7 | [SerializableAttribute()] 8 | public class UseStyle : StyleClass 9 | { 10 | [XmlAttributeAttribute("class")] 11 | public string cls; 12 | 13 | public override void init(ConfigurationUtility utility, ConfigFile theParent) 14 | { 15 | base.init(utility, theParent); 16 | if (cls != null && cls.Length > 0) 17 | { 18 | inheritstyle = cls; 19 | } 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /lib/ScintillaNET/v6-b1.1/Legacy/Value.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Runtime; 3 | using System.Xml.Serialization; 4 | 5 | namespace Scintilla.Legacy.Configuration 6 | { 7 | [SerializableAttribute()] 8 | public class Value : ConfigItem 9 | { 10 | [XmlAttributeAttribute()] 11 | public string name; 12 | 13 | [XmlTextAttribute()] 14 | public string val; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /lib/ScintillaNET/v6-b1.1/Legacy/configitem.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Runtime; 3 | 4 | namespace Scintilla.Legacy.Configuration 5 | { 6 | [SerializableAttribute()] 7 | public class ConfigItem 8 | { 9 | [NonSerializedAttribute()] 10 | protected ConfigFile _parent; 11 | 12 | public virtual void init(ConfigurationUtility utility, ConfigFile theParent) 13 | { 14 | if (theParent == null) 15 | { 16 | _parent = (ConfigFile)this; 17 | } 18 | else 19 | { 20 | _parent = theParent; 21 | } 22 | } 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /lib/ScintillaNET/v6-b1.1/NativeMethods.cs: -------------------------------------------------------------------------------- 1 | using System.Runtime.InteropServices; 2 | using System; 3 | 4 | namespace Scintilla 5 | { 6 | public enum BeepType 7 | { 8 | Default = -1, 9 | Ok = 0x00000000, 10 | Error = 0x00000010, 11 | Question = 0x00000020, 12 | Warning = 0x00000030, 13 | Information = 0x00000040, 14 | } 15 | 16 | internal class NativeMethods 17 | { 18 | private NativeMethods() 19 | { 20 | } 21 | 22 | [DllImport("kernel32")] 23 | internal extern static IntPtr LoadLibrary(string lpLibFileName); 24 | 25 | internal const int WM_NOTIFY = 0x004e; 26 | 27 | /* 28 | 29 | [DllImport("user32.dll", SetLastError = true)] 30 | internal static extern bool MessageBeep(BeepType type); 31 | 32 | [DllImport("kernel32.dll")] 33 | internal static extern bool Beep(int frequency, int time); 34 | 35 | 36 | [DllImport("kernel32", EntryPoint = "SendMessage")] 37 | internal static extern int SendMessageStr( 38 | IntPtr hWnd, 39 | int message, 40 | int data, 41 | string s); 42 | 43 | [DllImport("user32.dll")] 44 | internal static extern IntPtr SetFocus(IntPtr hwnd); 45 | */ 46 | } 47 | } 48 | 49 | -------------------------------------------------------------------------------- /lib/ScintillaNET/v6-b1.1/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("Scintilla")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("None")] 12 | [assembly: AssemblyProduct("Scintilla")] 13 | [assembly: AssemblyCopyright("Copyright © None 2006")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("26cd0088-003b-49cc-9a18-de1dc0133c6a")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Revision and Build Numbers 33 | // by using the '*' as shown below: 34 | [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyFileVersion("1.0.0.0")] 36 | -------------------------------------------------------------------------------- /lib/ScintillaNET/v6-b1.1/SciLexer.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/lib/ScintillaNET/v6-b1.1/SciLexer.dll -------------------------------------------------------------------------------- /lib/ScintillaNET/v6-b1.1/ScintillaControl.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace Scintilla 2 | { 3 | partial class ScintillaControl 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Component Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | components = new System.ComponentModel.Container(); 32 | } 33 | 34 | #endregion 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /lib/ScintillaNET/v6-b1.1/Utilities.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Drawing; 3 | using System.Windows.Forms; 4 | using System.Runtime.InteropServices; 5 | 6 | namespace Scintilla 7 | { 8 | public class Utilities 9 | { 10 | private Utilities() 11 | { 12 | } 13 | 14 | public static int ColorToRgb(Color c) 15 | { 16 | return c.R + (c.G << 8) + (c.B << 16); 17 | } 18 | 19 | public static Color RgbToColor(int color) 20 | { 21 | return Color.FromArgb(color & 0x0000ff, (color & 0x00ff00) >> 8, (color & 0xff0000) >> 16); 22 | } 23 | 24 | public static int SignedLoWord(IntPtr loWord) 25 | { 26 | return (short)((int)(long)loWord & 0xffff); 27 | } 28 | 29 | public static int SignedHiWord(IntPtr hiWord) 30 | { 31 | return (short)(((int)(long)hiWord >> 0x10) & 0xffff); 32 | } 33 | 34 | public unsafe static string PtrToStringUtf8(IntPtr ptr, int length) 35 | { 36 | if (ptr == IntPtr.Zero) 37 | return null; 38 | 39 | byte[] buff = new byte[length]; 40 | Marshal.Copy(ptr, buff, 0, length); 41 | return System.Text.UTF8Encoding.UTF8.GetString(buff); 42 | } 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /lib/WinFormsUI/v2.2/Docking/DockContentEventArgs.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace WeifenLuo.WinFormsUI.Docking 4 | { 5 | public class DockContentEventArgs : EventArgs 6 | { 7 | private IDockContent m_content; 8 | 9 | public DockContentEventArgs(IDockContent content) 10 | { 11 | m_content = content; 12 | } 13 | 14 | public IDockContent Content 15 | { 16 | get { return m_content; } 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /lib/WinFormsUI/v2.2/Docking/DockPaneCollection.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.ObjectModel; 3 | using System.Collections.Generic; 4 | using System.Drawing; 5 | using System.Windows.Forms; 6 | 7 | namespace WeifenLuo.WinFormsUI.Docking 8 | { 9 | public class DockPaneCollection : ReadOnlyCollection 10 | { 11 | internal DockPaneCollection() 12 | : base(new List()) 13 | { 14 | } 15 | 16 | internal int Add(DockPane pane) 17 | { 18 | if (Items.Contains(pane)) 19 | return Items.IndexOf(pane); 20 | 21 | Items.Add(pane); 22 | return Count - 1; 23 | } 24 | 25 | internal void AddAt(DockPane pane, int index) 26 | { 27 | if (index < 0 || index > Items.Count - 1) 28 | return; 29 | 30 | if (Contains(pane)) 31 | return; 32 | 33 | Items.Insert(index, pane); 34 | } 35 | 36 | internal void Dispose() 37 | { 38 | for (int i=Count - 1; i>=0; i--) 39 | this[i].Close(); 40 | } 41 | 42 | internal void Remove(DockPane pane) 43 | { 44 | Items.Remove(pane); 45 | } 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /lib/WinFormsUI/v2.2/Docking/DockPanel.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/lib/WinFormsUI/v2.2/Docking/DockPanel.bmp -------------------------------------------------------------------------------- /lib/WinFormsUI/v2.2/Docking/DockWindow.SplitterControl.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.ComponentModel; 4 | using System.Drawing; 5 | using System.Windows.Forms; 6 | 7 | namespace WeifenLuo.WinFormsUI.Docking 8 | { 9 | public partial class DockWindow 10 | { 11 | private class SplitterControl : SplitterBase 12 | { 13 | protected override int SplitterSize 14 | { 15 | get { return Measures.SplitterSize; } 16 | } 17 | 18 | protected override void StartDrag() 19 | { 20 | DockWindow window = Parent as DockWindow; 21 | if (window == null) 22 | return; 23 | 24 | window.DockPanel.BeginDrag(window, window.RectangleToScreen(Bounds)); 25 | } 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /lib/WinFormsUI/v2.2/Docking/DockWindowCollection.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Collections.ObjectModel; 4 | 5 | namespace WeifenLuo.WinFormsUI.Docking 6 | { 7 | public class DockWindowCollection : ReadOnlyCollection 8 | { 9 | internal DockWindowCollection(DockPanel dockPanel) 10 | : base(new List()) 11 | { 12 | Items.Add(new DockWindow(dockPanel, DockState.Document)); 13 | Items.Add(new DockWindow(dockPanel, DockState.DockLeft)); 14 | Items.Add(new DockWindow(dockPanel, DockState.DockRight)); 15 | Items.Add(new DockWindow(dockPanel, DockState.DockTop)); 16 | Items.Add(new DockWindow(dockPanel, DockState.DockBottom)); 17 | } 18 | 19 | public DockWindow this [DockState dockState] 20 | { 21 | get 22 | { 23 | if (dockState == DockState.Document) 24 | return Items[0]; 25 | else if (dockState == DockState.DockLeft || dockState == DockState.DockLeftAutoHide) 26 | return Items[1]; 27 | else if (dockState == DockState.DockRight || dockState == DockState.DockRightAutoHide) 28 | return Items[2]; 29 | else if (dockState == DockState.DockTop || dockState == DockState.DockTopAutoHide) 30 | return Items[3]; 31 | else if (dockState == DockState.DockBottom || dockState == DockState.DockBottomAutoHide) 32 | return Items[4]; 33 | 34 | throw (new ArgumentOutOfRangeException()); 35 | } 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /lib/WinFormsUI/v2.2/Docking/DummyControl.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Windows.Forms; 3 | 4 | namespace WeifenLuo.WinFormsUI.Docking 5 | { 6 | internal class DummyControl : Control 7 | { 8 | public DummyControl() 9 | { 10 | SetStyle(ControlStyles.Selectable, false); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /lib/WinFormsUI/v2.2/Docking/Enums.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.ComponentModel; 3 | using System.Windows.Forms; 4 | 5 | namespace WeifenLuo.WinFormsUI.Docking 6 | { 7 | [Flags] 8 | [Serializable] 9 | [Editor(typeof(DockAreasEditor), typeof(System.Drawing.Design.UITypeEditor))] 10 | public enum DockAreas 11 | { 12 | Float = 1, 13 | DockLeft = 2, 14 | DockRight = 4, 15 | DockTop = 8, 16 | DockBottom = 16, 17 | Document = 32 18 | } 19 | 20 | public enum DockState 21 | { 22 | Unknown = 0, 23 | Float = 1, 24 | DockTopAutoHide = 2, 25 | DockLeftAutoHide = 3, 26 | DockBottomAutoHide = 4, 27 | DockRightAutoHide = 5, 28 | Document = 6, 29 | DockTop = 7, 30 | DockLeft = 8, 31 | DockBottom = 9, 32 | DockRight = 10, 33 | Hidden = 11 34 | } 35 | 36 | public enum DockAlignment 37 | { 38 | Left, 39 | Right, 40 | Top, 41 | Bottom 42 | } 43 | 44 | public enum DocumentStyle 45 | { 46 | DockingMdi, 47 | DockingWindow, 48 | DockingSdi, 49 | SystemMdi, 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /lib/WinFormsUI/v2.2/Docking/FloatWindowCollection.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Collections.ObjectModel; 4 | using System.Drawing; 5 | using System.Windows.Forms; 6 | 7 | namespace WeifenLuo.WinFormsUI.Docking 8 | { 9 | public class FloatWindowCollection : ReadOnlyCollection 10 | { 11 | internal FloatWindowCollection() 12 | : base(new List()) 13 | { 14 | } 15 | 16 | internal int Add(FloatWindow fw) 17 | { 18 | if (Items.Contains(fw)) 19 | return Items.IndexOf(fw); 20 | 21 | Items.Add(fw); 22 | return Count - 1; 23 | } 24 | 25 | internal void Dispose() 26 | { 27 | for (int i=Count - 1; i>=0; i--) 28 | this[i].Close(); 29 | } 30 | 31 | internal void Remove(FloatWindow fw) 32 | { 33 | Items.Remove(fw); 34 | } 35 | 36 | internal void BringWindowToFront(FloatWindow fw) 37 | { 38 | Items.Remove(fw); 39 | Items.Add(fw); 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /lib/WinFormsUI/v2.2/Docking/Helpers/ResourceHelper.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Drawing; 3 | using System.Reflection; 4 | using System.Resources; 5 | using System.Windows.Forms; 6 | 7 | namespace WeifenLuo.WinFormsUI.Docking 8 | { 9 | internal static class ResourceHelper 10 | { 11 | private static ResourceManager _resourceManager = null; 12 | 13 | private static ResourceManager ResourceManager 14 | { 15 | get 16 | { 17 | if (_resourceManager == null) 18 | _resourceManager = new ResourceManager("WeifenLuo.WinFormsUI.Docking.Strings", typeof(ResourceHelper).Assembly); 19 | return _resourceManager; 20 | } 21 | 22 | } 23 | 24 | public static string GetString(string name) 25 | { 26 | return ResourceManager.GetString(name); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /lib/WinFormsUI/v2.2/Docking/Helpers/Win32Helper.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Drawing; 3 | using System.Windows.Forms; 4 | 5 | namespace WeifenLuo.WinFormsUI.Docking 6 | { 7 | internal static class Win32Helper 8 | { 9 | public static Control ControlAtPoint(Point pt) 10 | { 11 | return Control.FromChildHandle(NativeMethods.WindowFromPoint(pt)); 12 | } 13 | 14 | public static uint MakeLong(int low, int high) 15 | { 16 | return (uint)((high << 16) + low); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /lib/WinFormsUI/v2.2/Docking/Interfaces.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Drawing; 3 | using System.Windows.Forms; 4 | 5 | namespace WeifenLuo.WinFormsUI.Docking 6 | { 7 | public interface IDockContent 8 | { 9 | DockContentHandler DockHandler { get; } 10 | } 11 | 12 | public interface INestedPanesContainer 13 | { 14 | DockState DockState { get; } 15 | Rectangle DisplayingRectangle { get; } 16 | NestedPaneCollection NestedPanes { get; } 17 | VisibleNestedPaneCollection VisibleNestedPanes { get; } 18 | bool IsFloat { get; } 19 | } 20 | 21 | internal interface IDragSource 22 | { 23 | Control DragControl { get; } 24 | } 25 | 26 | internal interface IDockDragSource : IDragSource 27 | { 28 | Rectangle BeginDrag(Point ptMouse); 29 | bool IsDockStateValid(DockState dockState); 30 | bool CanDockTo(DockPane pane); 31 | void FloatAt(Rectangle floatWindowBounds); 32 | void DockTo(DockPane pane, DockStyle dockStyle, int contentIndex); 33 | void DockTo(DockPanel panel, DockStyle dockStyle); 34 | } 35 | 36 | internal interface ISplitterDragSource : IDragSource 37 | { 38 | void BeginDrag(Rectangle rectSplitter); 39 | void EndDrag(); 40 | bool IsVertical { get; } 41 | Rectangle DragLimitBounds { get; } 42 | void MoveSplitter(int offset); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /lib/WinFormsUI/v2.2/Docking/Localization.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.ComponentModel; 3 | 4 | namespace WeifenLuo.WinFormsUI.Docking 5 | { 6 | [AttributeUsage(AttributeTargets.All)] 7 | internal sealed class LocalizedDescriptionAttribute : DescriptionAttribute 8 | { 9 | private bool m_initialized = false; 10 | 11 | public LocalizedDescriptionAttribute(string key) : base(key) 12 | { 13 | } 14 | 15 | public override string Description 16 | { 17 | get 18 | { 19 | if (!m_initialized) 20 | { 21 | string key = base.Description; 22 | DescriptionValue = ResourceHelper.GetString(key); 23 | if (DescriptionValue == null) 24 | DescriptionValue = String.Empty; 25 | 26 | m_initialized = true; 27 | } 28 | 29 | return DescriptionValue; 30 | } 31 | } 32 | } 33 | 34 | [AttributeUsage(AttributeTargets.All)] 35 | internal sealed class LocalizedCategoryAttribute : CategoryAttribute 36 | { 37 | public LocalizedCategoryAttribute(string key) : base(key) 38 | { 39 | } 40 | 41 | protected override string GetLocalizedString(string key) 42 | { 43 | return ResourceHelper.GetString(key); 44 | } 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /lib/WinFormsUI/v2.2/Docking/Measures.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace WeifenLuo.WinFormsUI.Docking 4 | { 5 | internal static class Measures 6 | { 7 | public const int SplitterSize = 4; 8 | } 9 | 10 | internal static class MeasurePane 11 | { 12 | public const int MinSize = 24; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /lib/WinFormsUI/v2.2/Docking/Resources/DockIndicator_PaneDiamond.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/lib/WinFormsUI/v2.2/Docking/Resources/DockIndicator_PaneDiamond.bmp -------------------------------------------------------------------------------- /lib/WinFormsUI/v2.2/Docking/Resources/DockIndicator_PaneDiamond_Bottom.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/lib/WinFormsUI/v2.2/Docking/Resources/DockIndicator_PaneDiamond_Bottom.bmp -------------------------------------------------------------------------------- /lib/WinFormsUI/v2.2/Docking/Resources/DockIndicator_PaneDiamond_Hotspot.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/lib/WinFormsUI/v2.2/Docking/Resources/DockIndicator_PaneDiamond_Hotspot.bmp -------------------------------------------------------------------------------- /lib/WinFormsUI/v2.2/Docking/Resources/DockIndicator_PaneDiamond_HotspotIndex.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/lib/WinFormsUI/v2.2/Docking/Resources/DockIndicator_PaneDiamond_HotspotIndex.bmp -------------------------------------------------------------------------------- /lib/WinFormsUI/v2.2/Docking/Resources/DockIndicator_PaneDiamond_Left.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/lib/WinFormsUI/v2.2/Docking/Resources/DockIndicator_PaneDiamond_Left.bmp -------------------------------------------------------------------------------- /lib/WinFormsUI/v2.2/Docking/Resources/DockIndicator_PaneDiamond_Right.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/lib/WinFormsUI/v2.2/Docking/Resources/DockIndicator_PaneDiamond_Right.bmp -------------------------------------------------------------------------------- /lib/WinFormsUI/v2.2/Docking/Resources/DockIndicator_PaneDiamond_Top.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/lib/WinFormsUI/v2.2/Docking/Resources/DockIndicator_PaneDiamond_Top.bmp -------------------------------------------------------------------------------- /lib/WinFormsUI/v2.2/Docking/Resources/DockIndicator_PanelBottom.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/lib/WinFormsUI/v2.2/Docking/Resources/DockIndicator_PanelBottom.bmp -------------------------------------------------------------------------------- /lib/WinFormsUI/v2.2/Docking/Resources/DockIndicator_PanelBottom_Active.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/lib/WinFormsUI/v2.2/Docking/Resources/DockIndicator_PanelBottom_Active.bmp -------------------------------------------------------------------------------- /lib/WinFormsUI/v2.2/Docking/Resources/DockIndicator_PanelFill.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/lib/WinFormsUI/v2.2/Docking/Resources/DockIndicator_PanelFill.bmp -------------------------------------------------------------------------------- /lib/WinFormsUI/v2.2/Docking/Resources/DockIndicator_PanelFill_Active.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/lib/WinFormsUI/v2.2/Docking/Resources/DockIndicator_PanelFill_Active.bmp -------------------------------------------------------------------------------- /lib/WinFormsUI/v2.2/Docking/Resources/DockIndicator_PanelLeft.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/lib/WinFormsUI/v2.2/Docking/Resources/DockIndicator_PanelLeft.bmp -------------------------------------------------------------------------------- /lib/WinFormsUI/v2.2/Docking/Resources/DockIndicator_PanelLeft_Active.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/lib/WinFormsUI/v2.2/Docking/Resources/DockIndicator_PanelLeft_Active.bmp -------------------------------------------------------------------------------- /lib/WinFormsUI/v2.2/Docking/Resources/DockIndicator_PanelRight.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/lib/WinFormsUI/v2.2/Docking/Resources/DockIndicator_PanelRight.bmp -------------------------------------------------------------------------------- /lib/WinFormsUI/v2.2/Docking/Resources/DockIndicator_PanelRight_Active.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/lib/WinFormsUI/v2.2/Docking/Resources/DockIndicator_PanelRight_Active.bmp -------------------------------------------------------------------------------- /lib/WinFormsUI/v2.2/Docking/Resources/DockIndicator_PanelTop.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/lib/WinFormsUI/v2.2/Docking/Resources/DockIndicator_PanelTop.bmp -------------------------------------------------------------------------------- /lib/WinFormsUI/v2.2/Docking/Resources/DockIndicator_PanelTop_Active.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/lib/WinFormsUI/v2.2/Docking/Resources/DockIndicator_PanelTop_Active.bmp -------------------------------------------------------------------------------- /lib/WinFormsUI/v2.2/Docking/Resources/DockPane_AutoHide.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/lib/WinFormsUI/v2.2/Docking/Resources/DockPane_AutoHide.bmp -------------------------------------------------------------------------------- /lib/WinFormsUI/v2.2/Docking/Resources/DockPane_Close.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/lib/WinFormsUI/v2.2/Docking/Resources/DockPane_Close.bmp -------------------------------------------------------------------------------- /lib/WinFormsUI/v2.2/Docking/Resources/DockPane_Dock.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/lib/WinFormsUI/v2.2/Docking/Resources/DockPane_Dock.bmp -------------------------------------------------------------------------------- /lib/WinFormsUI/v2.2/Docking/Resources/DockPane_Option.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/lib/WinFormsUI/v2.2/Docking/Resources/DockPane_Option.bmp -------------------------------------------------------------------------------- /lib/WinFormsUI/v2.2/Docking/Resources/DockPane_OptionOverflow.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/lib/WinFormsUI/v2.2/Docking/Resources/DockPane_OptionOverflow.bmp -------------------------------------------------------------------------------- /lib/WinFormsUI/v2.2/Docking/Resources/Dockindicator_PaneDiamond_Fill.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/lib/WinFormsUI/v2.2/Docking/Resources/Dockindicator_PaneDiamond_Fill.bmp -------------------------------------------------------------------------------- /lib/WinFormsUI/v2.2/Docking/Resources/Thumbs.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/lib/WinFormsUI/v2.2/Docking/Resources/Thumbs.db -------------------------------------------------------------------------------- /lib/WinFormsUI/v2.2/Docking/SplitterBase.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.ComponentModel; 4 | using System.Drawing; 5 | using System.Windows.Forms; 6 | 7 | namespace WeifenLuo.WinFormsUI.Docking 8 | { 9 | internal class SplitterBase : Control 10 | { 11 | public SplitterBase() 12 | { 13 | SetStyle(ControlStyles.Selectable, false); 14 | } 15 | 16 | public override DockStyle Dock 17 | { 18 | get { return base.Dock; } 19 | set 20 | { 21 | SuspendLayout(); 22 | base.Dock = value; 23 | 24 | if (Dock == DockStyle.Left || Dock == DockStyle.Right) 25 | Width = SplitterSize; 26 | else if (Dock == DockStyle.Top || Dock == DockStyle.Bottom) 27 | Height = SplitterSize; 28 | else 29 | Bounds = Rectangle.Empty; 30 | 31 | if (Dock == DockStyle.Left || Dock == DockStyle.Right) 32 | Cursor = Cursors.VSplit; 33 | else if (Dock == DockStyle.Top || Dock == DockStyle.Bottom) 34 | Cursor = Cursors.HSplit; 35 | else 36 | Cursor = Cursors.Default; 37 | 38 | ResumeLayout(); 39 | } 40 | } 41 | 42 | protected virtual int SplitterSize 43 | { 44 | get { return 0; } 45 | } 46 | 47 | protected override void OnMouseDown(MouseEventArgs e) 48 | { 49 | base.OnMouseDown(e); 50 | 51 | if (e.Button != MouseButtons.Left) 52 | return; 53 | 54 | StartDrag(); 55 | } 56 | 57 | protected virtual void StartDrag() 58 | { 59 | } 60 | 61 | protected override void WndProc(ref Message m) 62 | { 63 | // eat the WM_MOUSEACTIVATE message 64 | if (m.Msg == (int)Win32.Msgs.WM_MOUSEACTIVATE) 65 | return; 66 | 67 | base.WndProc(ref m); 68 | } 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /lib/WinFormsUI/v2.2/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Reflection; 3 | using System.Runtime.CompilerServices; 4 | using System.Runtime.InteropServices; 5 | using System.Diagnostics.CodeAnalysis; 6 | 7 | [assembly: AssemblyTitle("DockPanel Suite for .Net 2.0")] 8 | [assembly: AssemblyDescription(".Net Docking Library for Windows Forms")] 9 | [assembly: AssemblyConfiguration("")] 10 | [assembly: AssemblyCompany("Weifen Luo")] 11 | [assembly: AssemblyProduct("DockPanel Suite")] 12 | [assembly: AssemblyCopyright("Copyright © Weifen Luo 2007")] 13 | [assembly: AssemblyTrademark("")] 14 | [assembly: AssemblyCulture("")] 15 | [assembly: CLSCompliant(true)] 16 | 17 | [assembly: ComVisible(false)] 18 | 19 | [assembly: Guid("9d690ef9-ce19-4c69-874c-e24d8eb36aff")] 20 | 21 | [assembly: AssemblyVersion("2.2.*")] 22 | [assembly: AssemblyFileVersion("2.2.0.0")] 23 | 24 | [module: SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope = "namespace", Target = "WeifenLuo.WinFormsUI.Docking", MessageId = "Weifen")] 25 | [module: SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope = "namespace", Target = "WeifenLuo.WinFormsUI.Docking", MessageId = "Luo")] 26 | [module: SuppressMessage("Microsoft.Naming", "CA1703:ResourceStringsShouldBeSpelledCorrectly", Scope = "resource", Target = "WeifenLuo.WinFormsUI.Docking.Strings.resources", MessageId = "Weifen")] 27 | [module: SuppressMessage("Microsoft.Naming", "CA1703:ResourceStringsShouldBeSpelledCorrectly", Scope = "resource", Target = "WeifenLuo.WinFormsUI.Docking.Strings.resources", MessageId = "Luo")] 28 | [module: SuppressMessage("Microsoft.Naming", "CA1703:ResourceStringsShouldBeSpelledCorrectly", Scope = "resource", Target = "WeifenLuo.WinFormsUI.Docking.Strings.resources", MessageId = "Dockable")] -------------------------------------------------------------------------------- /lib/WinFormsUI/v2.2/license.txt: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2007 Weifen Luo (email: weifenluo@yahoo.com) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 6 | 7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 10 | -------------------------------------------------------------------------------- /lib/lua/v5.1.2/COPYRIGHT: -------------------------------------------------------------------------------- 1 | Lua License 2 | ----------- 3 | 4 | Lua is licensed under the terms of the MIT license reproduced below. 5 | This means that Lua is free software and can be used for both academic 6 | and commercial purposes at absolutely no cost. 7 | 8 | For details and rationale, see http://www.lua.org/license.html . 9 | 10 | =============================================================================== 11 | 12 | Copyright (C) 1994-2007 Lua.org, PUC-Rio. 13 | 14 | Permission is hereby granted, free of charge, to any person obtaining a copy 15 | of this software and associated documentation files (the "Software"), to deal 16 | in the Software without restriction, including without limitation the rights 17 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 18 | copies of the Software, and to permit persons to whom the Software is 19 | furnished to do so, subject to the following conditions: 20 | 21 | The above copyright notice and this permission notice shall be included in 22 | all copies or substantial portions of the Software. 23 | 24 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 25 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 26 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 27 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 28 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 29 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 30 | THE SOFTWARE. 31 | 32 | =============================================================================== 33 | 34 | (end of COPYRIGHT) 35 | -------------------------------------------------------------------------------- /lib/lua/v5.1.2/README: -------------------------------------------------------------------------------- 1 | README for Lua 5.1 2 | 3 | See INSTALL for installation instructions. 4 | See HISTORY for a summary of changes since the last released version. 5 | 6 | * What is Lua? 7 | ------------ 8 | Lua is a powerful, light-weight programming language designed for extending 9 | applications. Lua is also frequently used as a general-purpose, stand-alone 10 | language. Lua is free software. 11 | 12 | For complete information, visit Lua's web site at http://www.lua.org/ . 13 | For an executive summary, see http://www.lua.org/about.html . 14 | 15 | Lua has been used in many different projects around the world. 16 | For a short list, see http://www.lua.org/uses.html . 17 | 18 | * Availability 19 | ------------ 20 | Lua is freely available for both academic and commercial purposes. 21 | See COPYRIGHT and http://www.lua.org/license.html for details. 22 | Lua can be downloaded at http://www.lua.org/download.html . 23 | 24 | * Installation 25 | ------------ 26 | Lua is implemented in pure ANSI C, and compiles unmodified in all known 27 | platforms that have an ANSI C compiler. In most Unix-like platforms, simply 28 | do "make" with a suitable target. See INSTALL for detailed instructions. 29 | 30 | * Origin 31 | ------ 32 | Lua is developed at Lua.org, a laboratory of the Department of Computer 33 | Science of PUC-Rio (the Pontifical Catholic University of Rio de Janeiro 34 | in Brazil). 35 | For more information about the authors, see http://www.lua.org/authors.html . 36 | 37 | (end of README) 38 | -------------------------------------------------------------------------------- /lib/lua/v5.1.2/doc/amazon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/lib/lua/v5.1.2/doc/amazon.gif -------------------------------------------------------------------------------- /lib/lua/v5.1.2/doc/cover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/lib/lua/v5.1.2/doc/cover.png -------------------------------------------------------------------------------- /lib/lua/v5.1.2/doc/logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/lib/lua/v5.1.2/doc/logo.gif -------------------------------------------------------------------------------- /lib/lua/v5.1.2/doc/lua.css: -------------------------------------------------------------------------------- 1 | body { 2 | color: #000000 ; 3 | background-color: #FFFFFF ; 4 | font-family: sans-serif ; 5 | text-align: justify ; 6 | margin-right: 20px ; 7 | margin-left: 20px ; 8 | } 9 | 10 | h1, h2, h3, h4 { 11 | font-weight: normal ; 12 | font-style: italic ; 13 | } 14 | 15 | a:link { 16 | color: #000080 ; 17 | background-color: inherit ; 18 | text-decoration: none ; 19 | } 20 | 21 | a:visited { 22 | background-color: inherit ; 23 | text-decoration: none ; 24 | } 25 | 26 | a:link:hover, a:visited:hover { 27 | color: #000080 ; 28 | background-color: #E0E0FF ; 29 | } 30 | 31 | a:link:active, a:visited:active { 32 | color: #FF0000 ; 33 | } 34 | 35 | hr { 36 | border: 0 ; 37 | height: 1px ; 38 | color: #a0a0a0 ; 39 | background-color: #a0a0a0 ; 40 | } 41 | 42 | -------------------------------------------------------------------------------- /lib/lua/v5.1.2/doc/manual.css: -------------------------------------------------------------------------------- 1 | h3 code { 2 | font-family: inherit ; 3 | } 4 | 5 | pre { 6 | font-size: 105% ; 7 | } 8 | -------------------------------------------------------------------------------- /lib/lua/v5.1.2/doc/readme.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Lua documentation 4 | 5 | 6 | 7 | 8 | 9 |
10 |

11 | Lua 12 | Documentation 13 |

14 | 15 | This is the documentation included in the source distribution of Lua 5.1.2. 16 | 17 | 25 | 26 | Lua's 27 | official web site 28 | contains updated documentation, 29 | especially the 30 | reference manual. 31 |

32 | 33 |


34 | 35 | Last update: 36 | Fri Mar 23 14:19:36 BRT 2007 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /lib/lua/v5.1.2/etc/Makefile: -------------------------------------------------------------------------------- 1 | # makefile for Lua etc 2 | 3 | TOP= .. 4 | LIB= $(TOP)/src 5 | INC= $(TOP)/src 6 | BIN= $(TOP)/src 7 | SRC= $(TOP)/src 8 | TST= $(TOP)/test 9 | 10 | CC= gcc 11 | CFLAGS= -O2 -Wall -I$(INC) $(MYCFLAGS) 12 | MYCFLAGS= 13 | MYLDFLAGS= -Wl,-E 14 | MYLIBS= -lm 15 | #MYLIBS= -lm -Wl,-E -ldl -lreadline -lhistory -lncurses 16 | RM= rm -f 17 | 18 | default: 19 | @echo 'Please choose a target: min noparser one strict clean' 20 | 21 | min: min.c 22 | $(CC) $(CFLAGS) $@.c -L$(LIB) -llua $(MYLIBS) 23 | echo 'print"Hello there!"' | ./a.out 24 | 25 | noparser: noparser.o 26 | $(CC) noparser.o $(SRC)/lua.o -L$(LIB) -llua $(MYLIBS) 27 | $(BIN)/luac $(TST)/hello.lua 28 | -./a.out luac.out 29 | -./a.out -e'a=1' 30 | 31 | one: 32 | $(CC) $(CFLAGS) all.c $(MYLIBS) 33 | ./a.out $(TST)/hello.lua 34 | 35 | strict: 36 | -$(BIN)/lua -e 'print(a);b=2' 37 | -$(BIN)/lua -lstrict -e 'print(a)' 38 | -$(BIN)/lua -e 'function f() b=2 end f()' 39 | -$(BIN)/lua -lstrict -e 'function f() b=2 end f()' 40 | 41 | clean: 42 | $(RM) a.out core core.* *.o luac.out 43 | 44 | .PHONY: default min noparser one strict clean 45 | -------------------------------------------------------------------------------- /lib/lua/v5.1.2/etc/README: -------------------------------------------------------------------------------- 1 | This directory contains some useful files and code. 2 | Unlike the code in ../src, everything here is in the public domain. 3 | 4 | If any of the makes fail, you're probably not using the same libraries 5 | used to build Lua. Set MYLIBS in Makefile accordingly. 6 | 7 | all.c 8 | Full Lua interpreter in a single file. 9 | Do "make one" for a demo. 10 | 11 | lua.hpp 12 | Lua header files for C++ using 'extern "C"'. 13 | 14 | lua.ico 15 | A Lua icon for Windows (and web sites: save as favicon.ico). 16 | Drawn by hand by Markus Gritsch . 17 | 18 | lua.pc 19 | pkg-config data for Lua 20 | 21 | luavs.bat 22 | Script to build Lua under "Visual Studio .NET Command Prompt". 23 | Run it from the toplevel as etc\luavs.bat. 24 | 25 | min.c 26 | A minimal Lua interpreter. 27 | Good for learning and for starting your own. 28 | Do "make min" for a demo. 29 | 30 | noparser.c 31 | Linking with noparser.o avoids loading the parsing modules in lualib.a. 32 | Do "make noparser" for a demo. 33 | 34 | strict.lua 35 | Traps uses of undeclared global variables. 36 | Do "make strict" for a demo. 37 | 38 | -------------------------------------------------------------------------------- /lib/lua/v5.1.2/etc/all.c: -------------------------------------------------------------------------------- 1 | /* 2 | * all.c -- Lua core, libraries and interpreter in a single file 3 | */ 4 | 5 | #define luaall_c 6 | 7 | #include "lapi.c" 8 | #include "lcode.c" 9 | #include "ldebug.c" 10 | #include "ldo.c" 11 | #include "ldump.c" 12 | #include "lfunc.c" 13 | #include "lgc.c" 14 | #include "llex.c" 15 | #include "lmem.c" 16 | #include "lobject.c" 17 | #include "lopcodes.c" 18 | #include "lparser.c" 19 | #include "lstate.c" 20 | #include "lstring.c" 21 | #include "ltable.c" 22 | #include "ltm.c" 23 | #include "lundump.c" 24 | #include "lvm.c" 25 | #include "lzio.c" 26 | 27 | #include "lauxlib.c" 28 | #include "lbaselib.c" 29 | #include "ldblib.c" 30 | #include "liolib.c" 31 | #include "linit.c" 32 | #include "lmathlib.c" 33 | #include "loadlib.c" 34 | #include "loslib.c" 35 | #include "lstrlib.c" 36 | #include "ltablib.c" 37 | 38 | #include "lua.c" 39 | -------------------------------------------------------------------------------- /lib/lua/v5.1.2/etc/lua.hpp: -------------------------------------------------------------------------------- 1 | // lua.hpp 2 | // Lua header files for C++ 3 | // <> not supplied automatically because Lua also compiles as C++ 4 | 5 | extern "C" { 6 | #include "lua.h" 7 | #include "lualib.h" 8 | #include "lauxlib.h" 9 | } 10 | -------------------------------------------------------------------------------- /lib/lua/v5.1.2/etc/lua.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/lib/lua/v5.1.2/etc/lua.ico -------------------------------------------------------------------------------- /lib/lua/v5.1.2/etc/lua.pc: -------------------------------------------------------------------------------- 1 | # lua.pc -- pkg-config data for Lua 2 | 3 | # vars from install Makefile 4 | 5 | # grep '^V=' ../Makefile 6 | V= 5.1 7 | # grep '^R=' ../Makefile 8 | R= 5.1.2 9 | 10 | # grep '^INSTALL_.*=' ../Makefile | sed 's/INSTALL_TOP/prefix/' 11 | prefix= /usr/local 12 | INSTALL_BIN= ${prefix}/bin 13 | INSTALL_INC= ${prefix}/include 14 | INSTALL_LIB= ${prefix}/lib 15 | INSTALL_MAN= ${prefix}/man/man1 16 | INSTALL_LMOD= ${prefix}/share/lua/${V} 17 | INSTALL_CMOD= ${prefix}/lib/lua/${V} 18 | 19 | # canonical vars 20 | exec_prefix=${prefix} 21 | libdir=${exec_prefix}/lib 22 | includedir=${prefix}/include 23 | 24 | Name: Lua 25 | Description: An Extensible Extension Language 26 | Version: ${R} 27 | Requires: 28 | Libs: -L${libdir} -llua -lm 29 | Cflags: -I${includedir} 30 | 31 | # (end of lua.pc) 32 | -------------------------------------------------------------------------------- /lib/lua/v5.1.2/etc/min.c: -------------------------------------------------------------------------------- 1 | /* 2 | * min.c -- a minimal Lua interpreter 3 | * loads stdin only with minimal error handling. 4 | * no interaction, and no standard library, only a "print" function. 5 | */ 6 | 7 | #include 8 | 9 | #include "lua.h" 10 | #include "lauxlib.h" 11 | 12 | static int print(lua_State *L) 13 | { 14 | int n=lua_gettop(L); 15 | int i; 16 | for (i=1; i<=n; i++) 17 | { 18 | if (i>1) printf("\t"); 19 | if (lua_isstring(L,i)) 20 | printf("%s",lua_tostring(L,i)); 21 | else if (lua_isnil(L,i)==2) 22 | printf("%s","nil"); 23 | else if (lua_isboolean(L,i)) 24 | printf("%s",lua_toboolean(L,i) ? "true" : "false"); 25 | else 26 | printf("%s:%p",luaL_typename(L,i),lua_topointer(L,i)); 27 | } 28 | printf("\n"); 29 | return 0; 30 | } 31 | 32 | int main(void) 33 | { 34 | lua_State *L=lua_open(); 35 | lua_register(L,"print",print); 36 | if (luaL_dofile(L,NULL)!=0) fprintf(stderr,"%s\n",lua_tostring(L,-1)); 37 | lua_close(L); 38 | return 0; 39 | } 40 | -------------------------------------------------------------------------------- /lib/lua/v5.1.2/etc/noparser.c: -------------------------------------------------------------------------------- 1 | /* 2 | * The code below can be used to make a Lua core that does not contain the 3 | * parsing modules (lcode, llex, lparser), which represent 35% of the total core. 4 | * You'll only be able to load binary files and strings, precompiled with luac. 5 | * (Of course, you'll have to build luac with the original parsing modules!) 6 | * 7 | * To use this module, simply compile it ("make noparser" does that) and list 8 | * its object file before the Lua libraries. The linker should then not load 9 | * the parsing modules. To try it, do "make luab". 10 | * 11 | * If you also want to avoid the dump module (ldump.o), define NODUMP. 12 | * #define NODUMP 13 | */ 14 | 15 | #define LUA_CORE 16 | 17 | #include "llex.h" 18 | #include "lparser.h" 19 | #include "lzio.h" 20 | 21 | LUAI_FUNC void luaX_init (lua_State *L) { 22 | UNUSED(L); 23 | } 24 | 25 | LUAI_FUNC Proto *luaY_parser (lua_State *L, ZIO *z, Mbuffer *buff, const char *name) { 26 | UNUSED(z); 27 | UNUSED(buff); 28 | UNUSED(name); 29 | lua_pushliteral(L,"parser not loaded"); 30 | lua_error(L); 31 | return NULL; 32 | } 33 | 34 | #ifdef NODUMP 35 | #include "lundump.h" 36 | 37 | LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* data, int strip) { 38 | UNUSED(f); 39 | UNUSED(w); 40 | UNUSED(data); 41 | UNUSED(strip); 42 | #if 1 43 | UNUSED(L); 44 | return 0; 45 | #else 46 | lua_pushliteral(L,"dumper not loaded"); 47 | lua_error(L); 48 | #endif 49 | } 50 | #endif 51 | -------------------------------------------------------------------------------- /lib/lua/v5.1.2/etc/strict.lua: -------------------------------------------------------------------------------- 1 | -- 2 | -- strict.lua 3 | -- checks uses of undeclared global variables 4 | -- All global variables must be 'declared' through a regular assignment 5 | -- (even assigning nil will do) in a main chunk before being used 6 | -- anywhere or assigned to inside a function. 7 | -- 8 | 9 | local mt = getmetatable(_G) 10 | if mt == nil then 11 | mt = {} 12 | setmetatable(_G, mt) 13 | end 14 | 15 | mt.__declared = {} 16 | 17 | local function what () 18 | local d = debug.getinfo(3, "S") 19 | return d and d.what or "C" 20 | end 21 | 22 | mt.__newindex = function (t, n, v) 23 | if not mt.__declared[n] then 24 | local w = what() 25 | if w ~= "main" and w ~= "C" then 26 | error("assign to undeclared variable '"..n.."'", 2) 27 | end 28 | mt.__declared[n] = true 29 | end 30 | rawset(t, n, v) 31 | end 32 | 33 | mt.__index = function (t, n) 34 | if not mt.__declared[n] and what() ~= "C" then 35 | error("variable '"..n.."' is not declared", 2) 36 | end 37 | return rawget(t, n) 38 | end 39 | 40 | -------------------------------------------------------------------------------- /lib/lua/v5.1.2/src/lapi.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: //depot/Tilde/branch-release-0.5/lib/lua/v5.1.2/src/lapi.h#1 $ 3 | ** Auxiliary functions from Lua API 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lapi_h 8 | #define lapi_h 9 | 10 | 11 | #include "lobject.h" 12 | 13 | 14 | LUAI_FUNC void luaA_pushobject (lua_State *L, const TValue *o); 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /lib/lua/v5.1.2/src/ldebug.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: //depot/Tilde/branch-release-0.5/lib/lua/v5.1.2/src/ldebug.h#1 $ 3 | ** Auxiliary functions from Debug Interface module 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef ldebug_h 8 | #define ldebug_h 9 | 10 | 11 | #include "lstate.h" 12 | 13 | 14 | #define pcRel(pc, p) (cast(int, (pc) - (p)->code) - 1) 15 | 16 | #define getline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : 0) 17 | 18 | #define resethookcount(L) (L->hookcount = L->basehookcount) 19 | 20 | 21 | LUAI_FUNC void luaG_typeerror (lua_State *L, const TValue *o, 22 | const char *opname); 23 | LUAI_FUNC void luaG_concaterror (lua_State *L, StkId p1, StkId p2); 24 | LUAI_FUNC void luaG_aritherror (lua_State *L, const TValue *p1, 25 | const TValue *p2); 26 | LUAI_FUNC int luaG_ordererror (lua_State *L, const TValue *p1, 27 | const TValue *p2); 28 | LUAI_FUNC void luaG_runerror (lua_State *L, const char *fmt, ...); 29 | LUAI_FUNC void luaG_errormsg (lua_State *L); 30 | LUAI_FUNC int luaG_checkcode (const Proto *pt); 31 | LUAI_FUNC int luaG_checkopenop (Instruction i); 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /lib/lua/v5.1.2/src/lfunc.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: //depot/Tilde/branch-release-0.5/lib/lua/v5.1.2/src/lfunc.h#1 $ 3 | ** Auxiliary functions to manipulate prototypes and closures 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lfunc_h 8 | #define lfunc_h 9 | 10 | 11 | #include "lobject.h" 12 | 13 | 14 | #define sizeCclosure(n) (cast(int, sizeof(CClosure)) + \ 15 | cast(int, sizeof(TValue)*((n)-1))) 16 | 17 | #define sizeLclosure(n) (cast(int, sizeof(LClosure)) + \ 18 | cast(int, sizeof(TValue *)*((n)-1))) 19 | 20 | 21 | LUAI_FUNC Proto *luaF_newproto (lua_State *L); 22 | LUAI_FUNC Closure *luaF_newCclosure (lua_State *L, int nelems, Table *e); 23 | LUAI_FUNC Closure *luaF_newLclosure (lua_State *L, int nelems, Table *e); 24 | LUAI_FUNC UpVal *luaF_newupval (lua_State *L); 25 | LUAI_FUNC UpVal *luaF_findupval (lua_State *L, StkId level); 26 | LUAI_FUNC void luaF_close (lua_State *L, StkId level); 27 | LUAI_FUNC void luaF_freeproto (lua_State *L, Proto *f); 28 | LUAI_FUNC void luaF_freeclosure (lua_State *L, Closure *c); 29 | LUAI_FUNC void luaF_freeupval (lua_State *L, UpVal *uv); 30 | LUAI_FUNC const char *luaF_getlocalname (const Proto *func, int local_number, 31 | int pc); 32 | 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /lib/lua/v5.1.2/src/linit.c: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: //depot/Tilde/branch-release-0.5/lib/lua/v5.1.2/src/linit.c#1 $ 3 | ** Initialization of libraries for lua.c 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | 8 | #define linit_c 9 | #define LUA_LIB 10 | 11 | #include "lua.h" 12 | 13 | #include "lualib.h" 14 | #include "lauxlib.h" 15 | 16 | 17 | static const luaL_Reg lualibs[] = { 18 | {"", luaopen_base}, 19 | {LUA_LOADLIBNAME, luaopen_package}, 20 | {LUA_TABLIBNAME, luaopen_table}, 21 | {LUA_IOLIBNAME, luaopen_io}, 22 | {LUA_OSLIBNAME, luaopen_os}, 23 | {LUA_STRLIBNAME, luaopen_string}, 24 | {LUA_MATHLIBNAME, luaopen_math}, 25 | {LUA_DBLIBNAME, luaopen_debug}, 26 | {NULL, NULL} 27 | }; 28 | 29 | 30 | LUALIB_API void luaL_openlibs (lua_State *L) { 31 | const luaL_Reg *lib = lualibs; 32 | for (; lib->func; lib++) { 33 | lua_pushcfunction(L, lib->func); 34 | lua_pushstring(L, lib->name); 35 | lua_call(L, 1, 0); 36 | } 37 | } 38 | 39 | -------------------------------------------------------------------------------- /lib/lua/v5.1.2/src/lmem.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: //depot/Tilde/branch-release-0.5/lib/lua/v5.1.2/src/lmem.h#1 $ 3 | ** Interface to Memory Manager 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lmem_h 8 | #define lmem_h 9 | 10 | 11 | #include 12 | 13 | #include "llimits.h" 14 | #include "lua.h" 15 | 16 | #define MEMERRMSG "not enough memory" 17 | 18 | 19 | #define luaM_reallocv(L,b,on,n,e) \ 20 | ((cast(size_t, (n)+1) <= MAX_SIZET/(e)) ? /* +1 to avoid warnings */ \ 21 | luaM_realloc_(L, (b), (on)*(e), (n)*(e)) : \ 22 | luaM_toobig(L)) 23 | 24 | #define luaM_freemem(L, b, s) luaM_realloc_(L, (b), (s), 0) 25 | #define luaM_free(L, b) luaM_realloc_(L, (b), sizeof(*(b)), 0) 26 | #define luaM_freearray(L, b, n, t) luaM_reallocv(L, (b), n, 0, sizeof(t)) 27 | 28 | #define luaM_malloc(L,t) luaM_realloc_(L, NULL, 0, (t)) 29 | #define luaM_new(L,t) cast(t *, luaM_malloc(L, sizeof(t))) 30 | #define luaM_newvector(L,n,t) \ 31 | cast(t *, luaM_reallocv(L, NULL, 0, n, sizeof(t))) 32 | 33 | #define luaM_growvector(L,v,nelems,size,t,limit,e) \ 34 | if ((nelems)+1 > (size)) \ 35 | ((v)=cast(t *, luaM_growaux_(L,v,&(size),sizeof(t),limit,e))) 36 | 37 | #define luaM_reallocvector(L, v,oldn,n,t) \ 38 | ((v)=cast(t *, luaM_reallocv(L, v, oldn, n, sizeof(t)))) 39 | 40 | 41 | LUAI_FUNC void *luaM_realloc_ (lua_State *L, void *block, size_t oldsize, 42 | size_t size); 43 | LUAI_FUNC void *luaM_toobig (lua_State *L); 44 | LUAI_FUNC void *luaM_growaux_ (lua_State *L, void *block, int *size, 45 | size_t size_elem, int limit, 46 | const char *errormsg); 47 | 48 | #endif 49 | 50 | -------------------------------------------------------------------------------- /lib/lua/v5.1.2/src/lstring.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: //depot/Tilde/branch-release-0.5/lib/lua/v5.1.2/src/lstring.h#1 $ 3 | ** String table (keep all strings handled by Lua) 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lstring_h 8 | #define lstring_h 9 | 10 | 11 | #include "lgc.h" 12 | #include "lobject.h" 13 | #include "lstate.h" 14 | 15 | 16 | #define sizestring(s) (sizeof(union TString)+((s)->len+1)*sizeof(char)) 17 | 18 | #define sizeudata(u) (sizeof(union Udata)+(u)->len) 19 | 20 | #define luaS_new(L, s) (luaS_newlstr(L, s, strlen(s))) 21 | #define luaS_newliteral(L, s) (luaS_newlstr(L, "" s, \ 22 | (sizeof(s)/sizeof(char))-1)) 23 | 24 | #define luaS_fix(s) l_setbit((s)->tsv.marked, FIXEDBIT) 25 | 26 | LUAI_FUNC void luaS_resize (lua_State *L, int newsize); 27 | LUAI_FUNC Udata *luaS_newudata (lua_State *L, size_t s, Table *e); 28 | LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l); 29 | 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /lib/lua/v5.1.2/src/ltable.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: //depot/Tilde/branch-release-0.5/lib/lua/v5.1.2/src/ltable.h#1 $ 3 | ** Lua tables (hash) 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef ltable_h 8 | #define ltable_h 9 | 10 | #include "lobject.h" 11 | 12 | 13 | #define gnode(t,i) (&(t)->node[i]) 14 | #define gkey(n) (&(n)->i_key.nk) 15 | #define gval(n) (&(n)->i_val) 16 | #define gnext(n) ((n)->i_key.nk.next) 17 | 18 | #define key2tval(n) (&(n)->i_key.tvk) 19 | 20 | 21 | LUAI_FUNC const TValue *luaH_getnum (Table *t, int key); 22 | LUAI_FUNC TValue *luaH_setnum (lua_State *L, Table *t, int key); 23 | LUAI_FUNC const TValue *luaH_getstr (Table *t, TString *key); 24 | LUAI_FUNC TValue *luaH_setstr (lua_State *L, Table *t, TString *key); 25 | LUAI_FUNC const TValue *luaH_get (Table *t, const TValue *key); 26 | LUAI_FUNC TValue *luaH_set (lua_State *L, Table *t, const TValue *key); 27 | LUAI_FUNC Table *luaH_new (lua_State *L, int narray, int lnhash); 28 | LUAI_FUNC void luaH_resizearray (lua_State *L, Table *t, int nasize); 29 | LUAI_FUNC void luaH_free (lua_State *L, Table *t); 30 | LUAI_FUNC int luaH_next (lua_State *L, Table *t, StkId key); 31 | LUAI_FUNC int luaH_getn (Table *t); 32 | 33 | 34 | #if defined(LUA_DEBUG) 35 | LUAI_FUNC Node *luaH_mainposition (const Table *t, const TValue *key); 36 | LUAI_FUNC int luaH_isdummy (Node *n); 37 | #endif 38 | 39 | 40 | #endif 41 | -------------------------------------------------------------------------------- /lib/lua/v5.1.2/src/ltm.c: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: //depot/Tilde/branch-release-0.5/lib/lua/v5.1.2/src/ltm.c#1 $ 3 | ** Tag methods 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | 8 | #include 9 | 10 | #define ltm_c 11 | #define LUA_CORE 12 | 13 | #include "lua.h" 14 | 15 | #include "lobject.h" 16 | #include "lstate.h" 17 | #include "lstring.h" 18 | #include "ltable.h" 19 | #include "ltm.h" 20 | 21 | 22 | 23 | const char *const luaT_typenames[] = { 24 | "nil", "boolean", "userdata", "number", 25 | "string", "table", "function", "userdata", "thread", 26 | "proto", "upval" 27 | }; 28 | 29 | 30 | void luaT_init (lua_State *L) { 31 | static const char *const luaT_eventname[] = { /* ORDER TM */ 32 | "__index", "__newindex", 33 | "__gc", "__mode", "__eq", 34 | "__add", "__sub", "__mul", "__div", "__mod", 35 | "__pow", "__unm", "__len", "__lt", "__le", 36 | "__concat", "__call" 37 | }; 38 | int i; 39 | for (i=0; itmname[i] = luaS_new(L, luaT_eventname[i]); 41 | luaS_fix(G(L)->tmname[i]); /* never collect these names */ 42 | } 43 | } 44 | 45 | 46 | /* 47 | ** function to be used with macro "fasttm": optimized for absence of 48 | ** tag methods 49 | */ 50 | const TValue *luaT_gettm (Table *events, TMS event, TString *ename) { 51 | const TValue *tm = luaH_getstr(events, ename); 52 | lua_assert(event <= TM_EQ); 53 | if (ttisnil(tm)) { /* no tag method? */ 54 | events->flags |= cast_byte(1u<metatable; 66 | break; 67 | case LUA_TUSERDATA: 68 | mt = uvalue(o)->metatable; 69 | break; 70 | default: 71 | mt = G(L)->mt[ttype(o)]; 72 | } 73 | return (mt ? luaH_getstr(mt, G(L)->tmname[event]) : luaO_nilobject); 74 | } 75 | 76 | -------------------------------------------------------------------------------- /lib/lua/v5.1.2/src/ltm.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: //depot/Tilde/branch-release-0.5/lib/lua/v5.1.2/src/ltm.h#1 $ 3 | ** Tag methods 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef ltm_h 8 | #define ltm_h 9 | 10 | 11 | #include "lobject.h" 12 | 13 | 14 | /* 15 | * WARNING: if you change the order of this enumeration, 16 | * grep "ORDER TM" 17 | */ 18 | typedef enum { 19 | TM_INDEX, 20 | TM_NEWINDEX, 21 | TM_GC, 22 | TM_MODE, 23 | TM_EQ, /* last tag method with `fast' access */ 24 | TM_ADD, 25 | TM_SUB, 26 | TM_MUL, 27 | TM_DIV, 28 | TM_MOD, 29 | TM_POW, 30 | TM_UNM, 31 | TM_LEN, 32 | TM_LT, 33 | TM_LE, 34 | TM_CONCAT, 35 | TM_CALL, 36 | TM_N /* number of elements in the enum */ 37 | } TMS; 38 | 39 | 40 | 41 | #define gfasttm(g,et,e) ((et) == NULL ? NULL : \ 42 | ((et)->flags & (1u<<(e))) ? NULL : luaT_gettm(et, e, (g)->tmname[e])) 43 | 44 | #define fasttm(l,et,e) gfasttm(G(l), et, e) 45 | 46 | LUAI_DATA const char *const luaT_typenames[]; 47 | 48 | 49 | LUAI_FUNC const TValue *luaT_gettm (Table *events, TMS event, TString *ename); 50 | LUAI_FUNC const TValue *luaT_gettmbyobj (lua_State *L, const TValue *o, 51 | TMS event); 52 | LUAI_FUNC void luaT_init (lua_State *L); 53 | 54 | #endif 55 | -------------------------------------------------------------------------------- /lib/lua/v5.1.2/src/lualib.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: //depot/Tilde/branch-release-0.5/lib/lua/v5.1.2/src/lualib.h#1 $ 3 | ** Lua standard libraries 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | 8 | #ifndef lualib_h 9 | #define lualib_h 10 | 11 | #include "lua.h" 12 | 13 | 14 | /* Key to file-handle type */ 15 | #define LUA_FILEHANDLE "FILE*" 16 | 17 | 18 | #define LUA_COLIBNAME "coroutine" 19 | LUALIB_API int (luaopen_base) (lua_State *L); 20 | 21 | #define LUA_TABLIBNAME "table" 22 | LUALIB_API int (luaopen_table) (lua_State *L); 23 | 24 | #define LUA_IOLIBNAME "io" 25 | LUALIB_API int (luaopen_io) (lua_State *L); 26 | 27 | #define LUA_OSLIBNAME "os" 28 | LUALIB_API int (luaopen_os) (lua_State *L); 29 | 30 | #define LUA_STRLIBNAME "string" 31 | LUALIB_API int (luaopen_string) (lua_State *L); 32 | 33 | #define LUA_MATHLIBNAME "math" 34 | LUALIB_API int (luaopen_math) (lua_State *L); 35 | 36 | #define LUA_DBLIBNAME "debug" 37 | LUALIB_API int (luaopen_debug) (lua_State *L); 38 | 39 | #define LUA_LOADLIBNAME "package" 40 | LUALIB_API int (luaopen_package) (lua_State *L); 41 | 42 | 43 | /* open all previous libraries */ 44 | LUALIB_API void (luaL_openlibs) (lua_State *L); 45 | 46 | 47 | 48 | #ifndef lua_assert 49 | #define lua_assert(x) ((void)0) 50 | #endif 51 | 52 | 53 | #endif 54 | -------------------------------------------------------------------------------- /lib/lua/v5.1.2/src/lundump.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: //depot/Tilde/branch-release-0.5/lib/lua/v5.1.2/src/lundump.h#1 $ 3 | ** load precompiled Lua chunks 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lundump_h 8 | #define lundump_h 9 | 10 | #include "lobject.h" 11 | #include "lzio.h" 12 | 13 | /* load one chunk; from lundump.c */ 14 | LUAI_FUNC Proto* luaU_undump (lua_State* L, ZIO* Z, Mbuffer* buff, const char* name); 15 | 16 | /* make header; from lundump.c */ 17 | LUAI_FUNC void luaU_header (char* h); 18 | 19 | /* dump one chunk; from ldump.c */ 20 | LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* data, int strip); 21 | 22 | #ifdef luac_c 23 | /* print one chunk; from print.c */ 24 | LUAI_FUNC void luaU_print (const Proto* f, int full); 25 | #endif 26 | 27 | /* for header of binary files -- this is Lua 5.1 */ 28 | #define LUAC_VERSION 0x51 29 | 30 | /* for header of binary files -- this is the official format */ 31 | #define LUAC_FORMAT 0 32 | 33 | /* size of header of binary files */ 34 | #define LUAC_HEADERSIZE 12 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /lib/lua/v5.1.2/src/lvm.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: //depot/Tilde/branch-release-0.5/lib/lua/v5.1.2/src/lvm.h#1 $ 3 | ** Lua virtual machine 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lvm_h 8 | #define lvm_h 9 | 10 | 11 | #include "ldo.h" 12 | #include "lobject.h" 13 | #include "ltm.h" 14 | 15 | 16 | #define tostring(L,o) ((ttype(o) == LUA_TSTRING) || (luaV_tostring(L, o))) 17 | 18 | #define tonumber(o,n) (ttype(o) == LUA_TNUMBER || \ 19 | (((o) = luaV_tonumber(o,n)) != NULL)) 20 | 21 | #define equalobj(L,o1,o2) \ 22 | (ttype(o1) == ttype(o2) && luaV_equalval(L, o1, o2)) 23 | 24 | 25 | LUAI_FUNC int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r); 26 | LUAI_FUNC int luaV_equalval (lua_State *L, const TValue *t1, const TValue *t2); 27 | LUAI_FUNC const TValue *luaV_tonumber (const TValue *obj, TValue *n); 28 | LUAI_FUNC int luaV_tostring (lua_State *L, StkId obj); 29 | LUAI_FUNC void luaV_gettable (lua_State *L, const TValue *t, TValue *key, 30 | StkId val); 31 | LUAI_FUNC void luaV_settable (lua_State *L, const TValue *t, TValue *key, 32 | StkId val); 33 | LUAI_FUNC void luaV_execute (lua_State *L, int nexeccalls); 34 | LUAI_FUNC void luaV_concat (lua_State *L, int total, int last); 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /lib/lua/v5.1.2/src/lzio.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: //depot/Tilde/branch-release-0.5/lib/lua/v5.1.2/src/lzio.h#1 $ 3 | ** Buffered streams 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | 8 | #ifndef lzio_h 9 | #define lzio_h 10 | 11 | #include "lua.h" 12 | 13 | #include "lmem.h" 14 | 15 | 16 | #define EOZ (-1) /* end of stream */ 17 | 18 | typedef struct Zio ZIO; 19 | 20 | #define char2int(c) cast(int, cast(unsigned char, (c))) 21 | 22 | #define zgetc(z) (((z)->n--)>0 ? char2int(*(z)->p++) : luaZ_fill(z)) 23 | 24 | typedef struct Mbuffer { 25 | char *buffer; 26 | size_t n; 27 | size_t buffsize; 28 | } Mbuffer; 29 | 30 | #define luaZ_initbuffer(L, buff) ((buff)->buffer = NULL, (buff)->buffsize = 0) 31 | 32 | #define luaZ_buffer(buff) ((buff)->buffer) 33 | #define luaZ_sizebuffer(buff) ((buff)->buffsize) 34 | #define luaZ_bufflen(buff) ((buff)->n) 35 | 36 | #define luaZ_resetbuffer(buff) ((buff)->n = 0) 37 | 38 | 39 | #define luaZ_resizebuffer(L, buff, size) \ 40 | (luaM_reallocvector(L, (buff)->buffer, (buff)->buffsize, size, char), \ 41 | (buff)->buffsize = size) 42 | 43 | #define luaZ_freebuffer(L, buff) luaZ_resizebuffer(L, buff, 0) 44 | 45 | 46 | LUAI_FUNC char *luaZ_openspace (lua_State *L, Mbuffer *buff, size_t n); 47 | LUAI_FUNC void luaZ_init (lua_State *L, ZIO *z, lua_Reader reader, 48 | void *data); 49 | LUAI_FUNC size_t luaZ_read (ZIO* z, void* b, size_t n); /* read next n bytes */ 50 | LUAI_FUNC int luaZ_lookahead (ZIO *z); 51 | 52 | 53 | 54 | /* --------- Private Part ------------------ */ 55 | 56 | struct Zio { 57 | size_t n; /* bytes still unread */ 58 | const char *p; /* current position in buffer */ 59 | lua_Reader reader; 60 | void* data; /* additional data */ 61 | lua_State *L; /* Lua state (for reader) */ 62 | }; 63 | 64 | 65 | LUAI_FUNC int luaZ_fill (ZIO *z); 66 | 67 | #endif 68 | -------------------------------------------------------------------------------- /lib/lua/v5.1.2/test/README: -------------------------------------------------------------------------------- 1 | These are simple tests for Lua. Some of them contain useful code. 2 | They are meant to be run to make sure Lua is built correctly and also 3 | to be read, to see how Lua programs look. 4 | 5 | Here is a one-line summary of each program: 6 | 7 | bisect.lua bisection method for solving non-linear equations 8 | cf.lua temperature conversion table (celsius to farenheit) 9 | echo.lua echo command line arguments 10 | env.lua environment variables as automatic global variables 11 | factorial.lua factorial without recursion 12 | fib.lua fibonacci function with cache 13 | fibfor.lua fibonacci numbers with coroutines and generators 14 | globals.lua report global variable usage 15 | hello.lua the first program in every language 16 | life.lua Conway's Game of Life 17 | luac.lua bare-bones luac 18 | printf.lua an implementation of printf 19 | readonly.lua make global variables readonly 20 | sieve.lua the sieve of of Eratosthenes programmed with coroutines 21 | sort.lua two implementations of a sort function 22 | table.lua make table, grouping all data for the same item 23 | trace-calls.lua trace calls 24 | trace-globals.lua trace assigments to global variables 25 | xd.lua hex dump 26 | 27 | -------------------------------------------------------------------------------- /lib/lua/v5.1.2/test/bisect.lua: -------------------------------------------------------------------------------- 1 | -- bisection method for solving non-linear equations 2 | 3 | delta=1e-6 -- tolerance 4 | 5 | function bisect(f,a,b,fa,fb) 6 | local c=(a+b)/2 7 | io.write(n," c=",c," a=",a," b=",b,"\n") 8 | if c==a or c==b or math.abs(a-b)y end) 58 | show("after reverse selection sort",x) 59 | qsort(x,1,n,function (x,y) return x>> ",string.rep(" ",level)) 9 | if t~=nil and t.currentline>=0 then io.write(t.short_src,":",t.currentline," ") end 10 | t=debug.getinfo(2) 11 | if event=="call" then 12 | level=level+1 13 | else 14 | level=level-1 if level<0 then level=0 end 15 | end 16 | if t.what=="main" then 17 | if event=="call" then 18 | io.write("begin ",t.short_src) 19 | else 20 | io.write("end ",t.short_src) 21 | end 22 | elseif t.what=="Lua" then 23 | -- table.foreach(t,print) 24 | io.write(event," ",t.name or "(Lua)"," <",t.linedefined,":",t.short_src,">") 25 | else 26 | io.write(event," ",t.name or "(C)"," [",t.what,"] ") 27 | end 28 | io.write("\n") 29 | end 30 | 31 | debug.sethook(hook,"cr") 32 | level=0 33 | -------------------------------------------------------------------------------- /lib/lua/v5.1.2/test/trace-globals.lua: -------------------------------------------------------------------------------- 1 | -- trace assigments to global variables 2 | 3 | do 4 | -- a tostring that quotes strings. note the use of the original tostring. 5 | local _tostring=tostring 6 | local tostring=function(a) 7 | if type(a)=="string" then 8 | return string.format("%q",a) 9 | else 10 | return _tostring(a) 11 | end 12 | end 13 | 14 | local log=function (name,old,new) 15 | local t=debug.getinfo(3,"Sl") 16 | local line=t.currentline 17 | io.write(t.short_src) 18 | if line>=0 then io.write(":",line) end 19 | io.write(": ",name," is now ",tostring(new)," (was ",tostring(old),")","\n") 20 | end 21 | 22 | local g={} 23 | local set=function (t,name,value) 24 | log(name,g[name],value) 25 | g[name]=value 26 | end 27 | setmetatable(getfenv(),{__index=g,__newindex=set}) 28 | end 29 | 30 | -- an example 31 | 32 | a=1 33 | b=2 34 | a=10 35 | b=20 36 | b=nil 37 | b=200 38 | print(a,b,c) 39 | -------------------------------------------------------------------------------- /lib/lua/v5.1.2/test/xd.lua: -------------------------------------------------------------------------------- 1 | -- hex dump 2 | -- usage: lua xd.lua < file 3 | 4 | local offset=0 5 | while true do 6 | local s=io.read(16) 7 | if s==nil then return end 8 | io.write(string.format("%08X ",offset)) 9 | string.gsub(s,"(.)", 10 | function (c) io.write(string.format("%02X ",string.byte(c))) end) 11 | io.write(string.rep(" ",3*(16-string.len(s)))) 12 | io.write(" ",string.gsub(s,"%c","."),"\n") 13 | offset=offset+16 14 | end 15 | -------------------------------------------------------------------------------- /lib/lua/v5.1.3/COPYRIGHT: -------------------------------------------------------------------------------- 1 | Lua License 2 | ----------- 3 | 4 | Lua is licensed under the terms of the MIT license reproduced below. 5 | This means that Lua is free software and can be used for both academic 6 | and commercial purposes at absolutely no cost. 7 | 8 | For details and rationale, see http://www.lua.org/license.html . 9 | 10 | =============================================================================== 11 | 12 | Copyright (C) 1994-2008 Lua.org, PUC-Rio. 13 | 14 | Permission is hereby granted, free of charge, to any person obtaining a copy 15 | of this software and associated documentation files (the "Software"), to deal 16 | in the Software without restriction, including without limitation the rights 17 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 18 | copies of the Software, and to permit persons to whom the Software is 19 | furnished to do so, subject to the following conditions: 20 | 21 | The above copyright notice and this permission notice shall be included in 22 | all copies or substantial portions of the Software. 23 | 24 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 25 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 26 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 27 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 28 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 29 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 30 | THE SOFTWARE. 31 | 32 | =============================================================================== 33 | 34 | (end of COPYRIGHT) 35 | -------------------------------------------------------------------------------- /lib/lua/v5.1.3/README: -------------------------------------------------------------------------------- 1 | README for Lua 5.1 2 | 3 | See INSTALL for installation instructions. 4 | See HISTORY for a summary of changes since the last released version. 5 | 6 | * What is Lua? 7 | ------------ 8 | Lua is a powerful, light-weight programming language designed for extending 9 | applications. Lua is also frequently used as a general-purpose, stand-alone 10 | language. Lua is free software. 11 | 12 | For complete information, visit Lua's web site at http://www.lua.org/ . 13 | For an executive summary, see http://www.lua.org/about.html . 14 | 15 | Lua has been used in many different projects around the world. 16 | For a short list, see http://www.lua.org/uses.html . 17 | 18 | * Availability 19 | ------------ 20 | Lua is freely available for both academic and commercial purposes. 21 | See COPYRIGHT and http://www.lua.org/license.html for details. 22 | Lua can be downloaded at http://www.lua.org/download.html . 23 | 24 | * Installation 25 | ------------ 26 | Lua is implemented in pure ANSI C, and compiles unmodified in all known 27 | platforms that have an ANSI C compiler. In most Unix-like platforms, simply 28 | do "make" with a suitable target. See INSTALL for detailed instructions. 29 | 30 | * Origin 31 | ------ 32 | Lua is developed at Lua.org, a laboratory of the Department of Computer 33 | Science of PUC-Rio (the Pontifical Catholic University of Rio de Janeiro 34 | in Brazil). 35 | For more information about the authors, see http://www.lua.org/authors.html . 36 | 37 | (end of README) 38 | -------------------------------------------------------------------------------- /lib/lua/v5.1.3/doc/amazon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/lib/lua/v5.1.3/doc/amazon.gif -------------------------------------------------------------------------------- /lib/lua/v5.1.3/doc/contents.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/lib/lua/v5.1.3/doc/contents.html -------------------------------------------------------------------------------- /lib/lua/v5.1.3/doc/cover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/lib/lua/v5.1.3/doc/cover.png -------------------------------------------------------------------------------- /lib/lua/v5.1.3/doc/logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/lib/lua/v5.1.3/doc/logo.gif -------------------------------------------------------------------------------- /lib/lua/v5.1.3/doc/lua.css: -------------------------------------------------------------------------------- 1 | body { 2 | color: #000000 ; 3 | background-color: #FFFFFF ; 4 | font-family: sans-serif ; 5 | text-align: justify ; 6 | margin-right: 20px ; 7 | margin-left: 20px ; 8 | } 9 | 10 | h1, h2, h3, h4 { 11 | font-weight: normal ; 12 | font-style: italic ; 13 | } 14 | 15 | a:link { 16 | color: #000080 ; 17 | background-color: inherit ; 18 | text-decoration: none ; 19 | } 20 | 21 | a:visited { 22 | background-color: inherit ; 23 | text-decoration: none ; 24 | } 25 | 26 | a:link:hover, a:visited:hover { 27 | color: #000080 ; 28 | background-color: #E0E0FF ; 29 | } 30 | 31 | a:link:active, a:visited:active { 32 | color: #FF0000 ; 33 | } 34 | 35 | hr { 36 | border: 0 ; 37 | height: 1px ; 38 | color: #a0a0a0 ; 39 | background-color: #a0a0a0 ; 40 | } 41 | 42 | -------------------------------------------------------------------------------- /lib/lua/v5.1.3/doc/manual.css: -------------------------------------------------------------------------------- 1 | h3 code { 2 | font-family: inherit ; 3 | } 4 | 5 | pre { 6 | font-size: 105% ; 7 | } 8 | 9 | span.apii { 10 | float: right ; 11 | font-family: inherit ; 12 | } 13 | 14 | -------------------------------------------------------------------------------- /lib/lua/v5.1.3/doc/readme.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Lua documentation 4 | 5 | 6 | 7 | 8 | 9 |
10 |

11 | Lua 12 | Documentation 13 |

14 | 15 | This is the documentation included in the source distribution of Lua 5.1.3. 16 | 17 | 25 | 26 | Lua's 27 | official web site 28 | contains updated documentation, 29 | especially the 30 | reference manual. 31 |

32 | 33 |


34 | 35 | Last update: 36 | Wed Dec 19 13:59:14 BRST 2007 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /lib/lua/v5.1.3/etc/Makefile: -------------------------------------------------------------------------------- 1 | # makefile for Lua etc 2 | 3 | TOP= .. 4 | LIB= $(TOP)/src 5 | INC= $(TOP)/src 6 | BIN= $(TOP)/src 7 | SRC= $(TOP)/src 8 | TST= $(TOP)/test 9 | 10 | CC= gcc 11 | CFLAGS= -O2 -Wall -I$(INC) $(MYCFLAGS) 12 | MYCFLAGS= 13 | MYLDFLAGS= -Wl,-E 14 | MYLIBS= -lm 15 | #MYLIBS= -lm -Wl,-E -ldl -lreadline -lhistory -lncurses 16 | RM= rm -f 17 | 18 | default: 19 | @echo 'Please choose a target: min noparser one strict clean' 20 | 21 | min: min.c 22 | $(CC) $(CFLAGS) $@.c -L$(LIB) -llua $(MYLIBS) 23 | echo 'print"Hello there!"' | ./a.out 24 | 25 | noparser: noparser.o 26 | $(CC) noparser.o $(SRC)/lua.o -L$(LIB) -llua $(MYLIBS) 27 | $(BIN)/luac $(TST)/hello.lua 28 | -./a.out luac.out 29 | -./a.out -e'a=1' 30 | 31 | one: 32 | $(CC) $(CFLAGS) all.c $(MYLIBS) 33 | ./a.out $(TST)/hello.lua 34 | 35 | strict: 36 | -$(BIN)/lua -e 'print(a);b=2' 37 | -$(BIN)/lua -lstrict -e 'print(a)' 38 | -$(BIN)/lua -e 'function f() b=2 end f()' 39 | -$(BIN)/lua -lstrict -e 'function f() b=2 end f()' 40 | 41 | clean: 42 | $(RM) a.out core core.* *.o luac.out 43 | 44 | .PHONY: default min noparser one strict clean 45 | -------------------------------------------------------------------------------- /lib/lua/v5.1.3/etc/README: -------------------------------------------------------------------------------- 1 | This directory contains some useful files and code. 2 | Unlike the code in ../src, everything here is in the public domain. 3 | 4 | If any of the makes fail, you're probably not using the same libraries 5 | used to build Lua. Set MYLIBS in Makefile accordingly. 6 | 7 | all.c 8 | Full Lua interpreter in a single file. 9 | Do "make one" for a demo. 10 | 11 | lua.hpp 12 | Lua header files for C++ using 'extern "C"'. 13 | 14 | lua.ico 15 | A Lua icon for Windows (and web sites: save as favicon.ico). 16 | Drawn by hand by Markus Gritsch . 17 | 18 | lua.pc 19 | pkg-config data for Lua 20 | 21 | luavs.bat 22 | Script to build Lua under "Visual Studio .NET Command Prompt". 23 | Run it from the toplevel as etc\luavs.bat. 24 | 25 | min.c 26 | A minimal Lua interpreter. 27 | Good for learning and for starting your own. 28 | Do "make min" for a demo. 29 | 30 | noparser.c 31 | Linking with noparser.o avoids loading the parsing modules in lualib.a. 32 | Do "make noparser" for a demo. 33 | 34 | strict.lua 35 | Traps uses of undeclared global variables. 36 | Do "make strict" for a demo. 37 | 38 | -------------------------------------------------------------------------------- /lib/lua/v5.1.3/etc/all.c: -------------------------------------------------------------------------------- 1 | /* 2 | * all.c -- Lua core, libraries and interpreter in a single file 3 | */ 4 | 5 | #define luaall_c 6 | 7 | #include "lapi.c" 8 | #include "lcode.c" 9 | #include "ldebug.c" 10 | #include "ldo.c" 11 | #include "ldump.c" 12 | #include "lfunc.c" 13 | #include "lgc.c" 14 | #include "llex.c" 15 | #include "lmem.c" 16 | #include "lobject.c" 17 | #include "lopcodes.c" 18 | #include "lparser.c" 19 | #include "lstate.c" 20 | #include "lstring.c" 21 | #include "ltable.c" 22 | #include "ltm.c" 23 | #include "lundump.c" 24 | #include "lvm.c" 25 | #include "lzio.c" 26 | 27 | #include "lauxlib.c" 28 | #include "lbaselib.c" 29 | #include "ldblib.c" 30 | #include "liolib.c" 31 | #include "linit.c" 32 | #include "lmathlib.c" 33 | #include "loadlib.c" 34 | #include "loslib.c" 35 | #include "lstrlib.c" 36 | #include "ltablib.c" 37 | 38 | #include "lua.c" 39 | -------------------------------------------------------------------------------- /lib/lua/v5.1.3/etc/lua.hpp: -------------------------------------------------------------------------------- 1 | // lua.hpp 2 | // Lua header files for C++ 3 | // <> not supplied automatically because Lua also compiles as C++ 4 | 5 | extern "C" { 6 | #include "lua.h" 7 | #include "lualib.h" 8 | #include "lauxlib.h" 9 | } 10 | -------------------------------------------------------------------------------- /lib/lua/v5.1.3/etc/lua.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/lib/lua/v5.1.3/etc/lua.ico -------------------------------------------------------------------------------- /lib/lua/v5.1.3/etc/lua.pc: -------------------------------------------------------------------------------- 1 | # lua.pc -- pkg-config data for Lua 2 | 3 | # vars from install Makefile 4 | 5 | # grep '^V=' ../Makefile 6 | V= 5.1 7 | # grep '^R=' ../Makefile 8 | R= 5.1.3 9 | 10 | # grep '^INSTALL_.*=' ../Makefile | sed 's/INSTALL_TOP/prefix/' 11 | prefix= /usr/local 12 | INSTALL_BIN= ${prefix}/bin 13 | INSTALL_INC= ${prefix}/include 14 | INSTALL_LIB= ${prefix}/lib 15 | INSTALL_MAN= ${prefix}/man/man1 16 | INSTALL_LMOD= ${prefix}/share/lua/${V} 17 | INSTALL_CMOD= ${prefix}/lib/lua/${V} 18 | 19 | # canonical vars 20 | exec_prefix=${prefix} 21 | libdir=${exec_prefix}/lib 22 | includedir=${prefix}/include 23 | 24 | Name: Lua 25 | Description: An Extensible Extension Language 26 | Version: ${R} 27 | Requires: 28 | Libs: -L${libdir} -llua -lm 29 | Cflags: -I${includedir} 30 | 31 | # (end of lua.pc) 32 | -------------------------------------------------------------------------------- /lib/lua/v5.1.3/etc/min.c: -------------------------------------------------------------------------------- 1 | /* 2 | * min.c -- a minimal Lua interpreter 3 | * loads stdin only with minimal error handling. 4 | * no interaction, and no standard library, only a "print" function. 5 | */ 6 | 7 | #include 8 | 9 | #include "lua.h" 10 | #include "lauxlib.h" 11 | 12 | static int print(lua_State *L) 13 | { 14 | int n=lua_gettop(L); 15 | int i; 16 | for (i=1; i<=n; i++) 17 | { 18 | if (i>1) printf("\t"); 19 | if (lua_isstring(L,i)) 20 | printf("%s",lua_tostring(L,i)); 21 | else if (lua_isnil(L,i)) 22 | printf("%s","nil"); 23 | else if (lua_isboolean(L,i)) 24 | printf("%s",lua_toboolean(L,i) ? "true" : "false"); 25 | else 26 | printf("%s:%p",luaL_typename(L,i),lua_topointer(L,i)); 27 | } 28 | printf("\n"); 29 | return 0; 30 | } 31 | 32 | int main(void) 33 | { 34 | lua_State *L=lua_open(); 35 | lua_register(L,"print",print); 36 | if (luaL_dofile(L,NULL)!=0) fprintf(stderr,"%s\n",lua_tostring(L,-1)); 37 | lua_close(L); 38 | return 0; 39 | } 40 | -------------------------------------------------------------------------------- /lib/lua/v5.1.3/etc/noparser.c: -------------------------------------------------------------------------------- 1 | /* 2 | * The code below can be used to make a Lua core that does not contain the 3 | * parsing modules (lcode, llex, lparser), which represent 35% of the total core. 4 | * You'll only be able to load binary files and strings, precompiled with luac. 5 | * (Of course, you'll have to build luac with the original parsing modules!) 6 | * 7 | * To use this module, simply compile it ("make noparser" does that) and list 8 | * its object file before the Lua libraries. The linker should then not load 9 | * the parsing modules. To try it, do "make luab". 10 | * 11 | * If you also want to avoid the dump module (ldump.o), define NODUMP. 12 | * #define NODUMP 13 | */ 14 | 15 | #define LUA_CORE 16 | 17 | #include "llex.h" 18 | #include "lparser.h" 19 | #include "lzio.h" 20 | 21 | LUAI_FUNC void luaX_init (lua_State *L) { 22 | UNUSED(L); 23 | } 24 | 25 | LUAI_FUNC Proto *luaY_parser (lua_State *L, ZIO *z, Mbuffer *buff, const char *name) { 26 | UNUSED(z); 27 | UNUSED(buff); 28 | UNUSED(name); 29 | lua_pushliteral(L,"parser not loaded"); 30 | lua_error(L); 31 | return NULL; 32 | } 33 | 34 | #ifdef NODUMP 35 | #include "lundump.h" 36 | 37 | LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* data, int strip) { 38 | UNUSED(f); 39 | UNUSED(w); 40 | UNUSED(data); 41 | UNUSED(strip); 42 | #if 1 43 | UNUSED(L); 44 | return 0; 45 | #else 46 | lua_pushliteral(L,"dumper not loaded"); 47 | lua_error(L); 48 | #endif 49 | } 50 | #endif 51 | -------------------------------------------------------------------------------- /lib/lua/v5.1.3/etc/strict.lua: -------------------------------------------------------------------------------- 1 | -- 2 | -- strict.lua 3 | -- checks uses of undeclared global variables 4 | -- All global variables must be 'declared' through a regular assignment 5 | -- (even assigning nil will do) in a main chunk before being used 6 | -- anywhere or assigned to inside a function. 7 | -- 8 | 9 | local getinfo, error, rawset, rawget = debug.getinfo, error, rawset, rawget 10 | 11 | local mt = getmetatable(_G) 12 | if mt == nil then 13 | mt = {} 14 | setmetatable(_G, mt) 15 | end 16 | 17 | mt.__declared = {} 18 | 19 | local function what () 20 | local d = getinfo(3, "S") 21 | return d and d.what or "C" 22 | end 23 | 24 | mt.__newindex = function (t, n, v) 25 | if not mt.__declared[n] then 26 | local w = what() 27 | if w ~= "main" and w ~= "C" then 28 | error("assign to undeclared variable '"..n.."'", 2) 29 | end 30 | mt.__declared[n] = true 31 | end 32 | rawset(t, n, v) 33 | end 34 | 35 | mt.__index = function (t, n) 36 | if not mt.__declared[n] and what() ~= "C" then 37 | error("variable '"..n.."' is not declared", 2) 38 | end 39 | return rawget(t, n) 40 | end 41 | 42 | -------------------------------------------------------------------------------- /lib/lua/v5.1.3/src/lapi.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: //depot/Tilde/branch-release-0.5/lib/lua/v5.1.3/src/lapi.h#1 $ 3 | ** Auxiliary functions from Lua API 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lapi_h 8 | #define lapi_h 9 | 10 | 11 | #include "lobject.h" 12 | 13 | 14 | LUAI_FUNC void luaA_pushobject (lua_State *L, const TValue *o); 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /lib/lua/v5.1.3/src/ldebug.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: //depot/Tilde/branch-release-0.5/lib/lua/v5.1.3/src/ldebug.h#1 $ 3 | ** Auxiliary functions from Debug Interface module 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef ldebug_h 8 | #define ldebug_h 9 | 10 | 11 | #include "lstate.h" 12 | 13 | 14 | #define pcRel(pc, p) (cast(int, (pc) - (p)->code) - 1) 15 | 16 | #define getline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : 0) 17 | 18 | #define resethookcount(L) (L->hookcount = L->basehookcount) 19 | 20 | 21 | LUAI_FUNC void luaG_typeerror (lua_State *L, const TValue *o, 22 | const char *opname); 23 | LUAI_FUNC void luaG_concaterror (lua_State *L, StkId p1, StkId p2); 24 | LUAI_FUNC void luaG_aritherror (lua_State *L, const TValue *p1, 25 | const TValue *p2); 26 | LUAI_FUNC int luaG_ordererror (lua_State *L, const TValue *p1, 27 | const TValue *p2); 28 | LUAI_FUNC void luaG_runerror (lua_State *L, const char *fmt, ...); 29 | LUAI_FUNC void luaG_errormsg (lua_State *L); 30 | LUAI_FUNC int luaG_checkcode (const Proto *pt); 31 | LUAI_FUNC int luaG_checkopenop (Instruction i); 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /lib/lua/v5.1.3/src/lfunc.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: //depot/Tilde/branch-release-0.5/lib/lua/v5.1.3/src/lfunc.h#1 $ 3 | ** Auxiliary functions to manipulate prototypes and closures 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lfunc_h 8 | #define lfunc_h 9 | 10 | 11 | #include "lobject.h" 12 | 13 | 14 | #define sizeCclosure(n) (cast(int, sizeof(CClosure)) + \ 15 | cast(int, sizeof(TValue)*((n)-1))) 16 | 17 | #define sizeLclosure(n) (cast(int, sizeof(LClosure)) + \ 18 | cast(int, sizeof(TValue *)*((n)-1))) 19 | 20 | 21 | LUAI_FUNC Proto *luaF_newproto (lua_State *L); 22 | LUAI_FUNC Closure *luaF_newCclosure (lua_State *L, int nelems, Table *e); 23 | LUAI_FUNC Closure *luaF_newLclosure (lua_State *L, int nelems, Table *e); 24 | LUAI_FUNC UpVal *luaF_newupval (lua_State *L); 25 | LUAI_FUNC UpVal *luaF_findupval (lua_State *L, StkId level); 26 | LUAI_FUNC void luaF_close (lua_State *L, StkId level); 27 | LUAI_FUNC void luaF_freeproto (lua_State *L, Proto *f); 28 | LUAI_FUNC void luaF_freeclosure (lua_State *L, Closure *c); 29 | LUAI_FUNC void luaF_freeupval (lua_State *L, UpVal *uv); 30 | LUAI_FUNC const char *luaF_getlocalname (const Proto *func, int local_number, 31 | int pc); 32 | 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /lib/lua/v5.1.3/src/linit.c: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: //depot/Tilde/branch-release-0.5/lib/lua/v5.1.3/src/linit.c#1 $ 3 | ** Initialization of libraries for lua.c 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | 8 | #define linit_c 9 | #define LUA_LIB 10 | 11 | #include "lua.h" 12 | 13 | #include "lualib.h" 14 | #include "lauxlib.h" 15 | 16 | 17 | static const luaL_Reg lualibs[] = { 18 | {"", luaopen_base}, 19 | {LUA_LOADLIBNAME, luaopen_package}, 20 | {LUA_TABLIBNAME, luaopen_table}, 21 | {LUA_IOLIBNAME, luaopen_io}, 22 | {LUA_OSLIBNAME, luaopen_os}, 23 | {LUA_STRLIBNAME, luaopen_string}, 24 | {LUA_MATHLIBNAME, luaopen_math}, 25 | {LUA_DBLIBNAME, luaopen_debug}, 26 | {NULL, NULL} 27 | }; 28 | 29 | 30 | LUALIB_API void luaL_openlibs (lua_State *L) { 31 | const luaL_Reg *lib = lualibs; 32 | for (; lib->func; lib++) { 33 | lua_pushcfunction(L, lib->func); 34 | lua_pushstring(L, lib->name); 35 | lua_call(L, 1, 0); 36 | } 37 | } 38 | 39 | -------------------------------------------------------------------------------- /lib/lua/v5.1.3/src/lmem.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: //depot/Tilde/branch-release-0.5/lib/lua/v5.1.3/src/lmem.h#1 $ 3 | ** Interface to Memory Manager 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lmem_h 8 | #define lmem_h 9 | 10 | 11 | #include 12 | 13 | #include "llimits.h" 14 | #include "lua.h" 15 | 16 | #define MEMERRMSG "not enough memory" 17 | 18 | 19 | #define luaM_reallocv(L,b,on,n,e) \ 20 | ((cast(size_t, (n)+1) <= MAX_SIZET/(e)) ? /* +1 to avoid warnings */ \ 21 | luaM_realloc_(L, (b), (on)*(e), (n)*(e)) : \ 22 | luaM_toobig(L)) 23 | 24 | #define luaM_freemem(L, b, s) luaM_realloc_(L, (b), (s), 0) 25 | #define luaM_free(L, b) luaM_realloc_(L, (b), sizeof(*(b)), 0) 26 | #define luaM_freearray(L, b, n, t) luaM_reallocv(L, (b), n, 0, sizeof(t)) 27 | 28 | #define luaM_malloc(L,t) luaM_realloc_(L, NULL, 0, (t)) 29 | #define luaM_new(L,t) cast(t *, luaM_malloc(L, sizeof(t))) 30 | #define luaM_newvector(L,n,t) \ 31 | cast(t *, luaM_reallocv(L, NULL, 0, n, sizeof(t))) 32 | 33 | #define luaM_growvector(L,v,nelems,size,t,limit,e) \ 34 | if ((nelems)+1 > (size)) \ 35 | ((v)=cast(t *, luaM_growaux_(L,v,&(size),sizeof(t),limit,e))) 36 | 37 | #define luaM_reallocvector(L, v,oldn,n,t) \ 38 | ((v)=cast(t *, luaM_reallocv(L, v, oldn, n, sizeof(t)))) 39 | 40 | 41 | LUAI_FUNC void *luaM_realloc_ (lua_State *L, void *block, size_t oldsize, 42 | size_t size); 43 | LUAI_FUNC void *luaM_toobig (lua_State *L); 44 | LUAI_FUNC void *luaM_growaux_ (lua_State *L, void *block, int *size, 45 | size_t size_elem, int limit, 46 | const char *errormsg); 47 | 48 | #endif 49 | 50 | -------------------------------------------------------------------------------- /lib/lua/v5.1.3/src/lstring.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: //depot/Tilde/branch-release-0.5/lib/lua/v5.1.3/src/lstring.h#1 $ 3 | ** String table (keep all strings handled by Lua) 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lstring_h 8 | #define lstring_h 9 | 10 | 11 | #include "lgc.h" 12 | #include "lobject.h" 13 | #include "lstate.h" 14 | 15 | 16 | #define sizestring(s) (sizeof(union TString)+((s)->len+1)*sizeof(char)) 17 | 18 | #define sizeudata(u) (sizeof(union Udata)+(u)->len) 19 | 20 | #define luaS_new(L, s) (luaS_newlstr(L, s, strlen(s))) 21 | #define luaS_newliteral(L, s) (luaS_newlstr(L, "" s, \ 22 | (sizeof(s)/sizeof(char))-1)) 23 | 24 | #define luaS_fix(s) l_setbit((s)->tsv.marked, FIXEDBIT) 25 | 26 | LUAI_FUNC void luaS_resize (lua_State *L, int newsize); 27 | LUAI_FUNC Udata *luaS_newudata (lua_State *L, size_t s, Table *e); 28 | LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l); 29 | 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /lib/lua/v5.1.3/src/ltable.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: //depot/Tilde/branch-release-0.5/lib/lua/v5.1.3/src/ltable.h#1 $ 3 | ** Lua tables (hash) 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef ltable_h 8 | #define ltable_h 9 | 10 | #include "lobject.h" 11 | 12 | 13 | #define gnode(t,i) (&(t)->node[i]) 14 | #define gkey(n) (&(n)->i_key.nk) 15 | #define gval(n) (&(n)->i_val) 16 | #define gnext(n) ((n)->i_key.nk.next) 17 | 18 | #define key2tval(n) (&(n)->i_key.tvk) 19 | 20 | 21 | LUAI_FUNC const TValue *luaH_getnum (Table *t, int key); 22 | LUAI_FUNC TValue *luaH_setnum (lua_State *L, Table *t, int key); 23 | LUAI_FUNC const TValue *luaH_getstr (Table *t, TString *key); 24 | LUAI_FUNC TValue *luaH_setstr (lua_State *L, Table *t, TString *key); 25 | LUAI_FUNC const TValue *luaH_get (Table *t, const TValue *key); 26 | LUAI_FUNC TValue *luaH_set (lua_State *L, Table *t, const TValue *key); 27 | LUAI_FUNC Table *luaH_new (lua_State *L, int narray, int lnhash); 28 | LUAI_FUNC void luaH_resizearray (lua_State *L, Table *t, int nasize); 29 | LUAI_FUNC void luaH_free (lua_State *L, Table *t); 30 | LUAI_FUNC int luaH_next (lua_State *L, Table *t, StkId key); 31 | LUAI_FUNC int luaH_getn (Table *t); 32 | 33 | 34 | #if defined(LUA_DEBUG) 35 | LUAI_FUNC Node *luaH_mainposition (const Table *t, const TValue *key); 36 | LUAI_FUNC int luaH_isdummy (Node *n); 37 | #endif 38 | 39 | 40 | #endif 41 | -------------------------------------------------------------------------------- /lib/lua/v5.1.3/src/ltm.c: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: //depot/Tilde/branch-release-0.5/lib/lua/v5.1.3/src/ltm.c#1 $ 3 | ** Tag methods 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | 8 | #include 9 | 10 | #define ltm_c 11 | #define LUA_CORE 12 | 13 | #include "lua.h" 14 | 15 | #include "lobject.h" 16 | #include "lstate.h" 17 | #include "lstring.h" 18 | #include "ltable.h" 19 | #include "ltm.h" 20 | 21 | 22 | 23 | const char *const luaT_typenames[] = { 24 | "nil", "boolean", "userdata", "number", 25 | "string", "table", "function", "userdata", "thread", 26 | "proto", "upval" 27 | }; 28 | 29 | 30 | void luaT_init (lua_State *L) { 31 | static const char *const luaT_eventname[] = { /* ORDER TM */ 32 | "__index", "__newindex", 33 | "__gc", "__mode", "__eq", 34 | "__add", "__sub", "__mul", "__div", "__mod", 35 | "__pow", "__unm", "__len", "__lt", "__le", 36 | "__concat", "__call" 37 | }; 38 | int i; 39 | for (i=0; itmname[i] = luaS_new(L, luaT_eventname[i]); 41 | luaS_fix(G(L)->tmname[i]); /* never collect these names */ 42 | } 43 | } 44 | 45 | 46 | /* 47 | ** function to be used with macro "fasttm": optimized for absence of 48 | ** tag methods 49 | */ 50 | const TValue *luaT_gettm (Table *events, TMS event, TString *ename) { 51 | const TValue *tm = luaH_getstr(events, ename); 52 | lua_assert(event <= TM_EQ); 53 | if (ttisnil(tm)) { /* no tag method? */ 54 | events->flags |= cast_byte(1u<metatable; 66 | break; 67 | case LUA_TUSERDATA: 68 | mt = uvalue(o)->metatable; 69 | break; 70 | default: 71 | mt = G(L)->mt[ttype(o)]; 72 | } 73 | return (mt ? luaH_getstr(mt, G(L)->tmname[event]) : luaO_nilobject); 74 | } 75 | 76 | -------------------------------------------------------------------------------- /lib/lua/v5.1.3/src/ltm.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: //depot/Tilde/branch-release-0.5/lib/lua/v5.1.3/src/ltm.h#1 $ 3 | ** Tag methods 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef ltm_h 8 | #define ltm_h 9 | 10 | 11 | #include "lobject.h" 12 | 13 | 14 | /* 15 | * WARNING: if you change the order of this enumeration, 16 | * grep "ORDER TM" 17 | */ 18 | typedef enum { 19 | TM_INDEX, 20 | TM_NEWINDEX, 21 | TM_GC, 22 | TM_MODE, 23 | TM_EQ, /* last tag method with `fast' access */ 24 | TM_ADD, 25 | TM_SUB, 26 | TM_MUL, 27 | TM_DIV, 28 | TM_MOD, 29 | TM_POW, 30 | TM_UNM, 31 | TM_LEN, 32 | TM_LT, 33 | TM_LE, 34 | TM_CONCAT, 35 | TM_CALL, 36 | TM_N /* number of elements in the enum */ 37 | } TMS; 38 | 39 | 40 | 41 | #define gfasttm(g,et,e) ((et) == NULL ? NULL : \ 42 | ((et)->flags & (1u<<(e))) ? NULL : luaT_gettm(et, e, (g)->tmname[e])) 43 | 44 | #define fasttm(l,et,e) gfasttm(G(l), et, e) 45 | 46 | LUAI_DATA const char *const luaT_typenames[]; 47 | 48 | 49 | LUAI_FUNC const TValue *luaT_gettm (Table *events, TMS event, TString *ename); 50 | LUAI_FUNC const TValue *luaT_gettmbyobj (lua_State *L, const TValue *o, 51 | TMS event); 52 | LUAI_FUNC void luaT_init (lua_State *L); 53 | 54 | #endif 55 | -------------------------------------------------------------------------------- /lib/lua/v5.1.3/src/lualib.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: //depot/Tilde/branch-release-0.5/lib/lua/v5.1.3/src/lualib.h#1 $ 3 | ** Lua standard libraries 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | 8 | #ifndef lualib_h 9 | #define lualib_h 10 | 11 | #include "lua.h" 12 | 13 | 14 | /* Key to file-handle type */ 15 | #define LUA_FILEHANDLE "FILE*" 16 | 17 | 18 | #define LUA_COLIBNAME "coroutine" 19 | LUALIB_API int (luaopen_base) (lua_State *L); 20 | 21 | #define LUA_TABLIBNAME "table" 22 | LUALIB_API int (luaopen_table) (lua_State *L); 23 | 24 | #define LUA_IOLIBNAME "io" 25 | LUALIB_API int (luaopen_io) (lua_State *L); 26 | 27 | #define LUA_OSLIBNAME "os" 28 | LUALIB_API int (luaopen_os) (lua_State *L); 29 | 30 | #define LUA_STRLIBNAME "string" 31 | LUALIB_API int (luaopen_string) (lua_State *L); 32 | 33 | #define LUA_MATHLIBNAME "math" 34 | LUALIB_API int (luaopen_math) (lua_State *L); 35 | 36 | #define LUA_DBLIBNAME "debug" 37 | LUALIB_API int (luaopen_debug) (lua_State *L); 38 | 39 | #define LUA_LOADLIBNAME "package" 40 | LUALIB_API int (luaopen_package) (lua_State *L); 41 | 42 | 43 | /* open all previous libraries */ 44 | LUALIB_API void (luaL_openlibs) (lua_State *L); 45 | 46 | 47 | 48 | #ifndef lua_assert 49 | #define lua_assert(x) ((void)0) 50 | #endif 51 | 52 | 53 | #endif 54 | -------------------------------------------------------------------------------- /lib/lua/v5.1.3/src/lundump.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: //depot/Tilde/branch-release-0.5/lib/lua/v5.1.3/src/lundump.h#1 $ 3 | ** load precompiled Lua chunks 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lundump_h 8 | #define lundump_h 9 | 10 | #include "lobject.h" 11 | #include "lzio.h" 12 | 13 | /* load one chunk; from lundump.c */ 14 | LUAI_FUNC Proto* luaU_undump (lua_State* L, ZIO* Z, Mbuffer* buff, const char* name); 15 | 16 | /* make header; from lundump.c */ 17 | LUAI_FUNC void luaU_header (char* h); 18 | 19 | /* dump one chunk; from ldump.c */ 20 | LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* data, int strip); 21 | 22 | #ifdef luac_c 23 | /* print one chunk; from print.c */ 24 | LUAI_FUNC void luaU_print (const Proto* f, int full); 25 | #endif 26 | 27 | /* for header of binary files -- this is Lua 5.1 */ 28 | #define LUAC_VERSION 0x51 29 | 30 | /* for header of binary files -- this is the official format */ 31 | #define LUAC_FORMAT 0 32 | 33 | /* size of header of binary files */ 34 | #define LUAC_HEADERSIZE 12 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /lib/lua/v5.1.3/src/lvm.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: //depot/Tilde/branch-release-0.5/lib/lua/v5.1.3/src/lvm.h#1 $ 3 | ** Lua virtual machine 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lvm_h 8 | #define lvm_h 9 | 10 | 11 | #include "ldo.h" 12 | #include "lobject.h" 13 | #include "ltm.h" 14 | 15 | 16 | #define tostring(L,o) ((ttype(o) == LUA_TSTRING) || (luaV_tostring(L, o))) 17 | 18 | #define tonumber(o,n) (ttype(o) == LUA_TNUMBER || \ 19 | (((o) = luaV_tonumber(o,n)) != NULL)) 20 | 21 | #define equalobj(L,o1,o2) \ 22 | (ttype(o1) == ttype(o2) && luaV_equalval(L, o1, o2)) 23 | 24 | 25 | LUAI_FUNC int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r); 26 | LUAI_FUNC int luaV_equalval (lua_State *L, const TValue *t1, const TValue *t2); 27 | LUAI_FUNC const TValue *luaV_tonumber (const TValue *obj, TValue *n); 28 | LUAI_FUNC int luaV_tostring (lua_State *L, StkId obj); 29 | LUAI_FUNC void luaV_gettable (lua_State *L, const TValue *t, TValue *key, 30 | StkId val); 31 | LUAI_FUNC void luaV_settable (lua_State *L, const TValue *t, TValue *key, 32 | StkId val); 33 | LUAI_FUNC void luaV_execute (lua_State *L, int nexeccalls); 34 | LUAI_FUNC void luaV_concat (lua_State *L, int total, int last); 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /lib/lua/v5.1.3/src/lzio.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: //depot/Tilde/branch-release-0.5/lib/lua/v5.1.3/src/lzio.h#1 $ 3 | ** Buffered streams 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | 8 | #ifndef lzio_h 9 | #define lzio_h 10 | 11 | #include "lua.h" 12 | 13 | #include "lmem.h" 14 | 15 | 16 | #define EOZ (-1) /* end of stream */ 17 | 18 | typedef struct Zio ZIO; 19 | 20 | #define char2int(c) cast(int, cast(unsigned char, (c))) 21 | 22 | #define zgetc(z) (((z)->n--)>0 ? char2int(*(z)->p++) : luaZ_fill(z)) 23 | 24 | typedef struct Mbuffer { 25 | char *buffer; 26 | size_t n; 27 | size_t buffsize; 28 | } Mbuffer; 29 | 30 | #define luaZ_initbuffer(L, buff) ((buff)->buffer = NULL, (buff)->buffsize = 0) 31 | 32 | #define luaZ_buffer(buff) ((buff)->buffer) 33 | #define luaZ_sizebuffer(buff) ((buff)->buffsize) 34 | #define luaZ_bufflen(buff) ((buff)->n) 35 | 36 | #define luaZ_resetbuffer(buff) ((buff)->n = 0) 37 | 38 | 39 | #define luaZ_resizebuffer(L, buff, size) \ 40 | (luaM_reallocvector(L, (buff)->buffer, (buff)->buffsize, size, char), \ 41 | (buff)->buffsize = size) 42 | 43 | #define luaZ_freebuffer(L, buff) luaZ_resizebuffer(L, buff, 0) 44 | 45 | 46 | LUAI_FUNC char *luaZ_openspace (lua_State *L, Mbuffer *buff, size_t n); 47 | LUAI_FUNC void luaZ_init (lua_State *L, ZIO *z, lua_Reader reader, 48 | void *data); 49 | LUAI_FUNC size_t luaZ_read (ZIO* z, void* b, size_t n); /* read next n bytes */ 50 | LUAI_FUNC int luaZ_lookahead (ZIO *z); 51 | 52 | 53 | 54 | /* --------- Private Part ------------------ */ 55 | 56 | struct Zio { 57 | size_t n; /* bytes still unread */ 58 | const char *p; /* current position in buffer */ 59 | lua_Reader reader; 60 | void* data; /* additional data */ 61 | lua_State *L; /* Lua state (for reader) */ 62 | }; 63 | 64 | 65 | LUAI_FUNC int luaZ_fill (ZIO *z); 66 | 67 | #endif 68 | -------------------------------------------------------------------------------- /lib/lua/v5.1.3/test/README: -------------------------------------------------------------------------------- 1 | These are simple tests for Lua. Some of them contain useful code. 2 | They are meant to be run to make sure Lua is built correctly and also 3 | to be read, to see how Lua programs look. 4 | 5 | Here is a one-line summary of each program: 6 | 7 | bisect.lua bisection method for solving non-linear equations 8 | cf.lua temperature conversion table (celsius to farenheit) 9 | echo.lua echo command line arguments 10 | env.lua environment variables as automatic global variables 11 | factorial.lua factorial without recursion 12 | fib.lua fibonacci function with cache 13 | fibfor.lua fibonacci numbers with coroutines and generators 14 | globals.lua report global variable usage 15 | hello.lua the first program in every language 16 | life.lua Conway's Game of Life 17 | luac.lua bare-bones luac 18 | printf.lua an implementation of printf 19 | readonly.lua make global variables readonly 20 | sieve.lua the sieve of of Eratosthenes programmed with coroutines 21 | sort.lua two implementations of a sort function 22 | table.lua make table, grouping all data for the same item 23 | trace-calls.lua trace calls 24 | trace-globals.lua trace assigments to global variables 25 | xd.lua hex dump 26 | 27 | -------------------------------------------------------------------------------- /lib/lua/v5.1.3/test/bisect.lua: -------------------------------------------------------------------------------- 1 | -- bisection method for solving non-linear equations 2 | 3 | delta=1e-6 -- tolerance 4 | 5 | function bisect(f,a,b,fa,fb) 6 | local c=(a+b)/2 7 | io.write(n," c=",c," a=",a," b=",b,"\n") 8 | if c==a or c==b or math.abs(a-b)y end) 58 | show("after reverse selection sort",x) 59 | qsort(x,1,n,function (x,y) return x>> ",string.rep(" ",level)) 9 | if t~=nil and t.currentline>=0 then io.write(t.short_src,":",t.currentline," ") end 10 | t=debug.getinfo(2) 11 | if event=="call" then 12 | level=level+1 13 | else 14 | level=level-1 if level<0 then level=0 end 15 | end 16 | if t.what=="main" then 17 | if event=="call" then 18 | io.write("begin ",t.short_src) 19 | else 20 | io.write("end ",t.short_src) 21 | end 22 | elseif t.what=="Lua" then 23 | -- table.foreach(t,print) 24 | io.write(event," ",t.name or "(Lua)"," <",t.linedefined,":",t.short_src,">") 25 | else 26 | io.write(event," ",t.name or "(C)"," [",t.what,"] ") 27 | end 28 | io.write("\n") 29 | end 30 | 31 | debug.sethook(hook,"cr") 32 | level=0 33 | -------------------------------------------------------------------------------- /lib/lua/v5.1.3/test/trace-globals.lua: -------------------------------------------------------------------------------- 1 | -- trace assigments to global variables 2 | 3 | do 4 | -- a tostring that quotes strings. note the use of the original tostring. 5 | local _tostring=tostring 6 | local tostring=function(a) 7 | if type(a)=="string" then 8 | return string.format("%q",a) 9 | else 10 | return _tostring(a) 11 | end 12 | end 13 | 14 | local log=function (name,old,new) 15 | local t=debug.getinfo(3,"Sl") 16 | local line=t.currentline 17 | io.write(t.short_src) 18 | if line>=0 then io.write(":",line) end 19 | io.write(": ",name," is now ",tostring(new)," (was ",tostring(old),")","\n") 20 | end 21 | 22 | local g={} 23 | local set=function (t,name,value) 24 | log(name,g[name],value) 25 | g[name]=value 26 | end 27 | setmetatable(getfenv(),{__index=g,__newindex=set}) 28 | end 29 | 30 | -- an example 31 | 32 | a=1 33 | b=2 34 | a=10 35 | b=20 36 | b=nil 37 | b=200 38 | print(a,b,c) 39 | -------------------------------------------------------------------------------- /lib/lua/v5.1.3/test/xd.lua: -------------------------------------------------------------------------------- 1 | -- hex dump 2 | -- usage: lua xd.lua < file 3 | 4 | local offset=0 5 | while true do 6 | local s=io.read(16) 7 | if s==nil then return end 8 | io.write(string.format("%08X ",offset)) 9 | string.gsub(s,"(.)", 10 | function (c) io.write(string.format("%02X ",string.byte(c))) end) 11 | io.write(string.rep(" ",3*(16-string.len(s)))) 12 | io.write(" ",string.gsub(s,"%c","."),"\n") 13 | offset=offset+16 14 | end 15 | -------------------------------------------------------------------------------- /plugins/LuaDebugger/DebugPrintEvent.cs: -------------------------------------------------------------------------------- 1 | 2 | /**************************************************************************** 3 | 4 | Tilde 5 | 6 | Copyright (c) 2008 Tantalus Media Pty 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | ****************************************************************************/ 27 | 28 | using System; 29 | using System.Collections.Generic; 30 | using System.Text; 31 | 32 | namespace Tilde.LuaDebugger 33 | { 34 | public delegate void DebugPrintEventHandler(Target sender, DebugPrintEventArgs args); 35 | 36 | public class DebugPrintEventArgs 37 | { 38 | public DebugPrintEventArgs(string message) 39 | { 40 | mMessage = message; 41 | } 42 | 43 | public string Message 44 | { 45 | get { return mMessage; } 46 | } 47 | 48 | private string mMessage; 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /plugins/LuaDebugger/ExMessageEvent.cs: -------------------------------------------------------------------------------- 1 | 2 | /**************************************************************************** 3 | 4 | Tilde 5 | 6 | Copyright (c) 2008 Tantalus Media Pty 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | ****************************************************************************/ 27 | 28 | using System; 29 | using System.Collections.Generic; 30 | using System.Text; 31 | 32 | namespace Tilde.LuaDebugger 33 | { 34 | public delegate void ExMessageEventHandler(Target sender, ExMessageEventArgs args); 35 | 36 | public class ExMessageEventArgs 37 | { 38 | public ExMessageEventArgs(string command, byte [] data) 39 | { 40 | m_command = command; 41 | m_data = data; 42 | } 43 | 44 | public string Command 45 | { 46 | get { return m_command; } 47 | } 48 | 49 | public byte [] Data 50 | { 51 | get { return m_data; } 52 | } 53 | 54 | string m_command; 55 | byte[] m_data; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /plugins/LuaDebugger/ExecutionMode.cs: -------------------------------------------------------------------------------- 1 | 2 | /**************************************************************************** 3 | 4 | Tilde 5 | 6 | Copyright (c) 2008 Tantalus Media Pty 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | ****************************************************************************/ 27 | 28 | using System; 29 | using System.Collections.Generic; 30 | using System.Text; 31 | 32 | namespace Tilde.LuaDebugger 33 | { 34 | public enum ExecutionMode 35 | { 36 | Break, // Don't run 37 | Error, // N/A 38 | Go, // Run until a breakpoint is hit/program terminates 39 | StepOver, // Step over a single line, even if it is a function call 40 | StepInto, // Step a single line, or into a function call 41 | StepOut, // Step out of the current function 42 | 43 | Continue // Keep going with the previous mode after a breakpoint/error was hit 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /plugins/LuaDebugger/FileUploadEvent.cs: -------------------------------------------------------------------------------- 1 | 2 | /**************************************************************************** 3 | 4 | Tilde 5 | 6 | Copyright (c) 2008 Tantalus Media Pty 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | ****************************************************************************/ 27 | 28 | using System; 29 | using System.Collections.Generic; 30 | using System.Text; 31 | 32 | namespace Tilde.LuaDebugger 33 | { 34 | public delegate void FileUploadEventHandler(Target sender, FileUploadEventArgs args); 35 | 36 | public class FileUploadEventArgs 37 | { 38 | public FileUploadEventArgs(string fileName, byte [] data) 39 | { 40 | mFileName = fileName; 41 | mData = data; 42 | } 43 | 44 | public string FileName 45 | { 46 | get { return mFileName; } 47 | } 48 | 49 | public byte [] Data 50 | { 51 | get { return mData; } 52 | } 53 | 54 | private string mFileName; 55 | private byte[] mData; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /plugins/LuaDebugger/HostInfo.cs: -------------------------------------------------------------------------------- 1 | 2 | /**************************************************************************** 3 | 4 | Tilde 5 | 6 | Copyright (c) 2008 Tantalus Media Pty 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | ****************************************************************************/ 27 | 28 | using System; 29 | using System.Collections.Generic; 30 | using System.Text; 31 | 32 | namespace Tilde.LuaDebugger 33 | { 34 | public class HostInfo 35 | { 36 | private ITransport mTransport; 37 | private string mName; 38 | 39 | public HostInfo(ITransport transport, string name) 40 | { 41 | mTransport = transport; 42 | mName = name; 43 | } 44 | 45 | public ITransport Transport 46 | { 47 | get { return mTransport; } 48 | } 49 | 50 | public string Name 51 | { 52 | get { return mName; } 53 | } 54 | 55 | public override string ToString() 56 | { 57 | return mName; 58 | } 59 | 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /plugins/LuaDebugger/ITransport.cs: -------------------------------------------------------------------------------- 1 | 2 | /**************************************************************************** 3 | 4 | Tilde 5 | 6 | Copyright (c) 2008 Tantalus Media Pty 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | ****************************************************************************/ 27 | 28 | using System; 29 | using System.Collections.Generic; 30 | using System.Text; 31 | 32 | namespace Tilde.LuaDebugger 33 | { 34 | public interface ITransport 35 | { 36 | HostInfo [] EnumerateDevices(); 37 | IConnection Connect(HostInfo target); 38 | void DisableAutoConnect(); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /plugins/LuaDebugger/LuaScriptDocument.cs: -------------------------------------------------------------------------------- 1 | 2 | /**************************************************************************** 3 | 4 | Tilde 5 | 6 | Copyright (c) 2008 Tantalus Media Pty 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | ****************************************************************************/ 27 | 28 | using System; 29 | using System.Collections.Generic; 30 | using System.Text; 31 | 32 | using Tilde.Framework.Model; 33 | using Tilde.CorePlugins.TextEditor; 34 | 35 | namespace Tilde.LuaDebugger 36 | { 37 | [DocumentClassAttribute("Lua Script", 38 | ViewType = typeof(LuaScriptView), 39 | FileExtensions = new string[] { ".lua" }) 40 | ] 41 | 42 | public class LuaScriptDocument : TextDocument 43 | { 44 | public LuaScriptDocument(Tilde.Framework.Controller.IManager manager, string fileName) 45 | : base(manager, fileName) 46 | { 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /plugins/LuaDebugger/NewWatchDialog.cs: -------------------------------------------------------------------------------- 1 | 2 | /**************************************************************************** 3 | 4 | Tilde 5 | 6 | Copyright (c) 2008 Tantalus Media Pty 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | ****************************************************************************/ 27 | 28 | using System; 29 | using System.Collections.Generic; 30 | using System.ComponentModel; 31 | using System.Data; 32 | using System.Drawing; 33 | using System.Text; 34 | using System.Windows.Forms; 35 | 36 | namespace Tilde.LuaDebugger 37 | { 38 | public partial class NewWatchDialog : Form 39 | { 40 | public NewWatchDialog() 41 | { 42 | InitializeComponent(); 43 | } 44 | 45 | public string Expression 46 | { 47 | get { return textBoxExpression.Text; } 48 | } 49 | } 50 | } -------------------------------------------------------------------------------- /plugins/LuaDebugger/ProtocolException.cs: -------------------------------------------------------------------------------- 1 | 2 | /**************************************************************************** 3 | 4 | Tilde 5 | 6 | Copyright (c) 2008 Tantalus Media Pty 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | ****************************************************************************/ 27 | 28 | using System; 29 | using System.Collections.Generic; 30 | using System.Text; 31 | 32 | namespace Tilde.LuaDebugger 33 | { 34 | class ProtocolException : TargetException 35 | { 36 | public ProtocolException() 37 | { 38 | 39 | } 40 | 41 | public ProtocolException(string message) 42 | : base(message) 43 | { 44 | 45 | } 46 | 47 | public ProtocolException(String message, Exception inner) 48 | : base(message, inner) 49 | { 50 | 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /plugins/LuaDebugger/Resources/Break.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/plugins/LuaDebugger/Resources/Break.bmp -------------------------------------------------------------------------------- /plugins/LuaDebugger/Resources/BreakedThread.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/plugins/LuaDebugger/Resources/BreakedThread.bmp -------------------------------------------------------------------------------- /plugins/LuaDebugger/Resources/Breakpoint.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/plugins/LuaDebugger/Resources/Breakpoint.bmp -------------------------------------------------------------------------------- /plugins/LuaDebugger/Resources/BrwRefresh.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/plugins/LuaDebugger/Resources/BrwRefresh.bmp -------------------------------------------------------------------------------- /plugins/LuaDebugger/Resources/Connect.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/plugins/LuaDebugger/Resources/Connect.bmp -------------------------------------------------------------------------------- /plugins/LuaDebugger/Resources/Connect.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/plugins/LuaDebugger/Resources/Connect.gif -------------------------------------------------------------------------------- /plugins/LuaDebugger/Resources/ConsoleWindowTemplate.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 62 | 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /plugins/LuaDebugger/Resources/CurrentFrame.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/plugins/LuaDebugger/Resources/CurrentFrame.bmp -------------------------------------------------------------------------------- /plugins/LuaDebugger/Resources/Disconnect.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/plugins/LuaDebugger/Resources/Disconnect.bmp -------------------------------------------------------------------------------- /plugins/LuaDebugger/Resources/EmptyBreakpoint.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/plugins/LuaDebugger/Resources/EmptyBreakpoint.bmp -------------------------------------------------------------------------------- /plugins/LuaDebugger/Resources/FolderClosed_16x16.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/plugins/LuaDebugger/Resources/FolderClosed_16x16.bmp -------------------------------------------------------------------------------- /plugins/LuaDebugger/Resources/Percentage.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/plugins/LuaDebugger/Resources/Percentage.bmp -------------------------------------------------------------------------------- /plugins/LuaDebugger/Resources/Run.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/plugins/LuaDebugger/Resources/Run.bmp -------------------------------------------------------------------------------- /plugins/LuaDebugger/Resources/StartProfile.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/plugins/LuaDebugger/Resources/StartProfile.bmp -------------------------------------------------------------------------------- /plugins/LuaDebugger/Resources/Stop.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/plugins/LuaDebugger/Resources/Stop.bmp -------------------------------------------------------------------------------- /plugins/LuaDebugger/Resources/SystrayConnected.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/plugins/LuaDebugger/Resources/SystrayConnected.ico -------------------------------------------------------------------------------- /plugins/LuaDebugger/Resources/SystrayDisconnected.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/plugins/LuaDebugger/Resources/SystrayDisconnected.ico -------------------------------------------------------------------------------- /plugins/LuaDebugger/Resources/tree_closed.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/plugins/LuaDebugger/Resources/tree_closed.bmp -------------------------------------------------------------------------------- /plugins/LuaDebugger/Resources/tree_open.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/plugins/LuaDebugger/Resources/tree_open.bmp -------------------------------------------------------------------------------- /plugins/LuaDebugger/ShutdownException.cs: -------------------------------------------------------------------------------- 1 | 2 | /**************************************************************************** 3 | 4 | Tilde 5 | 6 | Copyright (c) 2008 Tantalus Media Pty 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | ****************************************************************************/ 27 | 28 | using System; 29 | using System.Collections.Generic; 30 | using System.Text; 31 | 32 | namespace Tilde.LuaDebugger 33 | { 34 | public class ShutdownException : ApplicationException 35 | { 36 | public ShutdownException() 37 | { 38 | 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /plugins/LuaDebugger/StatusMessageEvent.cs: -------------------------------------------------------------------------------- 1 | 2 | /**************************************************************************** 3 | 4 | Tilde 5 | 6 | Copyright (c) 2008 Tantalus Media Pty 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | ****************************************************************************/ 27 | 28 | using System; 29 | using System.Collections.Generic; 30 | using System.Text; 31 | 32 | namespace Tilde.LuaDebugger 33 | { 34 | public delegate void StatusMessageEventHandler(Target sender, StatusMessageEventArgs args); 35 | 36 | public class StatusMessageEventArgs 37 | { 38 | public StatusMessageEventArgs(string message) 39 | { 40 | mMessage = message; 41 | } 42 | 43 | public string Message 44 | { 45 | get { return mMessage; } 46 | } 47 | 48 | private string mMessage; 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /plugins/LuaDebugger/TargetDisconnectedEvent.cs: -------------------------------------------------------------------------------- 1 | 2 | /**************************************************************************** 3 | 4 | Tilde 5 | 6 | Copyright (c) 2008 Tantalus Media Pty 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | ****************************************************************************/ 27 | 28 | using System; 29 | using System.Collections.Generic; 30 | using System.Text; 31 | 32 | namespace Tilde.LuaDebugger 33 | { 34 | public delegate void TargetDisconnectedEventHandler(Target target, TargetDisconnectedEventArgs args); 35 | 36 | public class TargetDisconnectedEventArgs 37 | { 38 | public TargetDisconnectedEventArgs() 39 | { 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /plugins/LuaDebugger/TargetException.cs: -------------------------------------------------------------------------------- 1 | 2 | /**************************************************************************** 3 | 4 | Tilde 5 | 6 | Copyright (c) 2008 Tantalus Media Pty 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | ****************************************************************************/ 27 | 28 | using System; 29 | using System.Collections.Generic; 30 | using System.Text; 31 | 32 | namespace Tilde.LuaDebugger 33 | { 34 | public class TargetException : ApplicationException 35 | { 36 | public TargetException() 37 | { 38 | } 39 | 40 | public TargetException(String message) 41 | : base(message) 42 | { 43 | } 44 | 45 | public TargetException(String message, Exception inner) 46 | : base(message, inner) 47 | { 48 | 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /plugins/LuaDebugger/TargetState.cs: -------------------------------------------------------------------------------- 1 | 2 | /**************************************************************************** 3 | 4 | Tilde 5 | 6 | Copyright (c) 2008 Tantalus Media Pty 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | ****************************************************************************/ 27 | 28 | using System; 29 | using System.Collections.Generic; 30 | using System.Text; 31 | 32 | namespace Tilde.LuaDebugger 33 | { 34 | public enum TargetState 35 | { 36 | Connected, // Connected but the machine hasn't been started yet 37 | Breaked, // Machine has stopped (hit a breakpoint) 38 | Error, // Machine has stopped because of an error 39 | Running, // Machine is running 40 | Finished, // Machine has finished running 41 | Disconnected // Disconnected from machine 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /plugins/LuaDebugger/ThreadUpdateEvent.cs: -------------------------------------------------------------------------------- 1 | 2 | /**************************************************************************** 3 | 4 | Tilde 5 | 6 | Copyright (c) 2008 Tantalus Media Pty 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | ****************************************************************************/ 27 | 28 | using System; 29 | using System.Collections.Generic; 30 | using System.Text; 31 | 32 | namespace Tilde.LuaDebugger 33 | { 34 | public delegate void ThreadUpdateEventHandler(Target sender, ThreadUpdateEventArgs args); 35 | 36 | public class ThreadUpdateEventArgs 37 | { 38 | public ThreadUpdateEventArgs(ThreadDetails [] threads) 39 | { 40 | mThreads = threads; 41 | } 42 | 43 | public ThreadDetails[] Threads 44 | { 45 | get { return mThreads; } 46 | } 47 | 48 | private ThreadDetails[] mThreads; 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /plugins/LuaDebugger/ValueCachedEvent.cs: -------------------------------------------------------------------------------- 1 | 2 | /**************************************************************************** 3 | 4 | Tilde 5 | 6 | Copyright (c) 2008 Tantalus Media Pty 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | ****************************************************************************/ 27 | 28 | using System; 29 | using System.Collections.Generic; 30 | using System.Text; 31 | 32 | namespace Tilde.LuaDebugger 33 | { 34 | public delegate void ValueCachedEventHandler(Target target, ValueCachedEventArgs args); 35 | 36 | public class ValueCachedEventArgs 37 | { 38 | public ValueCachedEventArgs(LuaValue value, string desc) 39 | { 40 | m_value = value; 41 | m_desc = desc; 42 | } 43 | 44 | public LuaValue Value 45 | { 46 | get { return m_value; } 47 | } 48 | 49 | public string Description 50 | { 51 | get { return m_desc; } 52 | } 53 | 54 | private LuaValue m_value; 55 | private string m_desc; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /plugins/LuaSocketConnection/LuaSocketConnectionPlugin.cs: -------------------------------------------------------------------------------- 1 | 2 | /**************************************************************************** 3 | 4 | Tilde 5 | 6 | Copyright (c) 2008 Tantalus Media Pty 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | ****************************************************************************/ 27 | 28 | using System; 29 | using System.Collections.Generic; 30 | using System.Text; 31 | using Tilde.Framework.Controller; 32 | 33 | namespace Tilde.LuaSocketConnection 34 | { 35 | class LuaSocketConnectionPlugin : IPlugin 36 | { 37 | #region IPlugin Members 38 | 39 | void IPlugin.Initialise(IManager manager) 40 | { 41 | } 42 | 43 | #endregion 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /plugins/LuaSocketConnection/SocketHostInfo.cs: -------------------------------------------------------------------------------- 1 | 2 | /**************************************************************************** 3 | 4 | Tilde 5 | 6 | Copyright (c) 2008 Tantalus Media Pty 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | ****************************************************************************/ 27 | 28 | using System; 29 | using System.Collections.Generic; 30 | using System.Text; 31 | using Tilde.LuaDebugger; 32 | 33 | namespace Tilde.LuaSocketConnection 34 | { 35 | public class SocketHostInfo : HostInfo 36 | { 37 | public SocketHostInfo(SocketTransport transport, string host, int port) 38 | : base(transport, host + ":" + port.ToString()) 39 | { 40 | mHost = host; 41 | mPort = port; 42 | } 43 | 44 | public override string ToString() 45 | { 46 | return mHost + ":" + mPort.ToString(); 47 | } 48 | 49 | public string mHost; 50 | public int mPort; 51 | }; 52 | } 53 | -------------------------------------------------------------------------------- /source/CorePlugins/CanvasControl/CanvasItemCollection.cs: -------------------------------------------------------------------------------- 1 | 2 | /**************************************************************************** 3 | 4 | Tilde 5 | 6 | Copyright (c) 2008 Tantalus Media Pty 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | ****************************************************************************/ 27 | 28 | using System; 29 | using System.Collections.Generic; 30 | using System.Text; 31 | 32 | namespace Tilde.CorePlugins.CanvasControl 33 | { 34 | public class CanvasItemCollection : List 35 | { 36 | public CanvasItemCollection() 37 | { 38 | 39 | } 40 | } 41 | 42 | } 43 | -------------------------------------------------------------------------------- /source/CorePlugins/Properties/FindResultsTemplate.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 13 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /source/CorePlugins/TextEditor/Properties/SciTE.properties: -------------------------------------------------------------------------------- 1 | # SciTE.properties is the per directory local options file and can be used to 2 | # override settings made in SciTEGlobal.properties, SciTEUser.properties and 3 | # SciTEDirectory.properties. 4 | command.build.directory.*.cxx=..\win32 5 | command.build.directory.*.h=..\win32 6 | command.build.*.cxx=nmake -f scite.mak DEBUG=1 QUIET=1 7 | command.build.*.h=nmake -f scite.mak DEBUG=1 QUIET=1 8 | command.go.*.cxx=..\bin\SciTE 9 | command.go.*.h=..\bin\SciTE 10 | command.go.needs.*.cxx=cmd /c cd ..\win32 && nmake -f scite.mak DEBUG=1 QUIET=1 11 | -------------------------------------------------------------------------------- /source/CorePlugins/TextEditor/Properties/SciTEGlobal.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/source/CorePlugins/TextEditor/Properties/SciTEGlobal.properties -------------------------------------------------------------------------------- /source/CorePlugins/TextEditor/Properties/Tilde.properties: -------------------------------------------------------------------------------- 1 | 2 | # Load the rest of the SciTE properties 3 | import SciTEGlobal 4 | 5 | # Set up tabs and indentation 6 | tabsize=4 7 | indent.size=4 8 | use.tabs=1 9 | tabbar.visible=1 10 | indent.automatic=1 11 | indent.opening=0 12 | indent.closing=0 13 | 14 | use.tabs.*.py=0 15 | 16 | # Set up fonts 17 | font.monospace=font:Courier New,size:9 18 | 19 | 20 | # Add our functions to the lua syntax highlighting 21 | 22 | keywords4.$(file.patterns.lua)=keywords4.$(file.patterns.lua) thread.create thread.run thread.kill thread.sleep, thread.defer, thread.yieldany 23 | 24 | 25 | 26 | api.$(file.patterns.lua)=lualib5_annot.api 27 | calltip.lua.word.characters=.:$(word.chars.lua) 28 | calltip.lua.end.definition=) 29 | -------------------------------------------------------------------------------- /source/CorePlugins/TextEditor/Properties/abbrev.properties: -------------------------------------------------------------------------------- 1 | # Global abbreviations file for SciTE 2 | # Place this file in your home directory, that is, the same directory 3 | # as the user options file. 4 | # Contains a list of entries of the form abbreviation=expansion 5 | # Type the abbreviation and press Ctrl+B to insert the expansion 6 | # The '|' marks the position the caret will be after expansion. 7 | 8 | #main=int main(int argc, char *argv[]) {\n|\n} 9 | #i=if (|) {\n\n} 10 | -------------------------------------------------------------------------------- /source/CorePlugins/TextEditor/Properties/css.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/source/CorePlugins/TextEditor/Properties/css.properties -------------------------------------------------------------------------------- /source/CorePlugins/TextEditor/Properties/erlang.properties: -------------------------------------------------------------------------------- 1 | # Define SciTE settings for Erlang files. 2 | 3 | # M: Erlang M-Files 4 | file.patterns.erlang=*.erl 5 | 6 | # M: Erlang M-Files 7 | filter.erlang=Erlang (erl)|$(file.patterns.erlang)| 8 | 9 | lexer.$(file.patterns.erlang)=erlang 10 | 11 | keywordclass.erlang=\ 12 | after begin case catch cond end fun if let of query receive when \ 13 | define record export import include include_lib ifdef ifndef else endif undef \ 14 | apply attribute call do in letrec module primop try 15 | 16 | 17 | keywords.$(file.patterns.erlang)=$(keywordclass.erlang) 18 | 19 | comment.block.erlang=%~ 20 | 21 | # Erlang styles 22 | # White space 23 | style.erlang.0=fore:#000000 24 | # Comment 25 | style.erlang.1=$(colour.code.comment.line),$(font.code.comment.line) 26 | # Variable 27 | style.erlang.2=fore:#800040 28 | #$(colour.preproc) 29 | # Number 30 | style.erlang.3=$(colour.number) 31 | # Keyword 32 | style.erlang.4=$(colour.keyword),bold 33 | # String 34 | style.erlang.5=$(colour.string) 35 | # Operator 36 | style.erlang.6=$(colour.operator),bold 37 | # Atom 38 | style.erlang.7=fore:#000080 39 | # function name 40 | style.erlang.8=fore:#ff0000 41 | # Character 42 | style.erlang.9=$(colour.char) 43 | # Macro 44 | style.erlang.10=fore:#604000,bold 45 | # Record 46 | style.erlang.11=fore:#604000,bold 47 | # Separator 48 | style.erlang.12=$(colour.error) 49 | # Node name 50 | style.erlang.13=fore:#00a060,bold 51 | # parse error 52 | style.erlang.31=$(colour.error) 53 | 54 | -------------------------------------------------------------------------------- /source/CorePlugins/TextEditor/Properties/gap.properties: -------------------------------------------------------------------------------- 1 | # Define SciTE settings for GAP files. 2 | 3 | file.patterns.gap=*.g;*.gd;*.gi 4 | 5 | # GAP files 6 | filter.gap=Gap (g gi gd)|$(file.patterns.gap)| 7 | 8 | lexer.$(file.patterns.gap)=gap 9 | 10 | keywords.$(file.patterns.gap)=and break continue do elif else end fi for function \ 11 | if in local mod not od or quit rec repeat return then until while QUIT 12 | 13 | keywords2.$(file.patterns.gap)=false true IsBound Unbind TryNextMethod \ 14 | Info Assert SaveWorkspace fail 15 | 16 | #keywords3.$(file.patterns.gap) 17 | 18 | comment.block.gap=#~ 19 | 20 | # GAP styles 21 | # White space 22 | style.gap.0=fore:#808080 23 | # Identifiers 24 | style.gap.1= 25 | # Keywords 26 | style.gap.2=$(colour.keyword),bold 27 | # Keywords 2 28 | style.gap.3=$(colour.keyword) 29 | # Keywords 3 30 | style.gap.4=$(colour.keyword) 31 | # Keywords 4 32 | style.gap.5=$(colour.keyword) 33 | # Strings 34 | style.gap.6=$(colour.string) 35 | # Characters 36 | style.gap.7=$(colour.char) 37 | # Operators 38 | style.gap.8=$(colour.operator),bold 39 | # Comment 40 | style.gap.9=$(colour.code.comment.line) 41 | # Numbers 42 | style.gap.10=$(colour.number) 43 | # End of line where string is not closed 44 | style.gap.11=fore:#000000,$(font.monospace),back:#E0C0E0,eolfilled 45 | 46 | # Braces are only matched in operator style 47 | braces.gap.style=8 -------------------------------------------------------------------------------- /source/CorePlugins/TextEditor/Properties/latex.properties: -------------------------------------------------------------------------------- 1 | # Define SciTE settings for LaTeX files. 2 | 3 | file.patterns.latex=*.tex;*.sty 4 | 5 | filter.latex=LaTeX (tex sty)|$(file.patterns.latex)| 6 | 7 | lexer.$(file.patterns.latex)=latex 8 | 9 | # LaTeX styles 10 | # White space 11 | style.latex.0=fore:#000000 12 | # Command 13 | style.latex.1=fore:#AA0000,bold 14 | # Tag 15 | style.latex.2=fore:#880088,bold 16 | # Math 17 | style.latex.3=fore:#0000FF 18 | # Comment 19 | style.latex.4=fore:#00AA00 20 | 21 | command.compile.*.tex=latex $(FileNameExt) 22 | command.build.*.tex=dvips -f $(FileName).dvi > $(FileName).ps 23 | command.go.*.tex=dvips $(FileName).dvi 24 | 25 | command.name.0.*.tex=View 26 | command.0.*.tex=xdvi $(FileName).dvi 27 | command.name.1.*.tex=View PS 28 | command.1.*.tex=gv $(FileName).ps 29 | -------------------------------------------------------------------------------- /source/CorePlugins/TextEditor/Properties/lot.properties: -------------------------------------------------------------------------------- 1 | # Define SciTE settings for lot files. 2 | file.patterns.lot=*.lot 3 | 4 | filter.lot=Lot (lot)|$(file.patterns.lot)| 5 | 6 | lexer.$(file.patterns.lot)=lot 7 | 8 | word.characters.$(file.patterns.lot)=$(chars.alpha)$(chars.numeric) 9 | 10 | # LOT FileStyles 11 | # Default 12 | style.lot.0=fore:#000000 13 | # header 14 | style.lot.1=back:#00F0FF,eolfilled 15 | # break 16 | style.lot.2=back:#FFFF00,eolfilled 17 | # set 18 | style.lot.3=fore:#FFFFFF,back:#0000FF,bold,eolfilled 19 | # pass 20 | style.lot.4=back:#00FF00,eolfilled 21 | # fail 22 | style.lot.5=back:#FF0000,eolfilled,bold 23 | # abort 24 | style.lot.6=back:#0000FF,bold,eolfilled 25 | -------------------------------------------------------------------------------- /source/CorePlugins/TextEditor/Properties/rebol.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/source/CorePlugins/TextEditor/Properties/rebol.properties -------------------------------------------------------------------------------- /source/CorePlugins/TextEditor/Properties/smalltalk.properties: -------------------------------------------------------------------------------- 1 | # Define SciTE settings for Smalltalk files. 2 | 3 | file.patterns.smalltalk=*.st 4 | 5 | filter.smalltalk=Smalltalk (.st)|$(file.patterns.smalltalk)| 6 | 7 | lexer.$(file.patterns.smalltalk)=smalltalk 8 | 9 | keywords.$(file.patterns.smalltalk)=\ 10 | ifTrue: ifFalse: whileTrue: whileFalse: ifNil: ifNotNil: whileTrue whileFalse repeat isNil notNil 11 | 12 | # Styles 13 | 14 | # Default 15 | style.smalltalk.0= 16 | # String 17 | style.smalltalk.1=$(colour.string),eolfilled 18 | # Number 19 | style.smalltalk.2=$(colour.number) 20 | # Comment 21 | style.smalltalk.3=$(colour.code.comment.box) 22 | # Symbol 23 | style.smalltalk.4=fore:#800080 24 | # Binary 25 | style.smalltalk.5=$(colour.operator) 26 | # Boolean 27 | style.smalltalk.6=$(colour.keyword),bold 28 | # self 29 | style.smalltalk.7=$(colour.keyword),bold 30 | # super 31 | style.smalltalk.8=$(colour.keyword),bold 32 | # nil 33 | style.smalltalk.9=$(colour.keyword),bold 34 | # Global 35 | style.smalltalk.10=bold 36 | # Return 37 | style.smalltalk.11=fore:#A00000,bold 38 | # Special 39 | style.smalltalk.12=bold 40 | # KwSend 41 | style.smalltalk.13=fore:#008000 42 | # Assignment 43 | style.smalltalk.14=bold 44 | # Character 45 | style.smalltalk.15=$(colour.char) 46 | # Special selector 47 | style.smalltalk.16=$(colour.keyword),bold -------------------------------------------------------------------------------- /source/CorePlugins/TextEditor/Properties/yaml.properties: -------------------------------------------------------------------------------- 1 | # Define SciTE settings for YAML files. 2 | 3 | # associate YAML file patter with the YAML lexer 4 | file.patterns.yaml=*.yaml;*.yml 5 | filter.yaml=YAML (yaml)|$(file.patterns.yaml)| 6 | lexer.$(file.patterns.yaml)=yaml 7 | 8 | # YAML requires spaces for tabs 9 | tabsize.$(file.patterns.yaml)=2 10 | indent.size.$(file.patterns.yaml)=2 11 | use.tabs.$(file.patterns.yaml)=0 12 | 13 | # YAML comment character 14 | comment.block.yaml=#~ 15 | 16 | # YAML convertible values 17 | keywords.$(file.patterns.yaml)=true false yes no 18 | 19 | # YAML font styles 20 | # default 21 | style.yaml.0=$(font.text),fore:#000000 22 | # comment line 23 | style.yaml.1=$(font.comment),fore:#008800 24 | # value identifier 25 | style.yaml.2=$(font.base),fore:#000088,bold 26 | # keyword value 27 | style.yaml.3=$(font.base),fore:#880088 28 | # numerical value 29 | style.yaml.4=$(font.base),fore:#880000 30 | # reference/repeating value 31 | style.yaml.5=$(font.base),fore:#008888 32 | # document delimiting line 33 | style.yaml.6=$(font.comment),fore:#FFFFFF,bold,back:#000088,eolfilled 34 | # text block marker 35 | style.yaml.7=$(font.text),fore:#333366 36 | # syntax error marker 37 | style.yaml.8=$(font.text),fore:#FFFFFF,italics,bold,back:#FF0000,eolfilled 38 | -------------------------------------------------------------------------------- /source/CorePlugins/Versioning/IVersionController.cs: -------------------------------------------------------------------------------- 1 | 2 | /**************************************************************************** 3 | 4 | Tilde 5 | 6 | Copyright (c) 2008 Tantalus Media Pty 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | ****************************************************************************/ 27 | 28 | using System; 29 | using System.Collections.Generic; 30 | using System.Text; 31 | 32 | namespace Tilde.CorePlugins.Versioning 33 | { 34 | public class IVersionController 35 | { 36 | 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /source/Framework/Controller/IPlugin.cs: -------------------------------------------------------------------------------- 1 | 2 | /**************************************************************************** 3 | 4 | Tilde 5 | 6 | Copyright (c) 2008 Tantalus Media Pty 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | ****************************************************************************/ 27 | 28 | using System; 29 | using System.Collections.Generic; 30 | using System.Text; 31 | 32 | using Tilde.Framework.Controller; 33 | 34 | namespace Tilde.Framework.Controller 35 | { 36 | public interface IPlugin 37 | { 38 | void Initialise(IManager manager); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /source/Framework/Controller/ITransaction.cs: -------------------------------------------------------------------------------- 1 | 2 | /**************************************************************************** 3 | 4 | Tilde 5 | 6 | Copyright (c) 2008 Tantalus Media Pty 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | ****************************************************************************/ 27 | 28 | using System; 29 | using System.Collections.Generic; 30 | using System.Text; 31 | 32 | namespace Tilde.Framework.Controller 33 | { 34 | public abstract class ITransaction 35 | { 36 | public abstract void Commit(); 37 | public abstract void Rollback(); 38 | 39 | public abstract String Label 40 | { 41 | get; 42 | } 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /source/Framework/Controller/IVersionController.cs: -------------------------------------------------------------------------------- 1 | 2 | /**************************************************************************** 3 | 4 | Tilde 5 | 6 | Copyright (c) 2008 Tantalus Media Pty 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | ****************************************************************************/ 27 | 28 | using System; 29 | using System.Collections.Generic; 30 | using System.Text; 31 | using System.Xml.Serialization; 32 | 33 | namespace Tilde.Framework.Controller 34 | { 35 | public delegate void MessageEventHandler(IVersionController sender, string message); 36 | 37 | public interface IVersionController : ICloneable 38 | { 39 | event MessageEventHandler Message; 40 | 41 | bool IsVersionControlled(string fileName); 42 | bool IsCheckedOut(string fileName); 43 | 44 | bool Checkout(string fileName); 45 | 46 | string ConfigurationMessage 47 | { 48 | get; 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /source/Framework/Model/ProjectDocumentCollection.cs: -------------------------------------------------------------------------------- 1 | 2 | /**************************************************************************** 3 | 4 | Tilde 5 | 6 | Copyright (c) 2008 Tantalus Media Pty 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | ****************************************************************************/ 27 | 28 | using System; 29 | using System.Collections.Generic; 30 | using System.Text; 31 | 32 | namespace Tilde.Framework.Model 33 | { 34 | public class ProjectDocumentCollection : ListCollection 35 | { 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /source/Framework/Model/ReadOnlyDocumentException.cs: -------------------------------------------------------------------------------- 1 | 2 | /**************************************************************************** 3 | 4 | Tilde 5 | 6 | Copyright (c) 2008 Tantalus Media Pty 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | ****************************************************************************/ 27 | 28 | using System; 29 | using System.Collections.Generic; 30 | using System.Text; 31 | 32 | namespace Tilde.Framework.Model 33 | { 34 | public class ReadOnlyDocumentException : ApplicationException 35 | { 36 | public ReadOnlyDocumentException(Document doc) 37 | : base("An attempt was made to modify a read-only document (" + doc.FileName + ")") 38 | { 39 | } 40 | 41 | public ReadOnlyDocumentException(string message) 42 | : base(message) 43 | { 44 | } 45 | 46 | public ReadOnlyDocumentException(string message, Exception inner) 47 | : base(message, inner) 48 | { 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /source/Framework/ReflectionUtils.cs: -------------------------------------------------------------------------------- 1 | 2 | /**************************************************************************** 3 | 4 | Tilde 5 | 6 | Copyright (c) 2008 Tantalus Media Pty 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | ****************************************************************************/ 27 | 28 | using System; 29 | using System.Collections.Generic; 30 | using System.Text; 31 | using System.Reflection; 32 | 33 | namespace Tilde.Framework 34 | { 35 | public class ReflectionUtils 36 | { 37 | public static Type FindType(string name) 38 | { 39 | if (name != null) 40 | { 41 | Type result; 42 | 43 | if ((result = Type.GetType(name)) != null) 44 | return result; 45 | 46 | foreach (Assembly assembly in AppDomain.CurrentDomain.GetAssemblies()) 47 | { 48 | if ((result = assembly.GetType(name)) != null) 49 | return result; 50 | } 51 | } 52 | 53 | return null; 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /source/Setup/Debug/Tilde-0.5-setup.msi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/source/Setup/Debug/Tilde-0.5-setup.msi -------------------------------------------------------------------------------- /source/Setup/Debug/setup.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/source/Setup/Debug/setup.exe -------------------------------------------------------------------------------- /source/Setup/Release/Tilde-0.5-setup.msi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/source/Setup/Release/Tilde-0.5-setup.msi -------------------------------------------------------------------------------- /source/Setup/Release/setup.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/source/Setup/Release/setup.exe -------------------------------------------------------------------------------- /source/TildeApp/AboutWindow.Designer.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/source/TildeApp/AboutWindow.Designer.cs -------------------------------------------------------------------------------- /source/TildeApp/Icons/Document.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/source/TildeApp/Icons/Document.bmp -------------------------------------------------------------------------------- /source/TildeApp/Icons/Document_16x16.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/source/TildeApp/Icons/Document_16x16.bmp -------------------------------------------------------------------------------- /source/TildeApp/Icons/FolderClosed.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/source/TildeApp/Icons/FolderClosed.bmp -------------------------------------------------------------------------------- /source/TildeApp/Icons/FolderClosed_16x16.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/source/TildeApp/Icons/FolderClosed_16x16.bmp -------------------------------------------------------------------------------- /source/TildeApp/Icons/FolderOpen.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/source/TildeApp/Icons/FolderOpen.bmp -------------------------------------------------------------------------------- /source/TildeApp/Icons/FolderOpen_16x16.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/source/TildeApp/Icons/FolderOpen_16x16.bmp -------------------------------------------------------------------------------- /source/TildeApp/Icons/NoteOverlay_16x16.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/source/TildeApp/Icons/NoteOverlay_16x16.bmp -------------------------------------------------------------------------------- /source/TildeApp/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Tilde.TildeApp.Properties { 12 | 13 | 14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")] 16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { 17 | 18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 19 | 20 | public static Settings Default { 21 | get { 22 | return defaultInstance; 23 | } 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /source/TildeApp/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /source/TildeApp/Tilde.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /source/TildeApp/Tilde.exe.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | Tantalus Integrated Lua Development Environment 9 | 10 | 11 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /source/TildeApp/Tilde.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjensen/lua-tilde/95f1ac9ab72c6d1fc7ac16799e9a6758522ac77e/source/TildeApp/Tilde.ico --------------------------------------------------------------------------------