Commit Graph

41 Commits

Author SHA1 Message Date
Martin Diehl d858d753e3 implicit none does not propagate
each subroutine/function is independent and not part of a scope
2022-05-27 22:38:47 +02:00
Martin Diehl 3cc3229792 string new line which is added by libfyaml 2022-04-16 16:19:33 +02:00
Martin Diehl 3309360e4b avoit out of bounds access 2022-04-14 07:20:16 +02:00
Martin Diehl 723252ef15 libfyaml backend
currently it simply converts the whole file content to flow mode.
The nice thing is: It can convert EVERYTHING to flow mode. libfyaml is
the only library that passes the whole YAML test suite
2022-04-12 23:24:07 +02:00
Martin Diehl 39aa243695 Polynomial Class 2022-01-31 14:05:15 +00:00
Martin Diehl 2fb368cf8c consistent space (as in 'end module' etc) 2021-12-06 07:59:40 +01:00
Sharan Roongta a1fd45bded offset should have been taken into account (like earlier)
new changes should not break old functionality
2021-08-17 17:46:22 +02:00
Sharan Roongta 2635bb012c Merge remote-tracking branch 'origin/development' into YAML-improvements 2021-08-05 14:49:33 +02:00
Sharan Roongta c5a80bc75d more readable 2021-08-02 16:50:21 +02:00
Sharan Roongta 3d7f15c940 meaningful error message incase of mismatch in quotes 2021-07-28 12:14:00 +02:00
Martin Diehl 812b0f07f5 read file only once (per process) 2021-07-27 08:35:52 +02:00
Sharan Roongta ae49920256 support single and double quotes in key value pairs also
escape characters not supported in double quotes
2021-07-24 17:40:27 +02:00
Sharan Roongta a5c4e7232c probably not needed
We remove blank spaces while converting to flow YAML.
2021-07-23 18:37:45 +02:00
Sharan Roongta ca8775e0d4 allow " " in YAML, follow yamllint. 2021-07-23 17:45:10 +02:00
Sharan Roongta bd9cae11a5 allow multi line scalar list items.
If a scalar list item has ',', the parser would consider it as a separator and not a part of the string
For the moment, this scalar item is enclosed with double quotes ""
In the next step, the flow parser should be able to use this quotes as an indicator for strings
2021-07-22 15:51:33 +02:00
Martin Diehl 2f1fa8292b unify style to majority of occurences 2021-07-16 10:30:45 +02:00
Sharan Roongta 45abca90c5 stricter
example of invalid YAML-->  mechanical:{type: pass}
2021-07-12 22:17:02 +02:00
Sharan Roongta d2560ebb39 function should return either 'true' or 'false' and not bear the responsibility to throw errors
We were forcing every colon to indicate either key or key: value
2021-07-12 21:42:51 +02:00
Martin Diehl 2a23b5eaa9 simplified 2020-10-07 09:37:48 +02:00
Sharan Roongta 08ab4a0b88 better names 2020-10-06 19:16:56 +02:00
Sharan Roongta 6dff0396b6 [skip sc] more testing 2020-10-05 19:17:21 +02:00
Sharan Roongta 46973508a2 allow multi line flow yaml 2020-10-05 18:53:05 +02:00
Sharan Roongta 15ef6c8ceb more fortran like 2020-09-30 01:50:10 +02:00
Sharan Roongta 385cda9224 remove unnecessary variables 2020-09-29 20:13:02 +02:00
Sharan Roongta a61bf3bb26 file endings, file header can be added, take care of EOF 2020-09-29 19:55:25 +02:00
Sharan Roongta 08f5851c82 take care of empty lines in this slightly new setup 2020-09-25 10:59:03 +02:00
Sharan Roongta 21ff587e17 better logic 2020-09-25 04:52:03 +02:00
Sharan Roongta 0de54404ee skip empty lines; yaml file optional start/stop indicator can be added 2020-09-25 04:07:40 +02:00
Sharan Roongta c8dcd4b4ae 'decide' function should handle everything
bug fixed in case of only flow yaml
2020-09-22 23:51:47 +02:00
Martin Diehl 22544d6978 systematic naming 2020-09-13 12:43:49 +02:00
Martin Diehl 5b83c8ad3c use 'error stop'
- does not require IO
- prints stack trace
2020-09-13 12:09:32 +02:00
Sharan Roongta 7754a1ea56 Restructuring for material.yaml 2020-08-15 16:08:46 +02:00
Martin Diehl 640bc7b190 [skip ci] polishing 2020-06-29 15:09:13 +02:00
Sharan Roongta e155bef9a5 better names; polishing 2020-06-24 17:38:39 +02:00
Sharan Roongta fdf7887b47 handle default internally 2020-06-24 11:56:21 +02:00
Martin Diehl e2a0e98267 small polishing 2020-06-23 11:06:41 +02:00
Sharan Roongta 846a50c871 Simplified logic; treating defaults correctly 2020-06-16 15:57:16 +02:00
Sharan Roongta 8ae7f8f991 polishing 2020-05-26 20:56:53 +02:00
Sharan Roongta 9732726cfa editorial changes 2020-05-26 11:46:28 +02:00
Sharan Roongta 3f221ab5ed polishing 2020-05-25 12:54:43 +02:00
Sharan Roongta 72fdb639f0 YAML parser 2020-05-21 20:41:40 +02:00