Jussi Pakkanen
8ec9b0a71f
Better error message when using = rather than : for defining keywords.
8 years ago
Mike Sinkovsky
c9423cc3a8
cleanup: Replace assignment with augmented assignment
8 years ago
Mike Sinkovsky
969be1f679
cleanup: Remove redundant parentheses
8 years ago
Mike Sinkovsky
22eed4c417
cleanup: Redundant character escape
8 years ago
Mike Sinkovsky
5b626ab4cb
style: [E1**] Indentation
8 years ago
Igor Gnatenko
f0bc5568a7
style: fix E703 violations
...
E703: statement ends with a semicolon
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
8 years ago
Igor Gnatenko
5693758e46
style: fix E231 violations
...
E231: missing whitespace after ','
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
8 years ago
Igor Gnatenko
2017d8578a
style: fix E226 violations
...
E226: missing whitespace around arithmetic operator
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
8 years ago
Igor Gnatenko
f0b30baa39
style: fix E225 violations
...
E225: missing whitespace around operator
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
8 years ago
Jussi Pakkanen
14ca7d602c
Store subdir information for each node so we can remove files set in other subdirectories.
8 years ago
Jussi Pakkanen
f111a0b826
Track comma spans in arguments.
8 years ago
Jussi Pakkanen
8734013690
I can haz source files added to targets.
8 years ago
Emmanuele Bassi
00e5962aaa
Add support to integer modulo operator
...
Having support for the '%' operator makes it easier to implement
even/odd version checks, like:
enable_debug = get_option('enable-debug')
if enable_debug == 'auto'
if minor_version % 2 == 0
enable_debug = 'minimum'
else
enable_debug = 'yes'
endif
endif
which would be impossible without resorting to less obvious long-hand
forms like:
a - (b * (a / b))
8 years ago
Jussi Pakkanen
b382abdd2c
Forbid nested ternary operations.
8 years ago
Jussi Pakkanen
d90fcb4048
Created ternary operator. Closes #538 .
8 years ago
Hemmo Nieminen
336904b553
Move MesonException from coredata to mesonlib.
9 years ago
Jussi Pakkanen
4cd671e69e
More comparison operators. Closes #363 .
9 years ago
Jussi Pakkanen
23b98cd6e6
Renamed meson package to mesonbuild so that we can have a script named meson in the same toplevel dir.
9 years ago
Jussi Pakkanen
8b1039fa30
Organise files into a module structure.
9 years ago
Jussi Pakkanen
ee4e785b1e
Add support for subscripting array objects with [].
9 years ago
Jussi Pakkanen
a5abcf1fe2
Created the += operator.
9 years ago
Jussi Pakkanen
6951abe192
Give clear error message if someone tries to use double quotes. Closes #144 .
10 years ago
Jussi Pakkanen
3f7f984a39
Handle then unary negation operator.
10 years ago
Jussi Pakkanen
572587f5ce
Fix cross compilation tests.
10 years ago
Jussi Pakkanen
d53c00db13
Yo dawg, can embed quoted single quotes inside quotes.
10 years ago
Jussi Pakkanen
fa2c659825
Parse arguments iteratively instead of recursively to support argument lists of arbitrary size.
10 years ago
Jussi Pakkanen
4293a2ac65
Removed shebang lines from files that are not executable.
10 years ago
Jussi Pakkanen
525f0ae6d2
Harmonised copyright declarations.
10 years ago
Robin McCorkell
702148aea5
Add number, string and array arithmetic
...
Addition (+), subtraction (-), multiplication (*) and division (/) for numbers
follows the BIDMAS rules.
Strings and arrays can be concatenated with the addition operator
Strings can be concatenated with numbers with the addition operator
10 years ago
Jussi Pakkanen
be0f357f1d
Dafuq?
10 years ago
Jussi Pakkanen
b44ca46e92
Implement a foreach loop construct. Closes #17 .
10 years ago
Jussi Pakkanen
1a8d830e05
Can chain multiple logical operations in a row.
10 years ago
Jussi Pakkanen
a5863477f8
Kill end of line whitespace dead.
10 years ago
Jussi Pakkanen
17ba9bccd0
Parse function and method calls properly.
11 years ago
Jussi Pakkanen
d99717d9d2
Some cleanups.
11 years ago
Jussi Pakkanen
2502beccc9
The final renaming.
11 years ago
Jussi Pakkanen
3c591385ed
Comparisons work.
11 years ago
Jussi Pakkanen
d6924da005
If statements worky.
11 years ago
Jussi Pakkanen
163a31beef
Method calls work now.
11 years ago
Jussi Pakkanen
967f0110a5
More tests passing.
11 years ago
Jussi Pakkanen
06417090a2
More stuff passing.
11 years ago
Jussi Pakkanen
c74f0f3a3b
Can parse first unit test with recursive descent parser.
11 years ago
Jussi Pakkanen
26583435d5
Now can parse all files in test set.
11 years ago
Jussi Pakkanen
68f990c8da
Verify that all input was consumed.
11 years ago
Jussi Pakkanen
cddb5b7bcb
Now parses a lot more.
11 years ago
Jussi Pakkanen
8c14ead3ed
Now parses simple files. Next up: complex ones.
11 years ago
Jussi Pakkanen
f8e99ffea4
Moar stuff is happening.
11 years ago
Jussi Pakkanen
8017d9f795
Something something something.
11 years ago
Jussi Pakkanen
eb3d8ee80f
Create bottommost level nodes.
11 years ago
Jussi Pakkanen
8cf6e7bf7e
Now with biggererer parsing.
11 years ago