Add ImperialCivil Units Schema
- units for civil engineering - ft, ft2, ft3, mph, and angles as degrees/minutes/seconds
This commit is contained in:
committed by
Yorik van Havre
parent
971cbc4e73
commit
fefe83ecbb
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user