mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2026-02-04 04:55:01 +01:00
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 - |
||
|---|---|---|
| .. | ||
| examples | ||
| src | ||
| tests | ||
| fpmake.pp | ||
| Makefile | ||
| Makefile.fpc | ||
| Makefile.fpc.fpcmake | ||
| README.TXT | ||
This is a package that contains a Javascript Scanner/parser/Syntax tree. The following units are defined: jsbase: the definition of Javascript values. Used to represent constant values. jstree: The Javascript syntax tree elements. Used in the parser to describe a source program jsscanner: the Javascript scanner. Currently not yet unicode-enabled. jsparser: the Javascript parser. Builds a complete javascript syntax tree. The tests directory contains a set of FPCUnit tests to test the scanner and parser. It needs Lazarus to run. Todo: - Add more tests. - Unicode support. - Runtime-engine ? The idea for the tree elements and the parser come from the Libsee library, written by David Leonard. Enjoy! Michael.