scrawl
a5da3a269e
Fix shadowing warnings
2016-08-29 12:20:00 +02:00
Marc Zinnschlag
06efd72a89
allow keywords as strings in messagebox instruction ( Fixes #2991 )
2015-12-03 11:14:58 +01:00
Marc Zinnschlag
435e52306a
adjusted a workaround for names starting with digits that interfered with some numerical expressions written without spaces
2015-09-26 11:34:46 +02:00
Marc Zinnschlag
4d94f38f4b
replaced context-sensitive implementation of allowing digits at the beginning of names with a more general implementation ( Fixes #1730 )
2015-09-15 14:57:07 +02:00
scrawl
67bd6cd708
Remove empty line at the beginning of files
...
git ls-files -z | xargs -0 sed -i '1{/^$/d}'
2015-08-18 23:06:12 +02:00
Marc Zinnschlag
20106bb90f
allow keywords in quotes ( Fixes #2794 )
2015-07-29 14:45:56 +02:00
Marc Zinnschlag
375d426dd0
check for premature end of scripts more consistently
2015-01-15 11:35:17 +01:00
Marc Zinnschlag
ac7c2a1473
some cleanup
2015-01-03 13:59:59 +01:00
Marc Zinnschlag
bbbf431ae3
double bug in script name handling workaround ( Fixes #1730 )
2015-01-03 13:54:46 +01:00
Marc Zinnschlag
120873a66d
another workaround for script translation messup
2014-12-18 10:40:51 +01:00
Marc Zinnschlag
057d0913d6
Merge branch 'scriptfixes'
2014-12-18 10:22:07 +01:00
Marc Zinnschlag
fc1d42a7d2
fixed exclusion for certain characters at the start of names
2014-12-18 09:55:26 +01:00
Marc Zinnschlag
5cb94da9c5
compensate for incorrect minus character in translated dialogue script ( Fixes #2207 )
2014-12-17 11:56:54 +01:00
Marc Zinnschlag
ed5387fb8c
replaced stay [ ignoring implementation with one that does not interfere with other workarounds ( Fixes #2205 )
2014-12-13 15:43:40 +01:00
Marc Zinnschlag
cda0363f29
allow a space in the middle of multi-character comparison operators ( Fixes #2185 )
2014-12-11 13:51:37 +01:00
Marc Zinnschlag
95dfb07816
make [ a whitespace character in scripts ( Fixes #2126 )
2014-11-15 09:53:08 +01:00
Marc Zinnschlag
a0dbb40c8e
Allow script names starting with digits ( Fixes #1730 )
2014-10-11 14:48:52 +02:00
Marc Zinnschlag
563c2e5730
be a bit more relaxed about allowing - in names ( Fixes #1593 )
2014-07-15 10:39:11 +02:00
Marc Zinnschlag
c03bd8ebb6
allow [] as aliases for ()
2014-02-13 08:59:33 +01:00
scrawl
7dc30a01cd
Some changes suggested by cppcheck
2013-07-31 18:46:32 +02:00
Marc Zinnschlag
4a75c7dcc0
allow backticks in names
2013-07-07 16:09:26 +02:00
Marc Zinnschlag
a2aa3aaa0e
workaround for - in names
2013-06-21 14:20:52 +02:00
Miroslav Puda
7149439ace
Replacement of empty() method by assertion.
2013-05-22 13:23:49 +02:00
Miroslav Puda
d5689730eb
Removal of unnecessary variable.
...
empty variable duplicates empty() method of std::string. Check for empty value should be replaced by assert since it does not makes much sense to call scanInt with null character.
2013-05-18 22:57:27 +02:00
Marc Zinnschlag
e2620a1edf
Issue #694 : allow float literals starting with .
2013-05-13 11:38:35 +02:00
Marc Zinnschlag
63407a662c
allow <== and >== as alternative for <= and >= in scripts
2013-05-01 14:08:05 +02:00
Marc Zinnschlag
6d3a2cd5a0
added comment token (for use in syntax colouring)
2013-04-11 10:50:22 +02:00
Marc Zinnschlag
fd0aa1a4b8
Issue #685 : Treat : as a whitespace
2013-03-31 14:46:46 +02:00
eduard
2dc0064cc2
more string lowercase
2013-01-09 20:51:52 +01:00
Marc Zinnschlag
050559d2e2
Issue #181 : added member variable access token
2012-06-16 10:31:49 +02:00
Marc Zinnschlag
6ec2a2091c
Issue #305 : Allow the use of = as a synonym for ==
2012-06-07 12:16:03 +02:00
Marc Zinnschlag
6848115c18
backend for tab completion: keywords
2011-01-12 18:24:00 +01:00
Marc Zinnschlag
0d4f2ab3ef
disabled escape sequences in script strings (doesn't work with Windows paths)
2010-08-12 19:41:40 +02:00
Marc Zinnschlag
592fa84e2d
added Enable, Disable, GetDisabled
2010-07-09 16:07:03 +02:00
Marc Zinnschlag
9d73718ec1
added GetSecondsPassed
2010-07-06 12:06:50 +02:00
Marc Zinnschlag
34b824cb70
implemented GetDistance function
2010-07-05 12:30:45 +02:00
Marc Zinnschlag
a61b2c39f0
added scriptrunning/startscript/stopscript; sorted out more case problems
2010-07-04 16:00:32 +02:00
Marc Zinnschlag
185f8bd56d
added random function; global variable fix
2010-07-04 13:59:29 +02:00
Marc Zinnschlag
f9c1548f80
added menumode script function; added global variable handling in compiler and interpreter (openmw context still ignores global variables)
2010-07-04 12:29:28 +02:00
Marc Zinnschlag
a1beffc3cd
added compiler extensions class
2010-07-03 09:54:01 +02:00
athile
5825af45c3
Visual Studio 2010 compile fixes
2010-07-01 23:52:20 -07:00
Marc Zinnschlag
1674d406dc
made usage of comma as argument separator optional (largely untested, because we don't have anything that takes more than one argument)
2010-07-01 11:07:21 +02:00
Marc Zinnschlag
8bb2a6039d
modified comma handling to be morse consistent with original script language
2010-06-30 11:03:08 +02:00
Marc Zinnschlag
5fb4abae4f
added function parsing (only one function so far)
2010-06-29 17:51:02 +02:00
Marc Zinnschlag
ab33234027
prepared expression parser for implementation of more complex expressions
2010-06-29 11:24:07 +02:00
Marc Zinnschlag
fda7077cf2
bug-fix: comments were eating up newlines
2010-06-28 11:40:48 +02:00
Marc Zinnschlag
de8a651df4
improved error handling
2010-06-28 01:01:48 +02:00
Marc Zinnschlag
d20e850d31
-> wasn't properly translated into a token
2010-06-27 22:31:03 +02:00
Marc Zinnschlag
ddcbc8cd62
added tokenizing of MW scripts
2010-06-27 19:20:21 +02:00