figment
e729a02051
Python Converter Enhancement
...
- Remove ref and out parameters from method declarations
12 years ago
figment
4d178855bb
Suppress break statements while generating switch/case
12 years ago
figment
219a542347
Add AppendLine() after writing postfix/prefix statements
12 years ago
figment
723e3e6d39
Python Converter Enhancements
...
- Move prefix/postfix assignment to previous statement
- Handle out,ref arguments on method calls
- Generate backing fields for Auto-Implemented Properties
- Create Class with class fields for Enum
- Generate isinstance for type checks
- Fix empty condition for loops
- Generate code for locking statements
- Generate pythonic lambda statements where possible
- Generate anonymous and complex lambda
- Fix simple += assignments which are not event handlers
- Handle using statements
12 years ago
Matt Ward
5898c09238
Fix missing array type when converting VB.NET multiple variables on a single line to Python.
14 years ago
Matt Ward
fdd4223116
Fix missing array type when converting VB.NET multiple fields on a single line to Python.
14 years ago
Matt Ward
bdd0f33cda
Support converting multiple class fields defined on one line when converting to Python.
14 years ago
Matt Ward
8926ba5a93
Support converting VB.NET exit statements to Python.
14 years ago
Matt Ward
fba3a7a46d
Supporting converting multiple variable assignments on a single line to Python.
14 years ago
Matt Ward
b2e0f592f7
Support converting VB.NET for next loops to Python.
14 years ago
Daniel Grunwald
f5780c2944
Apply new file headers
15 years ago
Matt Ward
e1e66f257f
IronPython addin now using AvalonEdit.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5986 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Siegfried Pammer
d9f98af73d
fixed build
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/vbnet@5804 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Siegfried Pammer
2fd5c0d873
replaced IndexerDeclaration by PropertyDeclaration with IsIndexer property (uses Default modifier)
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5748 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Matt Ward
341be44215
Class base types now converted to python.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5340 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Matt Ward
636ccb5f6e
Python code converter now attempts to detect property references and adds a this reference.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4763 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Matt Ward
6d6589aa7d
Python code converter now converts type reference expressions.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4762 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Matt Ward
7b77da2dc0
Python code converter now supports read-only and write-only property conversions.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4761 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Matt Ward
ff0f641269
Fixed bug when converting references to 'this' and event handlers to python.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4444 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Matt Ward
a65729ccd1
Fixed null reference exception when converting a constructor to python.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4443 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Matt Ward
d810b90ab9
Python code converter now supports xml doc comments for constructors. Xml doc comments that are not before a class, method or constructor declaration are converted to single line python comments.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4319 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Matt Ward
e9fa0df4cc
Convert class and method xml doc comments to python docstrings.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4313 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Matt Ward
067cfb1532
Added support for multiline comments in the python code converter.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4312 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Matt Ward
5f8687261b
Single line comments now converted from C#, VB.NET to Python.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4309 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Matt Ward
9e9c0c657e
Add 'import clr' if clr.GetType used in converted python code.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4261 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Matt Ward
c487ec1948
Xor operator now converted to python correctly.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4259 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Matt Ward
ef6155db5d
Python converter no longer uses 'self' when calling a method inside a static method.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4258 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Matt Ward
7319925fef
Python code converter now adds code to call the project's main entry method.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4257 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Matt Ward
5a90f84c1b
Python code converter now converts 'foreach (string key in dictionary.Keys)' statements correctly.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4256 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Matt Ward
4f56a35d20
Now using short type names (e.g. Array instead of System.Array) in generated python code.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4255 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Matt Ward
eb5ba0db01
Convert System.String and System.Int32 to 'str' and 'int' in python.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4254 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Matt Ward
723584bcfc
New line added between import statements and class definitions when converting code to Python.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4253 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Matt Ward
34fd498390
Break statements no longer generated when converting a switch statement to python.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4217 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Matt Ward
f8b00cb742
Python code converter now specifies types when creating an instance of a generic.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4172 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Matt Ward
d8ca9a66b1
Namespace imports now import all classes on conversion to IronPython.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4152 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Matt Ward
71711e3c7d
MainFile property now set when converting a project to IronPython.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4151 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Matt Ward
10f4b5965c
Boolean variables now correctly converted to python.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4146 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Matt Ward
bbe48609ab
Added support for ContextMenuStrips in the python forms designer.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4145 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Matt Ward
3bc847b185
Static class methods now use staticmethod when converted to Python.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4070 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Matt Ward
1751aa4bdc
Typeof expressions and for each loops using a method call now converted to Python.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4067 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Matt Ward
168d0d7716
Event handlers with EventHandler object creation now converted to Python.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4066 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Matt Ward
963e02f337
Can now convert C# and VB.NET projects to Python.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4063 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Matt Ward
21a4c7e222
Python code converter no longer using CodeDom.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@3727 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
17 years ago
Daniel Grunwald
a9a5a21b9a
Fixed SD2-1481: C# parser does not support extern aliases
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@3718 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
17 years ago
Daniel Grunwald
356b72f930
Fixed handling of query continuations.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@3662 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
17 years ago
Daniel Grunwald
c816abee89
NRefactory: Remove TypeReference.SystemType. TypeReference.Type now always represents the system type for primitive types.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@3660 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
17 years ago
Matt Ward
035e66dcba
Update to IronPython 2.0 beta 4
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@3420 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
17 years ago
Daniel Grunwald
8ac9a36f86
Fixed build.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@3418 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
17 years ago
Daniel Grunwald
f5913a8d1d
Worked on lambda expression support.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@3010 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Matt Ward
7724781cf6
Added support for casts and class method calls in the python code converter.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2937 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago