Commit Graph

108 Commits

Author SHA1 Message Date
Károly Balogh
4c25bd935f packages: disabled packages for macos and palmos which currently cannot be built for these
git-svn-id: trunk@36889 -
2017-08-12 21:08:34 +00:00
Mattias Gaertner
627323b96e fcl-js: jswriter: nicer CurElement for srcmaps
git-svn-id: trunk@36680 -
2017-07-08 12:44:46 +00:00
Mattias Gaertner
97fd5b956a fcl-js: comments
git-svn-id: trunk@36667 -
2017-07-07 17:30:28 +00:00
Mattias Gaertner
a9502f9d3d fcl-js: parse source map
git-svn-id: trunk@36647 -
2017-07-05 19:50:16 +00:00
Mattias Gaertner
84b08b61a8 fcl-js: jssrcmap: added property SourceTranslatedFiles to allow custom filenames written to JSON
git-svn-id: trunk@36600 -
2017-06-26 16:19:08 +00:00
Mattias Gaertner
a66eaa4769 fcl-js: jswriter: allow overriding Writing, less grows(faster and less allocations)
git-svn-id: trunk@36599 -
2017-06-26 16:17:34 +00:00
Mattias Gaertner
d039fa9b15 fcl-js: sourcemap: write optional sourcesContent
git-svn-id: trunk@36494 -
2017-06-12 18:43:52 +00:00
Mattias Gaertner
5a008e945b fcl-js: sourcemap: write optional sourcesContent
git-svn-id: trunk@36493 -
2017-06-12 18:42:07 +00:00
Mattias Gaertner
2df7e116e3 fcl-js: added TSourceMap
git-svn-id: trunk@36492 -
2017-06-12 18:23:25 +00:00
Mattias Gaertner
64fc72af2a fcl-jssrc: TJSElement.Row renamed to Column
git-svn-id: trunk@36471 -
2017-06-09 17:38:54 +00:00
pierre
7a172d3d5a Regenerated all Makefile from packages directories
git-svn-id: trunk@36395 -
2017-06-01 14:15:50 +00:00
Mattias Gaertner
5006de1d40 fcl-js: comment
git-svn-id: trunk@36235 -
2017-05-17 08:24:33 +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
Mattias Gaertner
9f5906e115 fcl-js: added TJSArrayLiteral.AddElement TJSNewMemberExpression.AddArg TJSCallExpression.AddArg
git-svn-id: trunk@35789 -
2017-04-14 15:48:09 +00:00
michael
510352e121 * Patch from Mattias Gaertner: when an if-statement has an else always use {} for the BTrue
git-svn-id: trunk@35651 -
2017-03-24 12:09:38 +00:00
michael
676b25cc93 * Patch from Mattias Gaertner to fix new (a())()
git-svn-id: trunk@35640 -
2017-03-23 15:01:16 +00:00
michael
44c5fe99c9 * Patch from Mattias Gaertner:
jswriter: 
    fixed some empty lines 
  pasresolver: 
    procedure str, function str
  fppas2js: 
    procedure str,function str
    write less empty blocks
    target platform browser and nodejs

git-svn-id: trunk@35633 -
2017-03-20 23:29:53 +00:00
michael
7b38e90513 * Patch from Mattias gaertner to write less empty lines
git-svn-id: trunk@35577 -
2017-03-14 10:46:29 +00:00
michael
d6bd57beea * Patch from Mattias Gaertner to fix range error
git-svn-id: trunk@35576 -
2017-03-14 10:10:47 +00:00
michael
2fbe76532f * Patch from Mattias Gaertner
- fixed writing UTF-8.
  - indent multi line literals, used by asm blocks
  - fixed writing (a+b).c

git-svn-id: trunk@35502 -
2017-03-01 17:36:35 +00:00
michael
92af9c1670 * Patch from Mattias Gaertner, better descriptive comment
git-svn-id: trunk@35490 -
2017-02-28 13:22:40 +00:00
michael
f022fdc848 * Patch from Mattias Gaertner:
- moved function IsValidJSIdentifier, also needed for code not writing js

git-svn-id: trunk@35471 -
2017-02-22 20:57:54 +00:00
michael
bc22805000 * Patch from Mattias Gaertner:
pastree: 
    - allow custom data to be chained.
  pparser:
    - procedure modifier assembler
    - Self[]
    - Self.member
    - fixed some wrong parents
  pasresolver:
    - aString[i]:=
    - check proc external modifier
    - test if WithExprScope is set
    - Self[]
    - Self.member
  fppas2js:
    - proc assembler modifier
    - assigned(class-instance)
    - class default property
    - low(array), high(array)
    - multi dim arrays [index1,index2] -> [index1][index2]
    - string: read and write char aString[]
    - procedure modifier external name 'funcname'
    - option to add "use strict";
    - with-do using local var
    - with record do i:=v;
    - with classinstance do begin create; i:=v; f(); i:=a[]; end;
    - Self[]
    - Self.member

