| 1 | ------------------------------------------------------------------------------- |
|---|
| 2 | The Cobra Programming Language |
|---|
| 3 | Copyright (C) 2003-2010 by Cobra Language LLC. All Rights Reserved. |
|---|
| 4 | ------------------------------------------------------------------------------- |
|---|
| 5 | |
|---|
| 6 | ** You have a copy of the source code (or you wouldn't be seeing this message). |
|---|
| 7 | ** If you are new to working with the Cobra implementation, then see |
|---|
| 8 | ** ReadMe.text and ImplementationNotes.text in the Developer directory. |
|---|
| 9 | |
|---|
| 10 | The term "Cobra" is used herein to refer to "The Cobra Programming Language". |
|---|
| 11 | |
|---|
| 12 | |
|---|
| 13 | Version........ @@ |
|---|
| 14 | Release Date... @@ |
|---|
| 15 | Platform....... .NET 2.0 / Mono 2.6 |
|---|
| 16 | Status......... beta |
|---|
| 17 | Home Page...... http://Cobra-Language.com/ |
|---|
| 18 | |
|---|
| 19 | The term "Cobra" is used herein to refer to "The Cobra Programming Language" |
|---|
| 20 | |
|---|
| 21 | |
|---|
| 22 | About Cobra |
|---|
| 23 | ------------------------------------------------------------------------------- |
|---|
| 24 | Cobra is a high-performance, rapid-development programming language. |
|---|
| 25 | It combines features from Python, C#, Objective-C, Eiffel and other languages |
|---|
| 26 | in order to boost developer productivity. |
|---|
| 27 | |
|---|
| 28 | Cobra is open source under the MIT license. |
|---|
| 29 | |
|---|
| 30 | See also: http://Cobra-Language.com/docs/why/ |
|---|
| 31 | |
|---|
| 32 | |
|---|
| 33 | Requirements |
|---|
| 34 | ------------------------------------------------------------------------------- |
|---|
| 35 | Windows, Mac or Linux. |
|---|
| 36 | |
|---|
| 37 | If you're on a Unix-like system (Mac, Linux, etc.), you have the wrong package. |
|---|
| 38 | This one is for Microsoft Windows systems. |
|---|
| 39 | See http://Cobra-Language.com/downloads/ for Unix-like packages. |
|---|
| 40 | |
|---|
| 41 | If you're on Windows, you have the wrong package. |
|---|
| 42 | This one is for Unix-like systems. |
|---|
| 43 | See http://Cobra-Language.com/downloads/ for Windows packages. |
|---|
| 44 | |
|---|
| 45 | Microsoft .NET 2.0 - Cobra can be used with or without the SDK installed. |
|---|
| 46 | -or- |
|---|
| 47 | Novell Mono 2.6: http://www.mono-project.com/ |
|---|
| 48 | |
|---|
| 49 | .NET: http://www.microsoft.com/downloads/ |
|---|
| 50 | http://msdn2.microsoft.com/en-us/netframework/default.aspx |
|---|
| 51 | Mono: http://www.mono-project.com/ |
|---|
| 52 | |
|---|
| 53 | |
|---|
| 54 | Installation |
|---|
| 55 | ------------------------------------------------------------------------------- |
|---|
| 56 | You can put Cobra wherever you like in your file system. |
|---|
| 57 | But here are some tips: |
|---|
| 58 | |
|---|
| 59 | On a Windows system, make a C:\Cobra directory and inside that put Cobra-0.8.0. |
|---|
| 60 | This means you would have: |
|---|
| 61 | |
|---|
| 62 | C:\Cobra\ |
|---|
| 63 | Cobra-0.8.0\ |
|---|
| 64 | bin\ |
|---|
| 65 | Samples\ |
|---|
| 66 | (etc) |
|---|
| 67 | |
|---|
| 68 | Now put a "cobra.bat" somewhere in your PATH such as a C:\bin directory. |
|---|
| 69 | The contents should at least be: |
|---|
| 70 | @"C:\Cobra\Cobra-0.8.0\bin\cobra.exe" %* |
|---|
| 71 | |
|---|
| 72 | You could also try: |
|---|
| 73 | @"C:\Cobra\Cobra-0.8.0\bin\cobra.exe" -color %* |
|---|
| 74 | |
|---|
| 75 | If you would like Cobra to automatically open your editor on the file and line |
|---|
| 76 | number of the first compilation error, try this (or something similar for your |
|---|
| 77 | editor): |
|---|
| 78 | @"C:\Cobra\Cobra-0.8.0\bin\cobra.exe" -color -editor:uedit32_FILE/LINE %* |
|---|
| 79 | |
|---|
| 80 | Now you can: |
|---|
| 81 | * Use Cobra from anywhere. |
|---|
| 82 | * Easily install new versions by putting them in C:\Cobra and |
|---|
| 83 | repointing cobra.bat. |
|---|
| 84 | * Easily "roll back" by repointing cobra.bat to a previous version. |
|---|
| 85 | * Easily find your local copies of the Cobra Samples, How-To's and Reusables. |
|---|
| 86 | |
|---|
| 87 | But on a UNIX/POSIX-type system such as Linux, BSD or Mac, you'll probably want |
|---|
| 88 | to run the 'install' script. There is a comment block inside it with further |
|---|
| 89 | instructions. |
|---|
| 90 | |
|---|
| 91 | |
|---|
| 92 | Running Cobra |
|---|
| 93 | ------------------------------------------------------------------------------- |
|---|
| 94 | On Windows: |
|---|
| 95 | |
|---|
| 96 | To run: |
|---|
| 97 | > cobra MyProgram.cobra |
|---|
| 98 | The source code extension is not required: |
|---|
| 99 | > cobra MyProgram |
|---|
| 100 | To run again: |
|---|
| 101 | > MyProgram.exe |
|---|
| 102 | To just compile: |
|---|
| 103 | > cobra -c MyProgram |
|---|
| 104 | If cobra is not in your path: |
|---|
| 105 | > \path\to\cobra MyProgram |
|---|
| 106 | To learn about all the options: |
|---|
| 107 | > cobra -help |
|---|
| 108 | |
|---|
| 109 | On Unix-like systems: |
|---|
| 110 | |
|---|
| 111 | To run: |
|---|
| 112 | $ cobra MyProgram.cobra |
|---|
| 113 | The source code extension is not required: |
|---|
| 114 | $ cobra MyProgram |
|---|
| 115 | To run again: |
|---|
| 116 | $ mono MyProgram.exe |
|---|
| 117 | To just compile: |
|---|
| 118 | $ cobra -c MyProgram |
|---|
| 119 | To learn about all the options: |
|---|
| 120 | $ cobra -help |
|---|
| 121 | |
|---|
| 122 | |
|---|
| 123 | Learning |
|---|
| 124 | ------------------------------------------------------------------------------- |
|---|
| 125 | See http://Cobra-Language.com/docs/ |
|---|
| 126 | |
|---|
| 127 | Those docs are not currently included in this package, so you have to |
|---|
| 128 | read them online. |
|---|
| 129 | |
|---|
| 130 | And check out the HowTo and Samples subdirectories. You'll find these online, |
|---|
| 131 | and also in this package. |
|---|
| 132 | |
|---|
| 133 | |
|---|
| 134 | Support |
|---|
| 135 | ------------------------------------------------------------------------------- |
|---|
| 136 | Support is readily available and community-driven. |
|---|
| 137 | |
|---|
| 138 | See http://cobra-language.com/trac/cobra/wiki/UserSupport |
|---|
| 139 | |
|---|
| 140 | |
|---|
| 141 | Disclaimer and License |
|---|
| 142 | ------------------------------------------------------------------------------- |
|---|
| 143 | Copyright (c) 2003-2010 by Cobra Language LLC. |
|---|
| 144 | |
|---|
| 145 | Permission is hereby granted, free of charge, to any person |
|---|
| 146 | obtaining a copy of this software and associated documentation |
|---|
| 147 | files (the "Software"), to deal in the Software without |
|---|
| 148 | restriction, including without limitation the rights to use, |
|---|
| 149 | copy, modify, merge, publish, distribute, sublicense, and/or sell |
|---|
| 150 | copies of the Software, and to permit persons to whom the |
|---|
| 151 | Software is furnished to do so, subject to the following |
|---|
| 152 | conditions: |
|---|
| 153 | |
|---|
| 154 | The above copyright notice and this permission notice shall be |
|---|
| 155 | included in all copies or substantial portions of the Software. |
|---|
| 156 | |
|---|
| 157 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
|---|
| 158 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
|---|
| 159 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
|---|
| 160 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
|---|
| 161 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
|---|
| 162 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|---|
| 163 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
|---|
| 164 | OTHER DEALINGS IN THE SOFTWARE. |
|---|
| 165 | |
|---|
| 166 | (Note: That is the MIT-style license, approved by the OSI.) |
|---|