author | Sebastian Harl <sh@tokkee.org> | |
Tue, 5 May 2015 22:15:49 +0000 (00:15 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Tue, 5 May 2015 22:15:49 +0000 (00:15 +0200) | ||
commit | 195f73cdb0c1087bf3f3a82267204fca9eb3104c | |
tree | 3d493b548cf84a1b06bb4831cb07fd784d01b437 | tree | snapshot |
parent | a2dd816b36b96cbbb1df882912f43e60ee7879ff | commit | diff |
parser: Add support for analyzing conditional and arithmetic expressions.
Let all parser functions call the respective analyzer. For now, this is only
used to propagate data-type information but it will later ensure a certain
amount of semantical correctness. Note that the new analyzers usually don't
have any context information, so they might accept expressions that are not
right for their later target use case. If that matters, the caller will have
to check again providing the right context.
Let all parser functions call the respective analyzer. For now, this is only
used to propagate data-type information but it will later ensure a certain
amount of semantical correctness. Note that the new analyzers usually don't
have any context information, so they might accept expressions that are not
right for their later target use case. If that matters, the caller will have
to check again providing the right context.
src/include/parser/parser.h | diff | blob | history | |
src/parser/analyzer.c | diff | blob | history | |
src/parser/parser.c | diff | blob | history | |
t/unit/parser/parser_test.c | diff | blob | history |