Commit Graph

56 Commits

Author SHA1 Message Date
Mattias Gaertner
70bc4e62ed pas2js: updated compileserver.lpi
git-svn-id: trunk@37904 -
2018-01-04 14:42:25 +00:00
michael
d9f733bada * Re-add Pas2jsLibCompiler to uses clause
git-svn-id: trunk@37881 -
2017-12-30 10:45:24 +00:00
michael
40cc1d3731 * Compile server
git-svn-id: trunk@37874 -
2017-12-29 19:08:29 +00:00
michael
364620fd73 * Use only project file
git-svn-id: trunk@37873 -
2017-12-29 19:07:47 +00:00
michael
00da85bea1 * Correct uses clause
git-svn-id: trunk@37872 -
2017-12-29 19:07:05 +00:00
Mattias Gaertner
9e01c15005 pas2jsL clean up
git-svn-id: trunk@37845 -
2017-12-28 15:11:27 +00:00
michael
73b65f5a15 * Restrict list of OSes to same list as in pastojs package
git-svn-id: trunk@37837 -
2017-12-28 08:57:08 +00:00
michael
4a566ceec1 * Move compiler files to package.
* Separate lib compiler from library file.

git-svn-id: trunk@37835 -
2017-12-27 17:12:19 +00:00
michael
44b2419d5e * Config file in home dir has . prepended on unix
git-svn-id: trunk@37828 -
2017-12-27 09:29:28 +00:00
Mattias Gaertner
df5a9333a7 pas2js: bool switches $hints, $notes, $warnings
git-svn-id: trunk@37823 -
2017-12-26 22:24:05 +00:00
Mattias Gaertner
94b485a56e pas2js: docs
git-svn-id: trunk@37818 -
2017-12-26 14:56:57 +00:00
Mattias Gaertner
3b37083979 pas2js: allow $ScopedEnums
git-svn-id: trunk@37817 -
2017-12-26 14:46:38 +00:00
Mattias Gaertner
c64562e80c pas2js: docs
git-svn-id: trunk@37814 -
2017-12-26 10:48:51 +00:00
Mattias Gaertner
d3553337ca pas2js: doc about enumerators
git-svn-id: trunk@37808 -
2017-12-25 12:02:20 +00:00
Mattias Gaertner
17b4e63d05 pas2jslib: compile with 3.0.4
git-svn-id: trunk@37807 -
2017-12-25 12:02:02 +00:00
Mattias Gaertner
a9bf0ed28c pas2js 0.8.41
git-svn-id: trunk@37806 -
2017-12-25 10:12:10 +00:00
michael
cb4b68b574 * version 40
git-svn-id: trunk@37797 -
2017-12-24 13:55:14 +00:00
michael
68ed736c93 * Add .pas file read callback
git-svn-id: trunk@37794 -
2017-12-24 12:34:31 +00:00
michael
cb46e21bc3 * Correctly observe result of FileRead callback
git-svn-id: trunk@37793 -
2017-12-24 12:33:08 +00:00
Mattias Gaertner
656ddcccf7 pas2js: added OnReadFile hook
git-svn-id: trunk@37792 -
2017-12-24 10:12:59 +00:00
Mattias Gaertner
3165651bfd pas2js: docs
git-svn-id: trunk@37790 -
2017-12-24 09:31:14 +00:00
Mattias Gaertner
25d44b3637 pas2js: docs: class constructor
git-svn-id: trunk@37784 -
2017-12-22 18:30:05 +00:00
Mattias Gaertner
e00e7d9cfd pas2js: fixed handlign error on first token of used unit
git-svn-id: trunk@37782 -
2017-12-21 22:24:06 +00:00
Mattias Gaertner
b307930443 pas2js: updated cfg
git-svn-id: trunk@37779 -
2017-12-21 22:08:37 +00:00
Mattias Gaertner
8edb5541a3 pas2js: comment
git-svn-id: trunk@37769 -
2017-12-20 00:34:56 +00:00
Mattias Gaertner
effbafabd2 pas2js: fixed globbing * ignoring . and ..
git-svn-id: trunk@37765 -
2017-12-19 11:46:35 +00:00
Mattias Gaertner
8d36c0d64e pas2js: added -i -iD -iSO -iSP -TO -iTP
git-svn-id: trunk@37754 -
2017-12-18 13:23:46 +00:00
michael
3496256179 * Added library version of pas2js
git-svn-id: trunk@37752 -
2017-12-17 08:27:27 +00:00
michael
8342c502c5 * Initial check-in of pas2js changes
git-svn-id: trunk@37749 -
2017-12-16 15:55:10 +00:00
pierre
d18627f0af * Update all fpcsrc Makefile's using latest fpcmake version 2017-09-21 rev 37286
git-svn-id: trunk@37462 -
2017-10-16 00:27:27 +00:00
Károly Balogh
04dee0fc04 regenerated Makefiles for m68k-macos target
git-svn-id: trunk@37034 -
2017-08-22 11:16:42 +00:00
michael
cccff83bab * Fix compilation
git-svn-id: trunk@36817 -
2017-08-02 11:11:54 +00:00
pierre
2371755b4f Regenerate with sparc64-linux target
git-svn-id: trunk@36391 -
2017-06-01 13:40:25 +00:00
pierre
17b2671213 Regenerate all Makefile's after changes related to FPCDIR checks
git-svn-id: trunk@35833 -
2017-04-18 14:15:47 +00:00
michael
a1303eecde * Fixed from Mattias Gaertner
pasresolver: checking all varargs arguments
  pasresolver: checking arguments are readable
  fppas2js: fixed using externals from other units

