/[svn]/linuxsampler/trunk/src/scriptvm/editor/nksp.l
ViewVC logotype

Log of /linuxsampler/trunk/src/scriptvm/editor/nksp.l

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (download) (annotate)
Sticky Revision:

Revision 3733 - (view) (download) (annotate) - [select for diffs]
Modified Sat Feb 1 18:11:20 2020 UTC (4 years, 2 months ago) by schoenebeck
File length: 9353 byte(s)
Diff to previous 3729 , to selected 3573
NKSP: Added support for 'patch' variables.

* NKSP language: Added support for 'patch' variable qualifier
  (as new dedicated keyword 'patch').

* NKSP parser: capture locations of 'patch' variable declarations
  in script's source code.

* ScriptVM: Allow patching 'patch' script variables by replacing
  their default assignment expression with a supplied replacement
  variable initialization expression by optional 2nd argument when
  calling loadScript().

* ScriptVM: Allow retrieval of default initialization expressions
  of all 'patch' variables by optional 3rd argument when calling
  loadScript() (i.e. for instrument editors).

* gig engine: Implemented support for loading real-time instrument
  scripts with 'patch' variables bundled with gig instruments.

* Bumped version (2.1.1.svn46).



Revision 3729 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jan 31 10:57:53 2020 UTC (4 years, 2 months ago) by schoenebeck
File length: 9347 byte(s)
Diff to previous 3690 , to selected 3573
NKSP parser: track code locations also by raw byte position and length.

* NKSP VM API: Added member variables 'firstByte' and 'lengthBytes' to
  struct 'CodeBlock'.

* NKSP Editor API: Added methods firstByte() and lengthBytes() to
  class 'VMSourceToken'.

* NKSP VM language parser: track all positions also by raw byte offset
  and length (along to the already existing tracking by line/column).

* NKSP editor syntax highlighting scanner: track all positions also by
  raw byte offset and length (along to the already existing tracking by
  line/column).

* Bumped version (2.1.1.svn45).


Revision 3690 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jan 3 10:18:21 2020 UTC (4 years, 3 months ago) by schoenebeck
File length: 9269 byte(s)
Diff to previous 3591 , to selected 3573
NKSP: Added support for RPN and NRPN event handlers:

* NKSP language: Added support for RPN event handler
  ("on rpn ... end on" in instrument scripts).

* NKSP language: Added support for NRPN event handler
  ("on nrpn ... end on" in instrument scripts).

* Added built-in read-only variables "$RPN_ADDRESS" and "$RPN_VALUE" which
  may be read from the new RPN/NRPN script handlers to get the (N)RPN
  parameter that had been changed and its new value.

* Added built-in const variables "$NI_CB_TYPE_RPN" and "$NI_CB_TYPE_NRPN"
  which are identifying the new (N)RPN handlers as such at script runtime.

* Bumped version (2.1.1.svn30).


Revision 3591 - (view) (download) (annotate) - [select for diffs]
Modified Mon Sep 2 09:21:43 2019 UTC (4 years, 7 months ago) by schoenebeck
File length: 9260 byte(s)
Diff to previous 3573
NKSP editor API: Fixed parsing of metric prefix "da" and unit type "Hz".


Revision 3573 - (view) (download) (annotate) - [selected]
Modified Tue Aug 27 21:36:53 2019 UTC (4 years, 7 months ago) by schoenebeck
File length: 9256 byte(s)
Diff to previous 3562
NKSP: Introducing floating point support.

* NKSP language: Added support for NKSP real number literals and
  arithmetic operations on them (e.g. "(3.9 + 2.9) / 12.3 - 42.0").

* NKSP language: Added support for NKSP real number (floating point)
  script variables (declare ~foo := 3.4).

* NKSP language: Added support for NKSP real number (floating point)
  array script variables (declare ?foo[3] := ( 1.1, 2.7, 49.0 )).

* NKSP built-in script function "message()" accepts now real number
  argument as well.

* Added built-in NKSP script function "real_to_int()" and its short
  hand form "int()" for casting from real number to integer in NKSP
  scripts.

* Added built-in NKSP script function "int_to_real()" and its short
  hand form "real()" for casting from integer to real number in NKSP
  scripts.

* Bumped version (2.1.1.svn6).


Revision 3562 - (view) (download) (annotate) - [select for diffs]
Modified Fri Aug 23 12:51:58 2019 UTC (4 years, 7 months ago) by schoenebeck
File length: 9200 byte(s)
Diff to previous 3561 , to selected 3573
* NKSP script editor API: Added support for detecting standard unit tokens
  and their potential metric prefix token.