git-svn-id: trunk@35428 -
2017-02-12 15:16:00 +00:00
michael
55241e283f * Patch from Mattias Gaertner
- quote object keys if needed  { "1":"value" }
  - use " or ' for string literals

git-svn-id: trunk@35416 -
2017-02-10 23:24:13 +00:00
michael
767645014c * Patch from Mattias Gaertner:
jswriter: 
    less duplicate brackets
  pasresolver:  
    break, continue, option to fix case of overrides
  pas2js:
    procedure args default values,
    try..except,
    try..except..on..else,
    raise, raise E,
    class vars, 
    call class methods,
    break,
    continue,
    rename name conflicts with JS identifiers: apply, call, null, ...

git-svn-id: trunk@35402 -
2017-02-06 10:44:39 +00:00
michael
393b4caba2 * Patch from Mattias Gaertner:
jswriter: more compact try..catch

pasresolver:
- mark function calls without ()
- "with type do ;"
- constructor call store TPasType
- mark if a constructor call creates a new
  instance or is a normal call
- same for destructor
- fixed checking assign operator types
- more tests

fppas2js:
- convert implicit calls in Pascal to explicit calls in JS
- built in procedure "exit" and "exit(value)"
- if loopvar is used afterwards append  if($loopend>i)i--;
- classes
  - declare using createClass, needs rtl magic
  - constructor
  - destructor
  - vars
  - ancestor
  - virtual, override, abstract
  - "is" operator
  - "as" operator
  - call inherited "inherited;", "inherited funcname;"
- dynamic arrays
  - init as "arr = []"
  - SetLength(arr,newlength)
  - length(arr)
- try..except, on .. do, raise
- insert default values in calls

git-svn-id: trunk@35383 -
2017-02-04 11:26:59 +00:00
michael
b08297a667 * Fix from Mattias Gaertner to implement calling functions without arguments.
git-svn-id: trunk@35166 -
2016-12-18 16:22:23 +00:00
michael
d6d10a522a * Patch from Mattias Gaertner
- more tests
   - case-of: added option to change between switch and if-else
   - Some changes to the way the implementation block is generated for units.

git-svn-id: trunk@35055 -
2016-12-04 09:35:53 +00:00
Mattias Gaertner
7f8cdc56d3 undo accidental commit: fppas2js: test TestFunctionResult
git-svn-id: trunk@35023 -
2016-11-30 10:29:13 +00:00
Mattias Gaertner
3bb089223b fppas2js: test TestOperators1
git-svn-id: trunk@35022 -
2016-11-30 10:23:57 +00:00
michael
8bbc792a4f * Patch from Mattias Gaertner for pas2js:
jsbase: Changed TJSString from WideString to UnicodeString to use ref counting on Windows.
  jsbase: Added TJSValue.CustomValue.
  fppas2js: Changed context from pas to js context. 
            The pas context is already in the resolver values. 
  fppas2js: Support for type alias
  fppas2js: Built in functions inc/dec for integers

git-svn-id: trunk@34851 -
2016-11-09 16:26:21 +00:00
michael
6610518d73 * Added dependency on fcl-base
git-svn-id: trunk@34654 -
2016-10-08 12:01:46 +00:00
michael
95eb4ed2eb * Added jsminifier unit
git-svn-id: trunk@34652 -
2016-10-08 08:14:42 +00:00
michael
3a3f490234 * Added copyright header
git-svn-id: trunk@34651 -
2016-10-08 08:11:41 +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
7712f049df * Patch from Mattias Gaertner to fix writing superfluous semicolons after statement lists.
git-svn-id: trunk@34226 -
2016-07-29 14:23:41 +00:00
michael
19bd74faa9 * Patch from Mattias Gaertner
- jstree: add some explanatory comments 
  - jswriter: 
    TJSWriter.WriteSourceElements write functions and vars, 
    fixed unneeded semicolon in TJSWriter.WriteFuncDef.

git-svn-id: trunk@34217 -
2016-07-28 11:17:03 +00:00
michael
16ce35ea9b * Patch from Mattias Gaertner to make EscapeString a normal method + Fix casing
git-svn-id: trunk@34213 -
2016-07-27 11:32:27 +00:00
michael
1d6900e800 * Patch from Mattias Gaertner to fixed type casts AsString is a TJSString.
git-svn-id: trunk@34212 -
2016-07-27 11:30:13 +00:00
michael
62f39e0037 * Some clean-up patches by Mattias
git-svn-id: trunk@34204 -
2016-07-26 15:05:39 +00:00
michael
1606976cfa * Patch from Mattias Gaertner to avoid some non-set function results
git-svn-id: trunk@34096 -
2016-07-11 11:43:36 +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
02d6f7a2a4 - disabled the win16 target for all packages that don't compile on that platform
git-svn-id: trunk@31857 -
2015-09-27 19:32:44 +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
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