Sander Hautvast
a66bf2e16e
* implemented parser without error handling and without identifiers. It works now for arithmetic expressions.
...
* Updated the way literals are stored in tokens so that they are no longer of type Any but proper enum Value types, for strings, numeric and boolean values.
2020-01-28 09:28:07 +01:00
Sander Hautvast
9639ca051b
Merge remote-tracking branch 'origin/master'
2020-01-24 14:16:29 +01:00
Sander Hautvast
ff416f0f40
FIX messed up comments in tokens.rs
2020-01-24 14:16:10 +01:00
Sander Hautvast
365a17dcf1
Update README.md
2020-01-24 14:13:15 +01:00
Sander Hautvast
05a3eb59b3
Update README.md
2020-01-24 14:12:30 +01:00
Sander Hautvast
a660831aea
Update README.md
2020-01-24 14:12:12 +01:00
Sander Hautvast
a1f656199c
scanner now recognizes complete expressions, adding identifiers and keywords
2020-01-24 14:07:13 +01:00
Sander Hautvast
071f584e92
scanner now recognizes numeric (f64) literals
2020-01-24 13:50:12 +01:00
Sander Hautvast
650a31889b
scanner now recognizes string literals (text between double-quotes)
2020-01-24 13:42:43 +01:00
Sander Hautvast
92e86032ca
added unittests for the functionality sofar
2020-01-24 13:17:16 +01:00
Sander Hautvast
4557505999
the scanner now recognizes some double character tokens like greater or equal (>=)
2020-01-24 13:00:03 +01:00
Sander Hautvast
0e3f1c26d2
the scanner now recognizes single character tokens like plus and minus
2020-01-24 12:54:40 +01:00
Sander Hautvast
4e7b684b0d
completed main, added the scanner and token stubs
2020-01-24 12:48:51 +01:00
Sander Hautvast
65ebb63698
added readme
2020-01-24 11:40:00 +01:00
Sander Hautvast
fa937cea74
added the code that takes input from either the commandline, or a file.
2020-01-24 11:35:43 +01:00
Sander Hautvast
0e250dd676
basic project layout and the first version of main, which handles the commandline arguments but does not do anything real, before exiting
2020-01-24 11:27:46 +01:00