Revision 3561 - (view) (download) (annotate) - [select for diffs]
Modified Fri Aug 23 11:44:00 2019 UTC (4 years, 7 months ago) by schoenebeck
File length: 8587 byte(s)
Diff to previous 3332 , to selected 3573
NKSP: Added standard units support for numbers and final "!" operator:

* NKSP strictness: Variable names, function names and preprocessor condition
  names must start with a regular character (a-z or A-Z); starting them with
  a digit or underscore is no longer allowed.

* NKSP parser fix: equal comparison operator "=" and not equal comparison
  operator "#" must only accept integer operands.

* NKSP language: Implemented support for standard units like Hertz, seconds,
  Bel including support for metric unit prefixes; so one can now e.g.
  conveniently use numbers in scripts like "5us" meaning "5 microseconds",
  or e.g. "12kHz" meaning "12 kilo Hertz", or e.g. "-14mdB" meaning
  "minus 14 Millidecibel", or e.g. "28c" meaning "28 cents" (for tuning).

* NKSP language: Introduced "final" operator "!" which is specifically
  intended for synthesis parameter values to denote that the synthesis
  parameter value is intended to be the "final" value for that synthesis
  parameter that should explicitly be used by the engine and thus causing
  the sampler engine to ignore all other modulation sources for the same
  synthesis parameter (like e.g. LFO, EG); by simply prefixing a value,
  variable or formula with this new "!" operator the expression is marked as
  being "final".

* Bumped version (2.1.1.svn4).


Revision 3332 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jul 24 18:51:21 2017 UTC (6 years, 8 months ago) by schoenebeck
File length: 8394 byte(s)
Diff to previous 3308 , to selected 3573
* NKSP script editor syntax highlighting API: catch all fatal lexer
  errors, to avoid the editor app to crash on ill-formed text input.
* Bumped version (2.0.0.svn74).


Revision 3308 - (view) (download) (annotate) - [select for diffs]
Modified Sat Jul 15 01:14:20 2017 UTC (6 years, 9 months ago) by schoenebeck
File length: 8335 byte(s)
Diff to previous 3260 , to selected 3573
* NKSP script editor API: Fixed app termination due to a lexer start
  condition stack underrun.
* NKSP preprocessor: Fixed wrong behavior on nested USE_CODE_IF() and
  USE_CODE_IF_NOT() preprocessor statements.
* Bumped version (2.0.0.svn70).


Revision 3260 - (view) (download) (annotate) - [select for diffs]
Modified Wed May 31 21:07:44 2017 UTC (6 years, 10 months ago) by schoenebeck
File length: 8028 byte(s)
Diff to previous 3054 , to selected 3573
* NKSP language: Added support for "synchronized .. end synchronized"
  code blocks.
* Bumped version (2.0.0.svn60).


Revision 3054 - (view) (download) (annotate) - [select for diffs]
Modified Thu Dec 15 12:47:45 2016 UTC (7 years, 4 months ago) by schoenebeck
File length: 8015 byte(s)
Diff to previous 2951 , to selected 3573
* Fixed numerous compiler warnings.
* Bumped version (2.0.0.svn32).


Revision 2951 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jul 15 20:07:47 2016 UTC (7 years, 9 months ago) by schoenebeck
File length: 7869 byte(s)
Diff to previous 2935 , to selected 3573
* NKSP language: Added support for user defined script functions.
* Bumped version (2.0.0.svn18).


Revision 2935 - (view) (download) (annotate) - [select for diffs]
Modified Sun Jul 10 14:24:13 2016 UTC (7 years, 9 months ago) by schoenebeck
File length: 7855 byte(s)
Diff to previous 2885 , to selected 3573
* NKSP: Added & implemented built-in script function "change_cutoff()".
* NKSP: Added & implemented built-in script function "change_reso()".
* NKSP: Added & implemented built-in script function "event_status()".
* NKSP: Added built-in script constants "$EVENT_STATUS_INACTIVE" and
  "$EVENT_STATUS_NOTE_QUEUE" both for being used as flags for
  built-in "event_status()" script function.
* NKSP language: Added support for bitwise operators ".or.", ".and."
  and ".not.".
* NKSP language scanner: Fixed IDs matching to require at least one
  character (i.e. when matching function names or variable names).
* NKSP language scanner: disabled unusued rules.
* Bumped version (2.0.0.svn12).


Revision 2885 - (view) (download) (annotate) - [select for diffs]
Added Fri Apr 22 15:37:45 2016 UTC (7 years, 11 months ago) by schoenebeck
File length: 7666 byte(s)
Diff to selected 3573
* Instrument script classes now exported with the liblinuxsampler C++ API.
* Added new API method ScriptVM::syntaxHighlighting() which provides
  a convenient syntax highlighting backend for external instrument
  script editor applications.
* Bumped version (2.0.0.svn5).


This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

  ViewVC Help
Powered by ViewVC