Commit Graph

708 Commits

Author SHA1 Message Date
michael
c7523c6236 * Patch from Mattias Gaertner with support for
- class forward declaration
  - alias class, type alias class
  - ancestor, TObject as default
  - virtual, override, abstract
  - property read, write, stored
  - methods
  - self
  - overloaded procs with class as argument

git-svn-id: trunk@34555 -
2016-09-22 11:41:09 +00:00
michael
a55c176bef * Patch from Mattias Gaertner: Record support, detect duplicate identifiers, bug fixes
git-svn-id: trunk@34520 -
2016-09-13 08:01:37 +00:00
michael
d876d1d1e7 * Patch from Mattias Gaertner:
New conversion of for loop:

  i=<StartExpr>;
  for(var $loopend=<EndExpr>; i<=$loopend; i++){}

  Because StartExpr and EndExpr must be executed exactly once.

git-svn-id: trunk@34430 -
2016-09-05 05:57:51 +00:00
michael
0ab6477081 * Patch from Mattias Gaertner:
pasresolver.pp: new unit, implements TPasResolver, already supports simple
  types, vars, const, arguments, some expressions, calls and used units.

  tcresolver: testing TPasResolver, 

  pastree: fixed some Free with Release calls, added comments, added ForEachCall methods.

  pscanner: added option po_resolvestandardtypes. Making built-in types configurable.

  pparser: added FinishScope, fixed some Free calls with Release, check proc default values, fixed some typos

  Updated tests.

  fppas2js: property UseLowerCase to choose between lowercase and declaration case (default true), 
  using TResolver data, added msg strings, improved error handling, added converter contexts, 
  function results, local vars, unit vars

git-svn-id: trunk@34357 -
2016-08-21 12:04:36 +00:00
michael
1228b043c0 * Patch from Mattias Gaertner
-init simple variables
 -init function result variable and return function result variable
 -unit initialization
 -program main begin..end
 -CreateMemberExpression: members are now passed in order
 -convert unit and program
 -interface functions and vars are now declared with 'this.'

git-svn-id: trunk@34227 -
2016-07-29 14:27:02 +00:00
michael
d8266a708f * Patch from Mattias Gaertner to make exception object configurable, fix tests
git-svn-id: trunk@34218 -
2016-07-28 11:45:41 +00:00
michael
912c024f01 * Implement pascal class conversion test, from Mohamed Elemam
git-svn-id: trunk@34038 -
2016-06-30 17:52:22 +00:00
michael
0c50662156 * Initial version of pascal-to-javascript converter
git-svn-id: trunk@27474 -
2014-04-05 09:06:05 +00:00