Add ImperialCivil Units Schema

- units for civil engineering - ft, ft2, ft3, mph,
  and angles as degrees/minutes/seconds
This commit is contained in:
wandererfan
2018-12-02 11:41:44 -05:00
committed by Yorik van Havre
parent 971cbc4e73
commit fefe83ecbb
12 changed files with 741 additions and 631 deletions

View File

@@ -132,6 +132,8 @@ CGRP '\,'[0-9][0-9][0-9]
"deg" yylval = Quantity::Degree; return UNIT; // degree (internal standard angle)
"rad" yylval = Quantity::Radian; return UNIT; // radian
"gon" yylval = Quantity::Gon; return UNIT; // gon
"M" yylval = Quantity::AngMinute; return UNIT; // minute(Angular)
"S" yylval = Quantity::AngSecond; return UNIT; // second(Angular)
"1" yylval = Quantity(1.0); return ONE;
{DIGIT}+"."?{DIGIT}*{EXPO}? { yylval = Quantity(num_change(yytext,'.',','));return NUM; }