git-svn-id: trunk@35631 -
2017-03-20 07:31:39 +00:00
michael
78e7f59982 * Patch from Mattias Gaertner
- external vars
    - untyped parameters
    - varargs
    - SetLength(s,len) is now converted to s.length=len
    - destructor now clears references
    - dynamic arrays now are never null.
      - anArr:=nil  becomes  anArr = []
      - anArr=nil becomes anArr.length==0
      - passing nil to an array parameter passes []
      - length(anArr) becomes anArr.length
      - High(anArr) becomes anArr.length-1
    - sets now uses references when assigning and passing to a parameter.
      Far less clone operations.

git-svn-id: trunk@35505 -
2017-03-01 17:41:16 +00:00
michael
0da38fd281 * Patch from Mattias Gaertner:
- local const: declare as local var in singleton parent function 
  - give procedure overloads in module unique names by appending $1, $2, ...
  - give nested procedure overloads unique names by appending $1, $2, ...
  - give reintroduced/overloaded class members unique names by appending $1, $2, ...
  - record operators = and <>
  - static arrays
    - range: enumtype
    - init as arr = rtl.arrayNewMultiDim([dim1,dim2,...],value)
    - init with expression from const array
    - length(1-dim array)
    - low(1-dim array), high(1-dim array)
  - property TargetProcessor
  - ECMAScript6:
    - use 0b for binary literals, and 0o for octal literals

git-svn-id: trunk@35491 -
2017-02-28 13:23:49 +00:00
michael
2d36af85bb * Patch from Mattias Gaertner with various improvements:
+ changed varname/funcname properties to string, saving many conversion
  + array of record
  + pass by reference
    - pass local var to a var/out parameter
    - pass variable to a var/out parameter
    - pass reference to a var/out parameter
    - pass array element to a var/out parameter
  + proc types
    - implemented as immutable wrapper function
    - assign := nil, proctype (not clone), @function, @method
    - call  explicit and implicit
    - compare equal and notequal with nil, proctype, address, function
    - assigned(proctype)
    - pass as argument
    - methods
    - mode delphi: proctype:=proc
    - mode delphi: functype=funcresulttype
  + class-of
    - assign :=   nil, var
    - call class method
    - call constructor
    - operators =, <>
    - class var, property, method
    - Self in class method
    - typecast

git-svn-id: trunk@35472 -
2017-02-22 20:59:23 +00:00
michael
7702ebb261 * Patch from Mattias Gaertner; SetCharAt
git-svn-id: trunk@35429 -
2017-02-12 15:17:12 +00:00
michael
f5b76b62fe * Patch from Mattias Gaertner:
- set operator functions
  - dyn array can be null

git-svn-id: trunk@35418 -
2017-02-10 23:26:14 +00:00
michael
eaa02f2f88 * Basic RTL for pas2js generated programs
git-svn-id: trunk@35384 -
2017-02-04 11:31:55 +00:00
nickysn
5306ee552b * regenerated makefiles with latest fpcmake
git-svn-id: trunk@34008 -
2016-06-18 01:00:45 +00:00
nickysn
a58dd988a4 * regenerate makefiles after the fpcmake update
git-svn-id: trunk@34002 -
2016-06-17 22:05:59 +00:00
nickysn
e83f3d2978 * updated all the remaining makefiles that 'fpcmake -r' missed
git-svn-id: trunk@31527 -
2015-09-05 11:21:36 +00:00
nickysn
2e3cb70489 * regenerated makefiles after adding the win16 target
git-svn-id: trunk@31525 -
2015-09-05 11:02:54 +00:00
joost
46906833f1 * Re-generated makefile's
git-svn-id: trunk@31318 -
2015-08-12 19:47:44 +00:00
joost
ac87da7c42 * Filter the Makefile's unit searchpaths from the fpmake command line.
To void cluttering the .fpm file

git-svn-id: trunk@31317 -
2015-08-12 19:15:14 +00:00
Károly Balogh
77bdd83bfc AROS/x86_64: regenerated Makefiles
git-svn-id: trunk@31177 -
2015-06-29 00:09:06 +00:00
Jonas Maebe
89418d23e5 * regenerated Makefiles with Linux/AArch64 support
git-svn-id: trunk@30891 -
2015-05-20 20:15:10 +00:00
Jonas Maebe
fa328436ab * regenerated for iphonesim/x86-64
git-svn-id: trunk@29974 -
2015-02-23 22:56:41 +00:00